steam-market-manager
v1.0.8
Published
A simple module to query Steam Market Item prices. Also possible to create your own web api for prices using this.
Downloads
14
Readme
Steam Market Manager for Node.js
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 tofalse
, iftrue
then it will enable the WebApi using Express.webApiPort
- Optional. Defaults to1337
. 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