How to get roblox's game info such as likes, visits and favourites

Hello everyone, i was trying to get a info about a game using HTTP service but all posts about this topic are very old and prob outdated. I dont know how could i get place visits, likes and favourites. if anyone could help me with this, i would be grateful.

8 Likes

To get your own, you can just make a call to the following:
https://games.roblox.com/v2/users//games?accessFilter=Public&sortOrder=Asc&limit=10

1 Like

How is this even related to scripting? You can just go to the game on the Roblox Site and there you can see how many likes visits and favorites there are.

Well, Maybe he wants the game to have a board where the numbers of like or visits is displayed?, Should he manually update the game once a while?, thats where the scripting comes in

5 Likes

You need to use this endpoint: https://games.roblox.com/v1/games?universeIds=ID
Where ID - game id (universe Id).
Example:

local http = game:GetService("HttpService")
local data = http:JSONDecode(http:GetAsync("https://games.roproxy.com/v1/games?universeIds="..game.GameId))
print(data.data[1])

Output:
image

For favorites use this endpoint: https://games.roblox.com/v1/games/ID/favorites/count
For votes: https://games.roblox.com/v1/games/votes?universeIds=ID

2 Likes

This API is very useful for this.
https://games.roblox.com/docs/index.html

For example,
https://games.roblox.com/v1/games/YOUR_COOL_GAME/favorites/count
would return the favorites for that game.

1 Like

i want it to work not only for my game but for every game that i know Id of you know what i mean

1 Like

how about likes, visits and current active players?

1 Like

i want info from other games too

2 Likes

It works for all games, @3YbuKtOp 's reply also has examples.

1 Like

but he used game.GameId there and i think it needs to be universe id which i dont have

Just replace that with the ID of the game you’d like

Endpoint to get GameId from PlaceId: https://games.roblox.com/v1/games/multiget-place-details?placeIds=ID
You need universeId from response
OR
https://apis.roblox.com/universes/v1/places/PLACE_ID/universe (@Th1rust)

i need universeId, its not the same as GameId

if i use game id this is the resoult:
image

I need to get UniverseId from GameID

UniverseId=GameID. It is the same. But PlaceId ~= GameId

somehow no, i showed what i got as a resoult when i used GameId

Apologies for my mistake, you can use https://apis.roblox.com/universes/v1/places/PLACE_ID/universe to get the universe ID.

1 Like

Are you sure it was the GameId? Send it please

This is the ID i used: 142823291