Steam.getPlayerBans()

GetPlayerBans returns Community, VAC, and Economy ban statuses for given players.

Usage

Hover over inputs/exits for more info.

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


// GetPlayerBans returns Community, VAC, and Economy ban statuses for given players.

Steam.getPlayerBans({

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',
       CommunityBanned: false,
       VACBanned: false,
       NumberOfVACBans: 0,
       DaysSinceLastBan: 0,
       EconomyBan: 'none' } ] }