[SOLVED] Roblox Games Api V1 - NextPageCursor is always null

Update (13/2/2022): nextpagecursors work fine now, seems like roblox fixed the issue. Old post below:

I’m trying to get all of the game’s servers using the roblox games api v1, but now the nextpagecursor is returning null. This worked fine a couple days ago so I don’t know whats wrong.

image

Try it for yourself: https://games.roblox.com/v1/games/5972698540/servers/Public?limit=10

image

And the problem isn’t the lack of a new page of servers.

Maybe the api is rate limited to 100 so I don’t know

Do you want to do this thru roblox?

I don’t believe the api rate limit is only 100, the api worked fine for me a couple days ago and was returning the nextpagecursor correctly.

There are pages, move through them.

I prefer you using this code

local decodedBody = httpService:JSONDecode(proxy:Get('https://games.roblox.com/v1/games?universeIds=100').body)

I would need the nextpagecursor to do that.

You could use a discord bot to help send the information faster using the API or something to the server!

That api doesn’t return the servers so that wouldn’t work.

Yes, but i’m first trying it out on the browser. Would it make a difference if I did it through a game?

In my opinion yes since I rely on bots and etc!

Just tried it inside a game and there’s no difference, weird because this was working perfectly just a couple days ago and now all of the sudden it stops working.

Alright so for some reason, that API point does not work properly (Which is probably a bug that needs to be reported.).

To somewhat get around this problem (At least, for the time being.), you can send multiple requests to this URI where {placeId} is the PlaceId of your game and {startIndex} is the index that request will return the next 10 collection items from that given index (Which you should start from 0 and increment it by 10 for every request until you come across an empty collection.):
https://www.roblox.com/games/getgameinstancesjson?placeId={placeId}&startIndex={startIndex}

An example response JSON looks like this when a request sent to this URI:
https://www.roblox.com/games/getgameinstancesjson?placeId=5972698540&startIndex=0

1 Like

This works as an alternative solution, thank you. Someone who has access to the bug reports channel should report this.