Question

The Steam WebAPI allows for downloading game and player items. The GetSchema service, however, does not included the item attributes and description. This information is contained in the GetAssetClassInfo service. The required parameters for this service include a classid, but the documentation is not at all clear where this identifier is defined or derived. How do I get the classID for a given item?

Was it helpful?

Solution

I hopped onto the IRC channel of the maintainers of the TF2 Wiki to ferret out this piece of information and then updated the service documentation.

Essentially, you have to do a 'GetSchema' call to get all the items, then call the GetAssetPrices service. While the service describes getting the pricing information of items, it also reveals a mapping between the defindex from the GetSchema service and the classID. With that mapping in hand, you can then call the GetAssetClassInfo service using the classID.

This information is now officially documented in the wiki. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top