steam-players
v2.0.3
Published
Node.js package for get Steam player summaries
Downloads
4
Maintainers
Readme
steam-players
Node.js package for get Steam player summaries.
Docs
Prerequisites
Installation
npm install steam-players
Credentials
1. Steam
# Account
Create an Steam account on https://store.steampowered.com/.
# API Key
Create an API key on https://steamcommunity.com/login/home/?goto=%2Fdev%2Fapikey.
Example
const Steam = require('steam-players');
const steam = new Steam({
key: 'STEAM_API_KEY',
});
(async () => {
try {
const playerSummaries = await steam.playerSummaries({ steamids: '76561198027639832' });
console.log(playerSummaries);
} catch (error) {
console.error(error);
}
})();