0

As the title says and in short: I want to get the count of cards I have for a given game.

I've seen this discussion but I don't want to see all the inventory (no pagination needed), instead I want to get data of a specific AppID.

https://steamcommunity.com/profiles/<xxxx>/inventory/json/491080/2 seems not to be working as it returns {"success":false}

Enissay
  • 4,969
  • 3
  • 29
  • 56

1 Answers1

0

AFAIK, there is no such endpoint - you'll need to fetch 753/2 and count them one by one.

Trading cards are part of your Steam inventory (AppID code 753) and not game inventory. For example, TF2 cards are placed inside your Steam inventory (753) while the actual in-game items are inside TF2 inventory (440).

Another possibility would be to crawl http://steamcommunity.com/my/badges and get the numbers from there. This is what many automated scripts do.

scholtzm
  • 46
  • 4
  • There's no count of cards displayed in `http://steamcommunity.com/my/badges`, or is there ? or did you mean crawl that page then each badge page... Oh gosh, that would be awful xD – Enissay Aug 08 '17 at 13:31
  • Yep. Loading `753/2` inventory is probably your best bet. – scholtzm Aug 08 '17 at 15:31