Gameserver Player
GET
/server/v1/players/{steam64}
const url = 'https://example.com/server/v1/players/1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/server/v1/players/1Everything a server needs to know about one player. Asking does not queue them.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”steam64
required
Steam64
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
PlayerState
One player as every player-facing route here reports them. A matchId with no
relayTo means matched and still choosing.
object
steam64
required
Steam64
string
name
required
Name
string
elo
required
Elo
integer
rankIcon
required
Rankicon
string
choose
required
Any of:
Choices
What a player still gets to decide, and what they have decided so far. A list with one entry is not a choice and comes back empty.
null
Examplegenerated
{ "steam64": "example", "name": "example", "avatar": "example", "elo": 1, "rankIcon": "example", "matchId": 1, "relayTo": "example", "choose": { "kits": [ "example" ], "powerups": [ "example" ], "kit": "example", "powerup": "example" }, "ban": { "reason": "example", "expires": 1, "permanent": true }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}