SteamAPI
Setup
Installation
npm i steamapi
Getting an API Key
Once signed into Steam, head over to http://steamcommunity.com/dev/apikey to make an API key
Usage
First, start by making a new SteamAPI "user"
const SteamAPI = require('steamapi');
const steam = new SteamAPI('steam token');
Now, you can call methods to the steam
object
For example, lets get the SteamID64 of a user. SteamAPI provides a resolve
method which allows urls/id/profile
steam.resolve('https://steamcommunity.com/id/xDim').then(id => {
console.log(id);
});
Now let's take that ID and get their profile
steam.getUserSummary('76561198378422474').then(summary => {
console.log(summary);
});
Methods
- get
- resolve
- getGameAchievements
- getGameNews
- getGamePlayers
- getGameSchema
- getUserAchievements
- getUserBans
- getUserFriends
- getUserGroups
- getUserStats
- getUserSummary