Help with gamejoin API

Hello, so i was trying to make a join game request to this url https://gamejoin.roblox.com/v1/join-game-instance and i don’t actually really understand the parameters you need to pass, which in the example are the following.

{
  "gameId": "00000000-0000-0000-0000-000000000000", --know
  "gameJoinAttemptId": "00000000-0000-0000-0000-000000000000",
  "placeId": 0, --know
  "gamerTag": "string",
  "isPartyLeader": true,
  "isPlayTogetherGame": true,
  "browserTrackerId": 0,
  "isTeleport": true
}

I know how to get the gameId but gameJoinAttemptId and all the others except gameId and placeId seem weid to me. I would like to know how i would go about getting the values of those parameters because i need to get the server address in order to compare an incoming request and ensure that requests to my api are made only by game servers.

Also there are parameters regarding party but weren’t parties removed?

You can get the browserTrackerId from a api i think, but i forgot the name of it.

Do you know how to get the other params?

gameJoinAttemptId is a JobId i think

If gameJoinAttemptId is the jobid what would gameId be? both adapt to the jobId format which i got from https://www.roblox.com/games/getgameinstancesjson?placeId=8251653244&startIndex=0 (same of game.JobId). The documentation is really poor of informations and display not listed statuses

This api is officially deprecated and games.roblox.com should be used instead.

2 Likes

From reading through the api, GameId is actually the JobId, not the GameId.

Yes i know but that api doesn’t provide any endpoint to get a server ip

Yeah, these apis are likely not to be used by developers.

From what i know when you click play it connects you to the game server and so gives the server addres and port, i just need the server addres and was wondering how to take it

I think you are looking at the wrong list of fields, server address is not required, it is instead part of the response of the request.

What request? Do you mean the one made when you click the play button?

i don’t need the server address to join a game but to compare it with the one of an incoming request to allow access to the api to roblox games servers only

You can’t really do this, everything can be faked, it would be better using a secret code in the http request that only your server and the Roblox game server knows.

Yes

ur api request has to be from the roblox site. So like an extension on chrome. Otherwise it won’t work(this includes for the web api ur trying to use). A way to join the game is to do in the console:

Roblox.GameLauncher.joinMultiplayerGame(PLACE_ID)

this will launch the game

Every request exposes the ip and even roblox games servers do and you can get it with req.connection.remoteAddress or req.headers[‘x-forwarded-for’]

Launching a game is not what i thought it was a possible way to get the server address also because here it displays this as response
immagine
(gamejoin.roblox.com)

may I ask what you mean by server address? Like job id or server ip address?

Roblox has hundreds of servers that are constantly on rotation, this will not help you!

what i mean is ip address chars

Oh well i was planning on restricting the field by getting servers of a game only

That won’t work since your game will have multiple server ips that change regularly.