If you load Steam inventories from steamcommunity.com/inventory and start getting HTTP 429 Too Many Requests, you have hit Steam's rate limit for that endpoint. Valve does not publish how high that limit is or how long a block lasts, and in our experience it is counted per IP address. The fix is to send fewer requests per IP: bigger pages, caching, backing off on 429, or spreading requests over several IPs. This post explains each option and how the limits of the Steam API Hub inventory endpoint work instead.
These are two different things, and they are often mixed up.
The Steam Web API lives on api.steampowered.com and needs a Steam Web API key. Its terms of use set one published limit: 100,000 calls per day.
Inventories are not loaded from that host. The URL most tools use is on the community site and takes no Web API key:
1https://steamcommunity.com/inventory/STEAM_ID/730/2?l=english&count=2000
Here 730 is the app id of CS2 and 2 is the inventory context. Valve documents no limit for this URL, so the 100,000 per day of the Web API tells you nothing about it. And since the URL takes no Web API key, a key cannot raise its limit either.
The inventory endpoint answers 429 when too many requests come from one IP address. Because it is the IP that counts, everything that shares it counts together: several workers of your own app, other customers on the same cloud egress IP, or other users behind the same carrier NAT. A script that sends a few requests a minute from a busy shared IP can be blocked while the same script runs fine at home.
We run Steam inventory requests all day for our API, and on 429 we take the IP out of rotation for a few minutes before using it again. We do not quote a requests-per-minute number here, because Valve has not published one.
The Steam API Hub inventory endpoint runs the Steam requests through our own pool of IPs, handles Steam's 429s there and returns parsed items with market prices attached:
1curl "https://api.steamapihub.com/inventory?appId=730&steamId=76561198000000000&count=2000&apiKey=YOUR_API_KEY"
Your application then only has to respect the limits of your plan. They are per account and per endpoint, with one limit per minute and one per day. For the inventory endpoint:
The day limit is not the minute limit times 1440. The minute limit caps bursts; the day limit is the volume of the plan. Prices for each plan are on the pricing page.
Requests that fail do not count against either limit: a 403 for a private inventory, a 404 or a 429 is not counted.
When you go over a limit, the API answers with HTTP 429 and this body:
1{2"status": "TOO_MANY_REQUESTS",3"error": "You have exceeded the minute limit for this endpoint"4}
The error says day instead of minute when the day limit is reached. The response also carries these headers:
The windows are fixed, not sliding, so RateLimit-Reset is the shortest safe wait. Retry-After is always safe but can be longer than needed.
1async function fetchWithRetry(url, maxRetries = 3) {2for (let attempt = 0; ; attempt++) {3const res = await fetch(url);4if (res.status !== 429) return res;5const body = await res.json();6if (body.error.includes("day limit") || attempt >= maxRetries) {7throw new Error(`429: ${body.error}`);8}9const waitSeconds = Number(10res.headers.get("ratelimit-reset") ?? res.headers.get("retry-after") ?? 60,11);12await new Promise((resolve) => setTimeout(resolve, (waitSeconds + 1) * 1000));13}14}15const params = new URLSearchParams({16appId: "730",17steamId: "76561198000000000",18count: "2000",19apiKey: process.env.STEAMAPIHUB_API_KEY,20});21const res = await fetchWithRetry(`https://api.steamapihub.com/inventory?${params}`);22console.log(res.status, (await res.json()).totalInventoryCount);
Save it as an .mjs file so top-level await works. The extra second avoids retrying a moment before the window resets. A day limit is not retried: the wait can be hours.
1import os2import time3import requests4def get_with_retry(url, params, max_retries=3):5for attempt in range(max_retries + 1):6res = requests.get(url, params=params, timeout=60)7if res.status_code != 429:8return res9error = res.json()["error"]10if "day limit" in error or attempt == max_retries:11raise RuntimeError(f"429: {error}")12wait = res.headers.get("RateLimit-Reset") or res.headers.get("Retry-After") or 6013time.sleep(int(wait) + 1)14res = get_with_retry(15"https://api.steamapihub.com/inventory",16{17"appId": "730",18"steamId": "76561198000000000",19"count": 2000,20"apiKey": os.environ["STEAMAPIHUB_API_KEY"],21},22)23print(res.status_code, res.json().get("totalInventoryCount"))
Better than retrying is not hitting the limit at all: if your plan allows 100 requests per minute, space your requests at least 0.6 seconds apart.
Valve does not publish a number. Treat any figure you read on forums as an observation at one point in time, and build your code to handle 429 whatever the real limit is.
That is not published either. Wait before retrying, and make the wait longer after each further 429.
No. The key is for api.steampowered.com. The inventory URL on steamcommunity.com does not use it.
It does not count against your limits. Plans are billed per started hour while the endpoint is active, not per request.