JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q38189F
  • License ISC

This package allows you to access Steam web api data easily.

Package Exports

  • @__mdev/m-steamapi
  • @__mdev/m-steamapi/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 (@__mdev/m-steamapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

m-SteamAPI

This package allows you to access Steam web api data easily.

Initialization example:

const steamAPI = require('@__mdev/m-steamapi');
const api = new steamAPI({
    apiKey: YOUR_STEAM_API_KEY
});
await api.getPlayerCount(APPID);

To get your API key go here: https://steamcommunity.com/dev/apikey

Functions:

> getPlayerCount(appID)
    - Get back player count from specified Steam app ID.
> getPlayerSummaries(steamID)
    - Get back player data from specified SteamID64.
> getUserGroups(steamID)
    - Get back user groups list from specified SteamID64.
> resolveVanityUrl(vanityURL)
    - Get back user SteamID64 from VanityURL.
> getUserBans(steamID)
    - Get user ban stats from SteamID64.
> getGameAchievements(appID)
    - Get list of achievements from specified appID.
> getUserStatsForGame(steamID, appID)
    - Get user achievements from specified appID.
> getSteamGames()
    - Returns Steam games from store.
> getSteamSoftware()
    - Returns Steam software from store.
> getUserBadges(steamID)
    - Returns user owned Steam badges.
> getUserCommunityBadgeProgress(steamID)
    - Returns user Community Badge progress.
> getUserDisplayedBadge(steamID)
    - Returns user's displayed badge details.
> getUserGames(steamID)
    - Returns list of user's owned games.
> getUserCustomizationDetails(steamID)
    - Returns user's profile customization details.
> getUserProfileItemsEquipped(steamID)
    - Returns user's profile items equipped.
> getUserRecentlyPlayedGames(steamID)
    - Returns user's recently played games count and list.
> getUserLevel(steamID)
    - Returns user's Steam level.
> getLevelDistribution(level)
    - Returns data about Steam level distribution.
> getAppNews(appID)
    - Returns news of providen appID.
> getInventory(appID, steamID)
    - Returns Array with user inventory items.
> getAppDetails(appID)
    - Returns details about specified appID.