steam-api-node
steam-api-node copied to clipboard
Add gameinfo to player state
When user is in a game, extra state is returned on the player object - here is an example response, unimportant crap removed for conciseness:
{
"response": {
"players": [
{
"steamid": "{redacted}",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "{redacted}",
"lastlogoff": {redacted},
"profileurl": "{redacted}/",
"avatar": "{redacted}",
"avatarmedium": "{redacted}",
"avatarfull": "{redacted}g",
"personastate": 3,
"primaryclanid": "{redacted}",
"timecreated": {redacted},
"personastateflags": 0,
"gameextrainfo": "Spelunky",
"gameid": "239350",
"loccountrycode": "AU"
}
]
}
}