JSPM

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

Retrieves item market prices, images, names and types using the steam market search

Package Exports

  • steam-market-search

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

Readme

steam-market-search

NPM

What is this?

steam-market-search is a NodeJS package for retrieving market information of steam community items for a certain app. These items are Emoticons, Backgrounds, Trading cards and Booster Packs.

Quick Start

Install in your app directory

$ npm install steam-market-search --save

Basic usage

var SteamMarket = require('steam-market-search');

// 311210 = Call of Duty: Black Ops III

SteamMarket.getItems({ appid : 311210 }, function(err, res){
    console.log( JSON.stringify(res[0], null, 2) );
});

Output:

{
  "item_name": "Metro (Foil)",
  "game_name": "Call of Duty: Black Ops III Foil Trading Card",
  "price": {
    "currency": "USD",
    "normal_price": 0.52,
    "sale_price": 0.5
  },
  "link": "http://steamcommunity.com/market/listings/753/311210-Metro%20%28Foil%29",
  "image": "...long image url...",
  "type": "Trading Card"
}

Filtering Results

You can get specific item types with the following functions

SteamMarket.getEmoticons({ appid : 311210 }, function(err, res){});
SteamMarket.getCards({ appid : 311210 }, function(err, res){});
SteamMarket.getBackgrounds({ appid : 311210 }, function(err, res){});

// If you want to get all item types (including boosters), Just use .getItems()

API Lockout!

If you receive this error, You've been probably been temporarily blocked from the steam API for making too many requests in a short time. This will go away after a few minutes, But If you don't want to see it again limit the requests you make per minute. Proxy support will be added in the future.

Additional Notes

  • Please report any issues here