Jump to content
McKay Development

Getting the item rarity type or tags


spock

Recommended Posts

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

Link to comment
Share on other sites

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 by spock
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...