How do I use roblox API to get my games likes?

I am trying to get the likes for my game here I have used it for arsenal but as you can see arsenal 100% does not have 28 likes please tell me how to fix this

https://games.roblox.com/v1/games/votes?universeIds=286090429

1 Like

UniverseId ~= PlaceId

In order to get UniverseId from PlaceId, you’d use https://games.roblox.com/v1/games/multiget-place-details?placeIds=0 0 being the PlaceId of the game details you want to get.

In the game details JSON table, there is a key called “universeId”, which you need to use in order to get the votes of a game, which once you’ve gotten that, you’d use the votes api link and put the universeId you got into the end of the link
https://games.roblox.com/v1/games/votes?universeIds=
This should tell you the votes of the game in question.

For Arsenal, the game details link would be
https://games.roblox.com/v1/games/multiget-place-details?placeIds=286090429,

which from there we get 111958650 from the universeId, which we then use for the votes API link
https://games.roblox.com/v1/games/votes?universeIds=111958650.

Edit:
Worth mentioning as you’re trying to use it for your own game:
Roblox blocks any HTTP requests from their game servers to their domains, you need to use a proxy server.

2 Likes

Thank you so much I was confused you have helped loads :smiley:

1 Like