429 Too Many Requests: slow down, or a bot wall in disguise
What you see
429 Too Many RequestsHTTP Error 429: Too Many Requests429 Client Error: Too Many Requests for urlRequest failed with status code 429
More error strings (1)
HTTP/1.1 429 Too Many Requests
What it means
429 Too Many Requests usually means you sent too many requests in too short a time.
The server is asking you to ease off. That is a rate limit (a cap on requests per minute or hour).
Wait, then come back slower. But if it shows up on your first request, speed is not the problem.
What we measured: 429 on the first try, from bot shields
We asked 100 well-known sites for one page each from a datacenter IP (probe run 2353, 25 Nov 2026, 23:53 UTC). It was pass 3 in 13 minutes, so each site had seen at most 3 requests from us. 5 still answered 429:
| site | what the 429 page was |
|---|---|
| Expedia, Hotels.com | a bot check titled “Bot or Not?” that loads Arkose Labs |
| Hyatt, Realtor.com | Kasada’s bot shield |
| Google Search | Google’s /sorry page |
A limit that fires after 3 requests in 13 minutes would lock out normal visitors too. That was our read: these were bot walls that used the 429 code.
What changed things (26 Nov 2026):
- A residential IP (from runs
0129-oxy-resi,0129-bd-resi) opened Hotels.com. So did Expedia on the second provider. - Hyatt and Realtor.com still sent 429 to both residential IPs, and a real browser on a residential IP got past Hyatt 1 time in 3 with patchright and 1 in 3 with camoufox.
Which tool types help: if it’s a real rate limit, more IPs (residential proxies, rotated; prices below). For a bot wall, the 403 fixes apply: a better IP, then a real browser (browser automation), or a scraper API that does both. We have not measured scraper APIs on these sites yet.
| Vendor, plan it picks | Total a month | $/GB | Total a year | Free trial · note · source |
|---|---|---|---|---|
| HProxy Residential ProxiesLite: 10 GB | $4.70 | $0.47 | $56.40 | hproxy.com · 29 Nov 2026 |
| CakeIP10GB | $6.00 | $0.60 | $72 | promo pricecakeip.com · 29 Nov 2026 |
| Geonode Residential Proxies10 GB Plan | $7.92 | $0.79 | $95.04 | free trial: $5 = 10 GB for 3 daysgeonode.com · 29 Nov 2026 |
| ProxyBase Residential ProxiesPay as you go | $8.50 | $0.85 | $102 | proxybase.org · 29 Nov 2026 |
List prices from each vendor’s pricing page, US dollars before tax, live from our price data. Your own size, in the price calculator: Residential proxies.
Why it happens
A rate limit keeps count of your requests and says no once you pass the cap. Each site picks what it counts and how much it allows.
- Too fast from one IP address. Most limits track requests per IP, so one machine hammering a site hits the cap first.
- Too many at once. Parallel requests add up fast. GitHub’s API, for example, allows no more than 100 at the same time.
- The limit follows your account, API key or cookie. Then a new IP changes nothing, since the same session carries that count along with it.
- You’re not logged in. Logged-out visitors often get a smaller allowance. GitHub allows 60 requests per hour without a login and 5,000 per hour for a signed-in user.
- Your retry loop. Retrying at once, again and again, will keep you over the cap. Cloudflare warns this can make the block last longer.
Not every site says it with 429. LinkedIn sends its own 999 Request denied when your network asks for too much.
The spec that defines 429 leaves the counting up to the site. A site can count per page, across the whole site, or across a group of servers. It can tell you apart by IP, by login or by a cookie. So two sites with the same error can have very different rules.
Limits also run at 2 speeds. A site might allow 500 requests per hour but only 10 per second. 20 workers firing at once trip the per-second cap, even though your hourly total looks fine. That is why the number of parallel calls matters as much as the total.
Ignoring it seldom ends well. Some sites move on from 429 to CAPTCHAs, temporary IP bans or stricter fingerprint checks (tests of what your browser looks like) when the same client keeps retrying hard.
Fix it
- Stop and read the
Retry-Afterheader. It tells you how long to wait, either as a number of seconds or as a date. Sit out that long, then send one request. - 429 on your first request? Read the body. A bot check page (“Bot or Not?”, a Kasada or Google
/sorrypage) means a bot shield and not your speed. Slowing down will not help. Change your IP or your client instead. - No header? Back off. Wait 1 full second, then 2, then 4, and give up after a few tries. Think of a bouncer saying “not now”: knocking every second won’t get you in sooner.
- Slow your crawl down. Send fewer requests in parallel and put a small delay between them. In Scrapy, turn on AutoThrottle (it is off by default).
- Log in or use an API key if the site gives signed-in users a higher limit. Then keep an eye on the limit headers (see Dev details) to pace yourself.
- Spread requests over more IPs, but only if the limit is per IP. Rotating proxies give each request or short session a different IP. Size the pool to your speed: at 10 requests per minute per IP, 1,000 requests per minute takes at least 100 IPs.
- Still getting 429 at a slow pace with fresh IPs? The limit is probably tied to your cookie or account. Start a new session or even ask the site owner for a higher limit.
Getting 502 or 504 instead? A server in the middle failed, not a limit: see 502 Bad Gateway and 504 Gateway Timeout.
Why Retry-After first: it is the server telling you how long to wait. Guess shorter than the header says, and you waste a try.
Why the waits double: a few tries then cover seconds to minutes without hammering the site. GitHub gives the same advice for its own limits: wait longer each time, and throw an error after a set number of retries. That cap matters. Retry forever and you stay over the limit.
To find out what the site counts, change one variable at a time:
- Slow down on the same IP. If the 429s stop, the cause was speed.
- Keep your cookies, switch IP, and still blocked? The limit follows your session.
- Drop your cookies but keep the IP. Still blocked? It follows the IP.
If 429 shows up together with CAPTCHAs or JavaScript challenges, more IPs alone may not do it. That is a bot defense, not just a counter.
Paste this into your AI
My scraper gets "429 Too Many Requests" from a website.
Explain in plain words what a 429 means, then list the likely causes in order, most likely first.
For each cause, give one way to test it and one fix.
Then show me retry code for my setup that waits for the Retry-After header (seconds or a date)
and backs off exponentially when there is no header.
My setup: <language + library>, <the URL pattern>, <requests per minute and how many in parallel>,
<one IP or a proxy pool>, <logged in or not>, <the response headers I get back with the 429>.Dev details
The status line. It comes from RFC 6585 (the document that defines 429):
HTTP/1.1 429 Too Many Requests
Content-Type: text/html
Retry-After: 3600
Retry-After (RFC 9110) comes in 2 forms, and your client must handle both:
Retry-After: 120
Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
What the error says in common libraries:
requests (raise_for_status): 429 Client Error: Too Many Requests for url: https://…
Python urllib: HTTP Error 429: Too Many Requests
axios: Request failed with status code 429
Python (requests + urllib3 Retry)
Retry respects Retry-After by default on 413, 429 and 503. With backoff_factor=1 it sleeps 0s, 2s, 4s, 8s… between tries, capped at 120 seconds (backoff_max). A Retry-After longer than 21,600 seconds is cut to that (retry_after_max). POST is not retried out of the box.
import requests
from requests.adapters import HTTPAdapter
from urllib3.util import Retry
retry = Retry(
total=5,
status_forcelist=[429, 503],
backoff_factor=1,
respect_retry_after_header=True,
)
session = requests.Session()
session.mount("https://", HTTPAdapter(max_retries=retry))
session.mount("http://", HTTPAdapter(max_retries=retry))
resp = session.get("https://example.com/page")
JavaScript (fetch)
There is no built-in retry, so you parse the header yourself:
async function getWithRetry(url, tries = 5) {
for (let i = 0; i < tries; i++) {
const res = await fetch(url);
if (res.status !== 429 && res.status !== 503) return res;
const ra = res.headers.get("retry-after");
let waitMs = 2 ** i * 1000; // no header: 1s, 2s, 4s…
if (ra) {
const secs = Number(ra);
waitMs = Number.isNaN(secs) ? Date.parse(ra) - Date.now() : secs * 1000;
}
if (!Number.isFinite(waitMs)) waitMs = 2 ** i * 1000;
await new Promise((r) => setTimeout(r, Math.max(waitMs, 0)));
}
throw new Error(`Still rate limited after ${tries} tries: ${url}`);
}
Scrapy
RETRY_HTTP_CODES already includes 429 (default [408, 429, 500, 502, 503, 504, 522, 524]). AutoThrottle never lets a non-200 response lower the delay. If you use the HTTP cache, add the same codes to HTTPCACHE_IGNORE_HTTP_CODES, or a retried 429 can get cached and served again.
In settings.py:
AUTOTHROTTLE_ENABLED = True
CONCURRENT_REQUESTS_PER_DOMAIN = 2
DOWNLOAD_DELAY = 1
HTTPCACHE_IGNORE_HTTP_CODES = [408, 429, 500, 502, 503, 504, 522, 524]
Limit headers
Many APIs tell you where you stand on every response. Here is GitHub’s:
x-ratelimit-limit: 5000
x-ratelimit-remaining: 0
x-ratelimit-reset: <UTC epoch seconds>
At x-ratelimit-remaining: 0, wait until x-ratelimit-reset. A hit limit can come back as 403 from GitHub, not 429. For its secondary limits it says: honor retry-after, else wait at least one minute, then back off exponentially. It also warns that hammering on while limited can get your app banned.
Edge cases
- Not always 429. The spec does not require it, and a server may just drop the connection. Cloudflare lets a site owner return any code from 400 to 499 for a rate limit (429 is the default).
- Cloudflare’s page shows
Error 1015: You are being rate limited. That rule comes from the site owner, not from Cloudflare. - Never cached. Caches must never store a 429 response.
- Scope varies. A limit can be per page or across a single site, or shared across many servers. It can count by IP, login or cookie.
Two things about urllib3 matter here. First, status_forcelist is off by default. Without it, urllib3 only retries a 429 that carries Retry-After. Listing 429 there covers the rest.
Second, urllib3 only retries idempotent methods: ones where sending the same request twice leaves the same result. POST is not one of them, because a repeat could submit a form twice. The backoff math is backoff_factor * 2 ** previous_retries, and the first retry goes out right away.
The 429 body is worth reading as well. The spec says the body should explain the condition. Its own example reads: “I only allow 50 requests per hour to this Web site per logged in user.”
A standard for limit headers is on the way. The IETF draft RateLimit-Policy and RateLimit fields (draft 11, 23 May 2026, not an RFC yet):
RateLimit-Policy: "permin";q=50;w=60
RateLimit: "default";r=50;t=30
The first means a quota of 50 per 60-second period. The second line means 50 units left, in a 30-second window.
scrapenews difficulty
Not scored. We have 2 of 8 factors; a score needs 3.
| Factor | What we found | Source |
|---|---|---|
| Smallest client that gets through | a plain HTTP client | scrapingbee.com |
| Checks stacked | IP reputation | scrapingbee.com |
Our analysis of 2 sourced facts; measured runs replace them as they come. How we rate difficulty
Related
Tools that get past it
| Tool | Price |
|---|---|
| $4.00/GB |
Sources
RFC 6585 §4: 429 Too Many Requests rfc-editor.org
RFC 9110 §10.2.3: Retry-After rfc-editor.org
MDN: 429 Too Many Requests developer.mozilla.org
GitHub Docs: Rate limits for the REST API docs.github.com
Cloudflare Docs: Error 1015 developers.cloudflare.com
Cloudflare Docs: Rate limiting parameters developers.cloudflare.com
urllib3 docs: Retry urllib3.readthedocs.io
Scrapy docs: RETRY_HTTP_CODES docs.scrapy.org
Scrapy docs: AutoThrottle docs.scrapy.org
Decodo: 429 Too Many Requests error decodo.com
requests source: raise_for_status message github.com
CPython source: urllib HTTPError message github.com
axios source: status error message github.com
IETF draft: RateLimit header fields for HTTP datatracker.ietf.org