JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q46341F
  • License MIT

Script to get Steam store data

Package Exports

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

Readme

Steam Store API Wrapper

NodeJS module for searching and getting Steam store listings. No API key required

Installation

npm i steamstoreapi

Usage

Get app ID by title

Scans the steam.json file for the title

var SteamStoreAPI = require("steamstoreapi")

var title = "Golf With Your Friends" //case insensitive
SteamStoreAPI.searchItem(title, function(data) {
    console.log(data);
    // Outputs => [ { appid: 431240, name: 'Golf With Your Friends' } ]
})

Get data by ID

Get app data by ID. Example

Get Data Like:

  • Type (Game, Music, DLC, etc)
  • Game title
  • Game price
  • DLC IDs
  • Description
  • System requirements
  • Promo images
  • Screenshots
  • Platforms
  • Genres
  • Achievements
  • Recommendations
  • Categories
  • etc
var SteamStoreAPI = require("steamstoreapi")

var id = "431240"
SteamStoreAPI.getByID(id, function(data) {
    console.log(data);
    /*

    Output:

    {
        "type":"game",
        "name":"Golf With Your Friends",
        "steam_appid":431240,
        "required_age":0,
        "is_free":false,
        "dlc":[
           564170,
           1277570
        ],
        "detailed_description":"...",
        "about_the_game":"...",
        "short_description":"...",
        "supported_languages":"...",
        "header_image":"...",
        "website":"https://www.team17.com/",
        "price_overview":{
           "currency":"CAD",
           "initial":1749,
           "final":577,
           "discount_percent":67,
           "initial_formatted":"CDN$ 17.49",
           "final_formatted":"CDN$ 5.77"
        },
    }
    */
})

Update steam.json

Updates the onfile json object from this URL

var SteamStoreAPI = require("steamstoreapi")

SteamStoreAPI.updateSteamApps()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT