Cubson Posted July 18, 2021 Report Posted July 18, 2021 I only want to get the amount of gems a user has, so I don't have to load the whole inventory because gems are (usually) the first item in all Steam inventories. Is there any way to achieve that without loading the wholle inventory? Quote
Dr. McKay Posted July 20, 2021 Report Posted July 20, 2021 You can use the count URL parameter to filter how many items are returned, like this: https://steamcommunity.com/inventory/76561198006409530/753/6?count=1 Cubson 1 Quote
Cubson Posted July 20, 2021 Author Report Posted July 20, 2021 7 hours ago, Dr. McKay said: You can use the count URL parameter to filter how many items are returned, like this: https://steamcommunity.com/inventory/76561198006409530/753/6?count=1 Thank you very much! But no native support if I understood you correctly? Quote
Dr. McKay Posted July 20, 2021 Report Posted July 20, 2021 Native support for what, filtering by item name? No. Cubson 1 Quote
Cubson Posted July 21, 2021 Author Report Posted July 21, 2021 Native support for changing the count parameter. So I'll have to edit the library to add that? Quote
Dr. McKay Posted July 22, 2021 Report Posted July 22, 2021 No, there isn't any native support in the library for that. It would probably be easier for you to just manually send the request and parse the JSON yourself. Cubson 1 Quote
Cubson Posted July 22, 2021 Author Report Posted July 22, 2021 1 hour ago, Dr. McKay said: No, there isn't any native support in the library for that. It would probably be easier for you to just manually send the request and parse the JSON yourself. Okay, thank you again! Quote
Jack Nolddor Posted August 21, 2021 Report Posted August 21, 2021 Note that gems can be split into different inventory slots as well as sack of gems. Just saying... Quote
Cubson Posted August 22, 2021 Author Report Posted August 22, 2021 7 hours ago, Jack Nolddor said: Note that gems can be split into different inventory slots as well as sack of gems. Just saying... Yep, but I doubt it'd go beyond the first page. Quote
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.