1.10.0 • Published 2 months ago

steamwebapi-ts v1.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Main: [Coverage Badge]

steamwebapi-ts

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 steamwebapi-ts

Usage

import {Steam} from 'steamwebapi-ts';
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

isRateLimited // returns obj indicating if you are rate limited
requestCount // returns obj with total requests to steam and lastReset of the counter
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

originally forked from https://github.com/DevNvll/steamwebapi

1.9.13

2 months ago

1.9.12

2 months ago

1.10.0

2 months ago

1.9.11

3 months ago

1.9.10

3 months ago

1.9.1

11 months ago

1.9.0

11 months ago

1.9.9

10 months ago

1.9.8

11 months ago

1.7.7

11 months ago

1.9.2

11 months ago

1.7.6

12 months ago

1.7.5

12 months ago

1.7.4

12 months ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.14

2 years ago

1.5.15

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.13

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.4.3

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago