steam-super-api
v0.0.6
Published
A set of functions with links that provide the steam API and others created by me.
Downloads
9
Readme
Table of Contents
Install:
npm install steam-super-api
Elements provided by Steam
GetNewsForApp
Function:
gameNewsId(id, count, maxlength)
.then(r => console.log(r))
id: AppID of the game you want the news of.
count: How many news enties you want to get returned.
maxlength: Maximum length of each news entry.
GetGlobalAchievementPercentagesForApp
Function:
gameGlobalAchievementPercentagesId(id, filter)
.then(r => console.log(r))
id: AppID of the game you want the percentages of.
filter: If the filter is not defined, an array will be displayed with all the results and if the filter is defined, filter as elements of the set by the "name".
GetPlayerSummaries
Function:
playerSummariesId(id, key)
.then(r => console.log(r))
id: Comma-delimited list of 64 bit Steam IDs to return profile information for. Up to 100 Steam IDs can be requested.
key: your API key
GetFriendList
Function:
playerFriendListId(id, key)
.then(r => console.log(r))
id: 64 bit Steam ID to return friend list for.
key: your API key
GetPlayerAchievements
Function:
playerAchievementId(id, game, key, fil)
.then(r => console.log(r))
id: 64 bit Steam ID to return achievements for.
game: The ID for the game you're requesting
key: your API key
fil: If the filter is not defined, an array will be displayed with all the results and if the filter is defined, filter as elements of the set by the "apiname".
GetOwnedGames
Function:
playerOwnedGamesId(id, key, fil)
.then(r => console.log(r))
id: The SteamID of the account.
key: your API key
fil: If the filter is not defined, an array will be displayed with all the results and if the filter is defined, filter as elements of the set by the "appid".
GetSchemaForGame
Function:
schemaGameId(id, key, fil)
.then(r => console.log(r))
id: The ID for the game you're requesting
key: your API key
fil: If the filter is not defined, an array will be displayed with all the results and if the filter is defined, filter as elements of the set by the "displayName".
GetPlayerBans
Function:
playerBanId(id, key)
.then(r => console.log(r))
or
playersBansIds(key, id, id, id, etc...)
.then(r => console.log(r))
id: Comma-delimited list of SteamIDs
key: your API key
Items not provided by Steam
searchForGamesByName
Function:
searchGameName("Game name", (err, data) => {
if (err) return console.error(err)
console.log(data)
})
searchForGamesById
Function:
searchGameId(AppId, (err, data) => {
if (err) return console.error(err)
console.log(data)
})
getPopularItems
Function:
marketItemsPopular((data, err) =>{
if (err) return console.error(err)
console.log(data)
})