Lonster_Monster Posted September 2, 2018 Report Share Posted September 2, 2018 (edited) What is the Best way to call steam api for steam items i have been using $id = "76561198147982809"; $query = "http://steamcommunity.com/profiles/".$id."/inventory/json/440/2/";; $json = file_get_contents($query); $data = json_decode($json, true); to get my bots inventory of course has 0 tradable items and get the failed error alot failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests is calling the http://steamcommunity.com/profiles/[steamid]/inventory/json/440/2/ the best way i am creating a website like scrap.tf for my steam bots to buy and sell itemsif there is a better way Please let me know i know some about the steam API but not the most about it and not sure which would be best if i use thatand also if i upload my site onto my host will it do the errors alot or just when client calls the json i used? Edited September 2, 2018 by Lonster_Monster Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 3, 2018 Report Share Posted September 3, 2018 Everything is going to be rate-limited, but the least rate-limited endpoint is: https://steamcommunity.com/inventory/[steamid]/440/2 Quote Link to comment Share on other sites More sharing options...
Lonster_Monster Posted September 3, 2018 Author Report Share Posted September 3, 2018 ok thanks i just wanted to make sure if that was correct on the link thanks alot Quote Link to comment Share on other sites More sharing options...
Enemtia Posted October 10, 2018 Report Share Posted October 10, 2018 Hi! I use for this api: https://steamcommunity.com/inventory/[steamid]/440/2 I have 992 items and it only shows a few item. "more_items":1,"last_assetid":"7213560531","total_inventory_count":992,"success":1,"rwgrsn":-2 How to show all items? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 10, 2018 Report Share Posted October 10, 2018 Use a ?count=x parameter to specify how many items you want it to return. I think the limit might be 2000. If you still get more_items: 1 in the response then you need to make another request with a parameter in the URL start_assetid=. Quote Link to comment Share on other sites More sharing options...
EnelGy Posted May 1, 2021 Report Share Posted May 1, 2021 @Dr. McKay Do I need any API to get users content of inventory ? Quote Link to comment Share on other sites More sharing options...
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.