SteamBot icon indicating copy to clipboard operation
SteamBot copied to clipboard

Error 429 when pulling inventory data

Open xagotrunk opened this issue 9 years ago • 10 comments

Did steam throttle the number of requests you could make to a inventory request. I'm getting 429 (Too many requests) errors quite a bit

xagotrunk avatar Dec 09 '16 03:12 xagotrunk

Yes, they've throttled it even more now.

There's a new endpoint for inventory requests now used on the /inventory/ page and it works slightly differently.

waylaidwanderer avatar Dec 09 '16 03:12 waylaidwanderer

What is the new endpoint?

xagotrunk avatar Dec 09 '16 03:12 xagotrunk

Go press F12 on http://steamcommunity.com/my/inventory/ and you'll see.

waylaidwanderer avatar Dec 09 '16 03:12 waylaidwanderer

The new endpoint is also paginated, but for the count parameter you can go up as high as 5000, so assuming same rate-limits as before this will be sufficient to load a single inventory in most cases.

waylaidwanderer avatar Dec 09 '16 04:12 waylaidwanderer

I looked at the source, I don't see any different way of obtaining a JSON format of the inventory

xagotrunk avatar Dec 09 '16 04:12 xagotrunk

Valve has added a new endpoint for inventory requests and has rate-limited the old one further to 5 requests/min.

Old: http://steamcommunity.com/profiles/76561198045552709/inventory/json/730/2
New: http://steamcommunity.com/inventory/76561198045552709/570/2?l=english&count=5000
New with pagination: http://steamcommunity.com/inventory/76561198045552709/570/2?l=english&count=250&start_assetid=8244114748

count, used for pagination, can be a max of 5000.

waylaidwanderer avatar Dec 09 '16 05:12 waylaidwanderer

Update: The new endpoint has the same new rate limit as the old endpoint, unless you are requesting your own inventory. Using proxies are almost a must at this point. I recommend Blazing SEO (affiliate link, non-affiliate link). I use them for lots of stuff and the speeds are pretty good.

waylaidwanderer avatar Dec 09 '16 15:12 waylaidwanderer

Update: Valve seems to have relaxed the rate limit. To what exactly, I'm not sure. If someone can test and report it that would be helpful. People are reporting 20-30 but it could be higher.

waylaidwanderer avatar Dec 09 '16 23:12 waylaidwanderer

The limit on the old endpoint (at least) is getting much worse. We should update to the new one.

BlueRaja avatar Mar 05 '17 16:03 BlueRaja

I had the same and i found out. In addition to services like www.steamwebapi.com (free) and steamapis.com (paid), you can also explore the option of setting up your own proxy to access Steam's inventory. However, it's important to note that Steam has implemented restrictions on inventory access since 12/22, which impact the effectiveness of these solutions.

digitaltim-de avatar Jul 06 '23 03:07 digitaltim-de