Hey there, how would I get the total number of servers of my game? Maybe Roblox has an API endpoint for this? Or maybe it can be achieved somehow with MessagingService? I’m not too sure…
I don’t think you can because there isn’t really any reason to do that.
https://games.roblox.com/v1/games/1818/servers/Public?sortOrder=Asc&limit=100
API endpoint used:
https://games.roblox.com/docs#!/Games/get_v1_games_placeId_servers_serverType
Thanks! Where can I learn how nextPageCursor works?
You’ll only need NextPageCursor if your game (or the game you’re checking) has over 100 servers open (as specified by the “limit” parameter of the query string). If the “nextPageCursor” field of the returned JSON data is not null then all you need to do is copy its value and paste it into the “cursor” parameter of the query string.
Today i’ve tried getting the amount of servers via the same way, the error is “HttpService is not allowed to access ROBLOX resources”, any fix for that?