This is a module developed by OlleThunberg that lets you easily check in-game items values.
Install
npminstallsteam-price-api--save
Import
conststeamprice=require('steam-price-api');
//For one itemsteamprice.getprice(appid,itemname,currency);
appid
: The games appid. (730 = CSGO)itemname
: The items market name. (Example: Clutch Case)currency
: The currency innumbers. (1 = USD);
steamprice.getprice(730,'Clutch Case','1').then(data=>{console.log(data);}).catch(err=>console.log(err));
Output
{"success":true,"lowest_price":"$0.21","volume":"31,939","median_price":"$0.21" }
constitems=['Clutch Case Key','Clutch Case']steamprice.getprices(730,items,'1').then(data=>{console.log(data);}).catch(err=>console.log(err));
Output
{"success":true,"lowest_price":"$2.56","volume":"3,110","median_price":"$2.56" }{"success":true,"lowest_price":"$0.21","volume":"31,939","median_price":"$0.21" }
MIT License
Copyright (c) 2018 Olle Thunberg
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.