1.10.0 • Published 1 year ago

steamwebapi-ts v1.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.9.12

1 year ago

1.10.0

1 year ago

1.9.11

1 year ago

1.9.10

1 year ago

1.9.1

2 years ago

1.9.0

2 years ago

1.9.9

2 years ago

1.9.8

2 years ago

1.7.7

2 years ago

1.9.2

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

3 years ago

1.5.14

3 years ago

1.5.15

3 years ago

1.5.12

3 years ago

1.5.11

3 years ago

1.5.13

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.4.3

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.5.10

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago