New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

steam-market-pricing

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steam-market-pricing

Simple module that checks steam market prices

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-56.94%
Maintainers
1
Weekly downloads
 
Created
Source

Steam market price checker for Node.js

NPM version NPM license

Installation

Install using:

npm install steam-market-pricing

Usage

Get single item data

Input:

var market = require('steam-market-pricing');

market.getItemPrice(730, 'MP9 | Storm (Minimal Wear)', function(err, data) {
    if(!err) {
        console.log(data);
    }
});

Output:

{
    "success": true,
    "lowest_price": "$0.06",
    "volume": "237",
    "median_price": "$0.04",
    "market_hash_name": "MP9 | Storm (Minimal Wear)"
}

Get multiple items data

Input:

var market = require('steam-market-pricing');

market.getItemsPrice(730, ['MP9 | Storm (Minimal Wear)', 'Sawed-Off | Origami (Well-Worn)'], function(data) {
    console.log(data);
});

Output:

{
    "Sawed-Off | Origami (Well-Worn)": {
        "success": true,
        "lowest_price": "$0.09",
        "volume": "160",
        "median_price": "$0.07"
    }, "MP9 | Storm (Minimal Wear)": {
        "success": true,
        "lowest_price": "$0.06",
        "volume": "236",
        "median_price": "$0.05"
    }
}

Get single item data using getItemsPrice

Input:

var market = require('steam-market-pricing');

market.getItemsPrice(730, 'MP9 | Storm (Minimal Wear)', function(data) {
    console.log(data);
});

Output:

{
    "Sawed-Off | Origami (Well-Worn)": {
        "success": true,
        "lowest_price": "$0.09",
        "volume": "160",
        "median_price": "$0.07"
    }
}

Note: You can't handle response errors using getItemsPrice() method, any error will show as success: false.

Methods

getItemPrice(appid, name, callback, [currency])

Requests steam item market details

getItemsPrice(appid, names, callback, [currency])

Requests multiple steam items market details. Any error will be shown as success: false.

License

MIT

Keywords

FAQs

Package last updated on 27 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc