RAWG Video Games Database

免费
通过 RAWG | 已更新 21 days ago | Gaming
人气

9.7 / 10

延迟

506ms

服务等级

91%

Health Check

N/A

返回所有讨论

Is it possible to choose a random slug name out of all games?

Rapid account: Artiscostar
artiscostar
a year ago

Hello! I’m using the rawg code from uburuntu and I was wondering if there was a way to get a random slug name out of the api using it. With the example line coros = [api.games_read(id=name) for name in [‘grand-theft-auto-v’, ‘minecraft’]], I could put whatever specific game I want in the list and get info, but what if I want a random game’s information? I would need to somehow access all the slug names and choose from it randomly, but I’m not sure how to do that. Thanks!

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论