API Endpoint to fetch usernames from a serverId?

The title pretty much explains it all…
I’m looking for a way to get all players using a serverId using a API Endpoint but I haven’t found anything yet.

I’ve tried this endpoint provided by Roblox but the Players area is empty
URL: https://games.roblox.com/v1/games/{id}/servers/Public?sortOrder=Desc&limit=100

Any help is appreciated

Ive been looking in the documentation here and it returns the Players id, name, and displayname. So I don’t see why mine isn’t working.

This is not possible without proper permissions, any authorized player who doesn’t have developer perms for that game will get the same result you got. This is to protect privacy and prohibit extensions that allow players to join certain players. You can only get a players thumbnail with player tokens as they are encoded in hash and cannot be decoded.

So if I’m the owner of the game, how would I use this API endpoint? Since I’m using cURL, it doesn’t know that I’m the owner, so would I need pass some sort of Header to prove that it’s me?

I suppose you have to send a .ROBLOSECURITY cookie (your roblox security cookie) through the headers but I suggest testing it on the games api docs to see what it sends.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.