How do I get the most popular games with the API

Hello Developers!

For Fun, I want to make a script (IN PYTHON) to find the most popular game on the front page depending on there players playing, visits, ex.

So, how do I get the games on the front page?

Does Anyone know, or is there no way to do it?

This might help?
https://games.roblox.com/docs#!/Games/get_v1_games_list

1 Like

I think this is what I need, but I have no idea how to use this.

It says I need a sortToken, gameFilter, timeFilter, genreFilter, exclusiveStartId, sortOrder, gameSetTargetId, keyword, startRows, maxRows, contextCountryRegionId, contextUniverseId, pageId, isSeeAllPage, sortPosition, and sessionId.

I don’t know what settings will give me the top games, or the games on the front page.

You can use https://games.roblox.com/v1/games/sorts?model.gameSortsContext=GamesDefaultSorts to get the SortToken and hence get the list a sorted way in front page. The sorted lists are for example Most Engaging, Up-and-coming, Personal Recommendations and basically everything in the front page. Unfortunately, the list given isn’t up to date.

https://games.roblox.com/docs#!/Games/get_v1_games_sorts

Thank you a lot! I found of how to use it, and after running my script, here is what I got back:
image

2 Likes

I know this is an old topic but could you provide the code or URL your code provided?
I’m a little stuck on this and I want to use it for a project I’m creating.

1 Like

They set up a 3rd party server which acts as a proxy between roblox http service and the roblox API endpoint linked. This is the only way to access the roblox api within a roblox game, as you can’t do it with http service. There are free roblox proxys around, an example of this is roproxy.

(old thread I know, I didn’t realise until after typing the reply.)

1 Like

Hey Ive been trying to figure out the settings part for this and no luck so far. Would you mind sharing how you were able to achieve this? Thank you in advanced, any help would be appreciated.

(ik this is an old post, but I couldn’t find anything else relating to this)

1 Like