Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Steam Market Manager for Node.js

npm version npm downloads license steam

Install it from npm or check out the wiki for documentation.

Purpose of this module

I'm developing this module for Skins.ee CS:GO item trade-up website. Since I did not find any other module suitable for my needs I've decided to create my own first module for Node.js.

I will add features that I need. If you have some good ideas please let me know.

Module

Web API

You can either call the methods below in a script or enable the WebApi.

Constructor options for WebApi

  • enableWebApi - Optional. Defaults to false, if true then it will enable the WebApi using Express.
  • webApiPort - Optional. Defaults to 1337. This is the port the WebApi will be listening on.
  • webApiSeperator - Optional. Defaults to !N!. This seperates the items when calling /items/:names.

/item/:name

Fetches item's price from Market using getItem method. Uses the default constructor values.

/items/:names

Fetches multiple items prices from Market using getItems method. Uses the default constructor values.

/items/all

Fetches all items and their prices from Backpack.tf using getAllItems method. Uses the default constructor values.

Methods

getItem(options, callback)

Fetches item's price from Market.

getItems(options, callback)

Fetches multiple items prices from Market.

getAllItems(options, callback)

Fetches all items and their prices from Backpack.tf. Holds the fetched data for 300 seconds before making a new query since Backpack.tf API limit is 1 request per 300 seconds.

getInventory(options, callback)

Gets the user inventory using node-steamcommunity and adds the option to append priceData to the inventory items.

Support

Report bugs on the issue tracker

About

Simple module to query Steam Market Item prices.

Resources

License

Releases

No releases published

Packages

No packages published