JSPM

  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q65325F
  • License MIT

> A simplified wrapper for the steam web api

Package Exports

  • steamwebapi-ts
  • steamwebapi-ts/lib/index.esm.js
  • steamwebapi-ts/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steamwebapi-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

steamwebapi

A simplified wrapper for the steam web api

This is a simple and lightweight wrapper for the steam web api. Created because the other options weren't simple enough for me.

Documentation

Installation

npm install @razr9/steamwebapi

or

yarn add @razr9/steamwebapi

Usage

const Steam = require('steamwebapi')
const api = new Steam(API_KEY_HERE)

const id = 76561198052893297 || 'cmdline' // You can use steamID64 or the vanity url

api.getPlayerSummary(id).then(data => {
  console.log(data)
})

Methods

resolveId(id) // resolves vanity url to steamID64
getNewsForApp(appid[,count = 3, maxLength = 300])
getGlobalAchievementPercentagesForApp(appid)
getGlobalStatsForGame(appid[,count = 1, achievements = []])
getPlayerSummary(id)
getOwnedGames(id [,include_free_games=false, include_appinfo=false])
getUserLevel(id)
getUserBadges(id)
getRecentlyPlayedGames(id)
getPlayerBans(id)
getPlayerAchievements(id, appid)
getUserStatsForGame(id, appid)
getFriendList(id)
isPlayingSharedGame(id, appid)
getSchemaForGame(appid)
getAppList()
getAppInfo(appid)
getNumberOfCurrentPlayers(appid)

More info: https://partner.steamgames.com/doc/webapi/

License

MIT