spock Posted January 9, 2017 Report Share Posted January 9, 2017 Without having to make a call to either steam inventory or get user inventory as the docs say to get a CEItem... is there another realible way to find the rarity type of an item either by calling steam? Or will I need to resort to come kind of community market scrapping to find the rarity type I want for an item not in a steam inventory. Thanks Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 9, 2017 Report Share Posted January 9, 2017 What data do you have that you want to get a rarity for? Just the name? If so then yes, you need to get the data from an inventory or from the market. Quote Link to comment Share on other sites More sharing options...
spock Posted January 9, 2017 Author Report Share Posted January 9, 2017 (edited) What data do you have that you want to get a rarity for? Just the name? If so then yes, you need to get the data from an inventory or from the market. Just the market hash name. How can I get it from the market using steam-community? the https://github.com/DoctorMcKay/node-steamcommunity/wiki/CMarketItem doesn't have the rarity Edited January 9, 2017 by spock Quote Link to comment Share on other sites More sharing options...
spock Posted January 13, 2017 Author Report Share Posted January 13, 2017 Only way I know how to is to call the https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20%28Field-Tested%29 for example and grab the rarity type there. Is there an api i'm missing somewhere to get this? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 13, 2017 Report Share Posted January 13, 2017 I don't believe there's currently an API or an existing module/library that will do that for you, sorry. Quote Link to comment Share on other sites More sharing options...
spock Posted January 14, 2017 Author Report Share Posted January 14, 2017 I don't believe there's currently an API or an existing module/library that will do that for you, sorry. You're right, there isn't. However I was able to find all the data I need with this node module. https://www.npmjs.com/package/node-csgo-parser#CSGODataParser You can grab all the weapons and rarity data from your game files and save them to a db that way. Very handy. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.