steam-api-node
steam-api-node copied to clipboard
GetPlayerSummaries does not return gameid
For whatever reason, this item seems to be dropped from the user object
Raw request:
{
"response": {
"players": [
{
"steamid": "76561197993843660",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "Jippen Faddoul",
"lastlogoff": 1513248382,
"profileurl": "http://steamcommunity.com/id/jippenfaddoul/",
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d.jpg",
"avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_medium.jpg",
"avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_full.jpg",
"personastate": 1,
"primaryclanid": "103582791434280706",
"timecreated": 1193700531,
"personastateflags": 0,
"gameid": "466300",
"loccountrycode": "US",
"locstatecode": "CA"
}
]
}
}
And what I get from this library:
Player {
steamId: '76561197993843660',
communityVisibilityState: 3,
profileState: 1,
personaName: 'Jippen Faddoul',
lastLogoff: 1513248382,
profileUrl: 'http://steamcommunity.com/id/jippenfaddoul/',
avatar: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d.jpg',
avatarMedium: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_medium.jpg',
avatarFull: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_full.jpg',
personaState: 'Online',
primaryClanId: '103582791434280706',
timecreated: 1193700531,
personaStateFlags: undefined,
countryCode: 'US',
stateCode: 'CA' }
Yet I can't seem to find why this bit of data is left out.
I think the issue is not with API call but with the node code, as in how you are parsing the object. Check with the network call response, you will know what data actually coming.