Steam.getPlayerSummaries()

Returns basic profile information for a list of 64-bit Steam IDs.

Usage

Hover over inputs/exits for more info.

var Steam = require('machinepack-steam');


// Returns basic profile information for a list of 64-bit Steam IDs.

Steam.getPlayerSummaries({

steamids: [ '76561197960435530' ],

key: 'XXXXXXXXXXXXXXXXXXXXXXX',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

steamids required

Array of SteamIDs

[ '76561197960435530' ]
key required

Steam API Key

'XXXXXXXXXXXXXXXXXXXXXXX'

Exits

error

An unexpected error occurred.

success

OK.

{ players: 
   [ { steamid: '76561197960435530',
       communityvisibilitystate: 3,
       profilestate: 1,
       personaname: 'Robin',
       lastlogoff: 1426915786,
       profileurl: 'http://steamcommunity.com/id/robinwalker/',
       avatar: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/f1/f1dd60a188883caf82d0cbfccfe6aba0af1732d4.jpg',
       avatarmedium: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/f1/f1dd60a188883caf82d0cbfccfe6aba0af1732d4_medium.jpg',
       avatarfull: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/f1/f1dd60a188883caf82d0cbfccfe6aba0af1732d4_full.jpg',
       personastate: 0,
       realname: 'Robin Walker',
       primaryclanid: '103582791429521412',
       timecreated: 1063407589,
       personastateflags: 0,
       loccountrycode: 'US',
       locstatecode: 'WA',
       loccityid: 3961 } ] }