How to know how many visits a game has

Hello! I want to do something like new update at 1k visits or something like that but of course, no one wants to do it manually. So I want to know how to use http/api to get the number of visits a game has. (Not to be confused with how many times a player played the game but the actual visits of a game). Thank you so much for reading up to here please reply if you read here thank you so much!

You can check at the bottom game page on the Roblox website.

1 Like

Yes, but as I said,

So I need to access it from a script. Can you help please?

1 Like

You will need a universe ID to access this info from the Roblox API. To convert a place ID into a universe ID, use this endpoint:

https://api.roblox.com/universes/get-universe-containing-place?placeid=yourplaceIDhere

Then, you can get the info for said game by using this endpoint:

https://games.roblox.com/v1/games?universeIds=universeidhere

Keep in mind you need a proxy to access these since they are Roblox domains, and you can’t make requests through HTTPService in Roblox servers to them.

4 Likes

You can use the

games.roblox.com/v1/games?universeIds=XXXX

API endpoint.

More info: https://games.roblox.com/docs#!/Games/get_v1_games

Remember to replace xxxx with the universe ID of your game. To find it;

  1. Click the three dots at the top-right of your game’s page.
  2. Click “Configure this Experience”.
  3. Copy the numbers after “id=” in the address bar.
1 Like

This works, if your good at scripting you could understand what he told very well, i am making a tutorial on this soon, thank you for your info

I’m sorry but I don’t know anything about http can you like give me a piece of lua code pls? Add you have to do is to give me some code that will retrieve the data from the website you gave me, https://games.roblox.com/docs#!/Games/get_v1_games . Can you tell me how to retrieve the data into a script please? Thank you so much!

how do i get a proxy? i havent found anything searching

1 Like

You need to set up a web server as a middle-man between your game and roblox api.
So communication would be as follows:
Roblox Game → Your Web Server → Roblox Api

You would of course have to script a proper web application for your server to make it able to receive a http request, forward it to Roblox Api and return the response.

Yikes. I’d probably prefer to just leech off of someone else’s web server. My only query is where I can find one