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/DimGG').then(id => {
console.log(id);
});
Now let's take that ID and get their profile
steam.getUserSummary('76561198146931523').then(summary => {
console.log(summary);
});
Methods
- resolve(info)
- get(path)
- getAppList()
- getFeaturedCategories()
- getFeaturedGames()
- getGameAchievements(app)
- getGameDetails(app)
- getGameNews(app)
- getGamePlayers(app)
- getGameSchema(app)
- getServers(ip)
- getUserAchievements(id, app)
- getUserBadges(id)
- getUserBans(id)
- getUserFriends(id)
- getUserGroups(id)
- getUserLevel(id)
- getUserOwnedGames(id)
- getUserRecentGames(id)
- getUserServers([hide], [key])
- getUserStats(id, app)
- getUserSummary(id)