Steamworks Web API player summaries wrapper for Node.js.
- Get player summaries
npm install steam-players
# 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.
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);
}
})();