Closed majidarif closed 6 years ago
Really? I can't believe how incomplete and inconsistent Valve's APIs are.
To be honest, I don't think that this will be added any time soon, because it requires a custom parser for Valve's VDF format. Additionally it also adds another request to load that file and like the usual schema it's not that small (currently almost 6 MB).
Yeah, I agree. I would just temporarily make a class for this and insert it into a db. Just wouldn't be logical to pull this every time we make a request.
Does the hash on the file name change over time (i.e. when a new schema is released with a game update)? Otherwise you will have the same problem that we currently have with the Web API schema, it's not versioned and the HTTP server doesn't send cache relevant headers.
Closing this as I don’t see a chance that a VDF parser will make it into Steam Condenser. Sorry.
Not as much as an actual issue than a feature request for item schemas.
Here is how to get the item rarity for dota2,
http://api.steampowered.com/IEconItems_570/GetSchema/v0001/?key=XXXX
then
this fetch the web schema. let say you json-decoded it to $content. the url of the in-game schema is $content->result->items_game_url; that's an url of a txt file which actually a vdf file. and it has info you can't found from web schema, include the rarity of each item.
Sample: