Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'm getting 429 error working with SteamWebApi (CSGO Inventory)

I am using this url https://steamcommunity.com/profiles/[STEAMID]/inventory/json/730/2/

then decoding it with json_decode - as it is it works fine, until I refresh my page 2 times, then it gets the error out as it says:

failed to open stream: HTTP request failed! HTTP/1.0 429 Too Many Requests

like image 400
ftrmroz Avatar asked Mar 04 '26 13:03

ftrmroz


1 Answers

The cause are too many of your requests in too short a time.

The Steam servers accept 200 request in five minutes or on average one request every 1.5 seconds. You need to do rate limiting by throttling the number of requests you send in order to prevent this error.

like image 199
EliteRaceElephant Avatar answered Mar 09 '26 01:03

EliteRaceElephant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!