Roblox does not return the game (universe/place) directly in that response. The key field is:
I’m not sure if I should even say it. So, I’ll just stick with that.
I’m saying, Roblox does not return the game (universe/place) directly in that response.
I can’t think of any reason anyone would legitimately want to know that, so..
You can safely check Game Passes for games you own without violating any rules.
Other than that, it starts to get iffy, and it’s not directly shown for a reason.
Sweet, use your games description to link it to the dedicated gamepass page. That breaks no TOS rules as far as I know. There is also a store tab on all games that is a perfect spot for gamepasses.
Just click; Add Pass.
You can scrap the html page returned by the Roblox website to fetch the gamepass place.
All you have to do is:
Make a request to https://www.roblox.com/game-pass/{gamepassId}, it should redirect to https://www.roblox.com/game-pass/{gamepassId}/{HttpEncodedGamepassName}
Save the response and look for the target place id using a tool like control+F. As of writing this it’s located between the strings Use this Pass in: <a class="text-name text-overflow font-caption-body" href=https://www.roblox.com/games/ and >
Given the above info, write a small script, that after fetching the HTTP page, cuts/splits the string two times, so it starts after the first string and ends before the second string. Then tonumber it if you want.
I wont give you a code snippet because I feel it may change in the future, it’s the process that matters. If for some reason the first request returns a 302 error status code instead of 200, it didn’t do the redirect automatically. You can fetch the correct page by checking the location response header of that failed request, if that happens. Basically make two get requests.