← Back to all articles

HTTP 429 Too Many Requests: How to Fix Rate Limits

by Unknown Proxies

15 min read

Updated October 17, 2026

HTTP 429 Too Many Requests means the server, API, CDN, or WAF in front of a site counted more requests from your client than it allows in a time window. It is a rate limit, and it is usually temporary. Visitors should stop refreshing and wait. API clients and scrapers should read the Retry-After header, back off, and lower the request rate per IP, session, or API key.

The fix is not always "add more proxies." A clean proxy pool helps when the limit is tied to one IP address, subnet, ASN, or region. If your scraper runs a tight retry loop, ignores Retry-After, or hammers a sensitive endpoint, more IPs only spread the same bad pattern across more addresses.

Flow showing request volume becoming an HTTP 429 Too Many Requests response

Quick answer: how to fix HTTP 429

Start with the row that matches your situation:

Situation Best first step
You are a normal visitor Stop refreshing, wait a few minutes, close duplicate tabs, then try again
You are calling an API Read the rate-limit headers, respect Retry-After, cap concurrency, cache reads
You are running a scraper or monitor Lower requests per proxy, add jitter, keep sessions, back off after each 429
One proxy keeps getting 429 Cool that proxy down and spread legitimate traffic across more clean IPs
Every proxy gets 429 Fix timing, endpoint choice, sessions, and retries before you scale the pool
You own the website Send Retry-After, tune thresholds per endpoint, and check your CDN or WAF rules

Here is the fastest debugging rule. If a slower run succeeds, you have a pacing problem. If the same request fails even at very low volume, look at authentication, endpoint policy, session state, or IP reputation. A request that fails at any speed is an access block, not a rate limit.

What is HTTP 429 Too Many Requests?

HTTP 429 is a 4xx client error defined in RFC 6585, section 4:

The 429 status code indicates that the user has sent too many requests in a given amount of time ("rate limiting").

The RFC says the response should explain the condition and may include a Retry-After header. It also says 429 responses must not be stored by a cache. It does not say how a server counts requests or identifies the user. Each site decides that for itself, which is why limits vary so much.

A typical response looks like this:

HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Retry-After: 30

{"error": "rate_limited", "message": "Too many requests. Try again in 30 seconds."}

Retry-After is defined in RFC 9110, section 10.2.3 and has two forms:

The 429 can come from the origin app, an API gateway, a CDN, a reverse proxy, a WAF, or a bot-management layer. You may see a plain 429 Too Many Requests, a "Rate limit exceeded" or "Too many attempts" page, a JSON error with quota details, or a CDN-branded page. Cloudflare's rate limiting rules show Cloudflare error 1015 with a 429 status.

How long does a 429 error last?

There is no standard duration. Check the response first:

  1. If Retry-After is present, wait that long. It is the server's own answer.
  2. If the API sends RateLimit, RateLimit-Reset, or X-RateLimit-Reset, wait until that reset. Some APIs send seconds until reset and others send a Unix timestamp, so read the API's docs.
  3. If neither is present, back off exponentially. Wait 1 second, then 2, 4, 8, and so on, with random jitter, up to a cap.

Short limits often clear in seconds or minutes. Login and password-reset limits can last an hour or more. Cloudflare is a good example of the range. As of October 2026, its rate limiting rule settings let a site block for 10 seconds, 1, 2, 5, or 10 minutes, 1 hour, or 1 day, or throttle only the requests above the limit with no fixed duration.

Retrying during the window can restart the count on some systems. That is why a script that retries every second can stay blocked far longer than one that waits.

How servers count requests

A rate limiter has two parts. The key decides who is being counted, and the algorithm decides how the count resets. Knowing both tells you whether proxies, slower pacing, or session changes will help.

What the limit is keyed on

The key can be much more than an IP address. Common keys include:

Cloudflare's rate limiting rules show how specific this gets. As of October 2026, a rule can count by IP, by "IP with NAT support" (which uses the _cfuvid cookie to tell users behind one IP apart), header value, cookie value, query value, path, ASN, country, and JA3 or JA4 TLS fingerprint, with options depending on the site's plan. If a rule counts by cookie or fingerprint, rotating IPs while reusing the same cookie jar or client will not reset your count.

How the window resets

Algorithm How it counts What it means for your client
Fixed window N requests per clock window, such as 100 per minute Bursts at the start of each window trip it; spread requests across the window
Sliding window N requests in any rolling period No reset moment to wait for; keep a steady rate
Token bucket Tokens refill at a fixed rate; each request spends one Short bursts are fine until the bucket is empty
Leaky bucket Requests drain at a fixed rate from a queue Anything above the drain rate gets rejected or delayed

You rarely know which one a site uses. A steady, jittered rate below the limit works against all four, which is why pacing beats bursting followed by long sleeps.

Read the rate-limit headers

Many APIs tell you exactly where you stand. Look for:

The last pair comes from the IETF draft "RateLimit header fields for HTTP" (draft-ietf-httpapi-ratelimit-headers-11, May 2026). It is still an Internet-Draft, not an RFC, so support is uneven. The draft's own example reads:

RateLimit-Policy: "fixedwindow";q=100;w=60
RateLimit: "fixedwindow";r=99;t=50

That means a quota of 100 requests per 60-second window, with 99 left for the next 50 seconds. Watching remaining and slowing down before it hits zero is better than reacting to 429s after the fact.

HTTP 429 vs. 403 vs. 503 vs. Cloudflare 1015

These codes all show up during scraping and automation, but they point to different fixes.

Error Meaning Best first diagnosis
HTTP 429 Too many requests from one identity Reduce rate, back off, respect Retry-After, lower concurrency
Cloudflare error 1015 A Cloudflare rate limiting rule fired Fix pacing and per-IP request concentration
HTTP 403 Forbidden Access refused Check auth, permissions, WAF rules, IP reputation, endpoint policy
Cloudflare error 1020 A Cloudflare firewall rule denied access Check location, ASN, request profile, and IP quality
HTTP 503 The server is overloaded or down for everyone Wait and retry later; your request rate is usually not the cause

The 429 vs. 503 split is useful. A 429 is about you. A 503 is about the server. If slowing down does not change a 503, the site has a capacity or maintenance problem.

How to fix HTTP 429 as a website visitor

  1. Stop refreshing and wait a few minutes.
  2. Close duplicate tabs for the same site and turn off auto-refresh extensions.
  3. Clear cookies for that site if the error persists.
  4. Turn off a VPN or free proxy, or switch networks. Shared IPs carry other people's traffic.
  5. Contact the site if you are still blocked after an hour.

Clearing your DNS cache or reinstalling the browser will not help. The server is counting your requests, and only time or a lower rate resets that count.

How to fix HTTP 429 in API clients

Read the headers above, then adjust the client:

A retry helper in Python that handles both forms of Retry-After and falls back to exponential backoff with jitter:

import random
import time
from datetime import datetime, timezone
from email.utils import parsedate_to_datetime

import requests


def retry_after_seconds(resp):
    value = resp.headers.get("Retry-After")
    if not value:
        return None
    if value.strip().isdigit():
        return int(value)
    try:
        when = parsedate_to_datetime(value)
    except (TypeError, ValueError):
        return None
    if when.tzinfo is None:
        when = when.replace(tzinfo=timezone.utc)
    return max(0.0, (when - datetime.now(timezone.utc)).total_seconds())


def get_with_backoff(session, url, max_tries=5):
    delay = 1.0
    for _ in range(max_tries):
        resp = session.get(url, timeout=30)
        if resp.status_code != 429:
            return resp
        wait = retry_after_seconds(resp)
        if wait is None:
            wait = delay + random.uniform(0, delay)
            delay = min(delay * 2, 60)
        time.sleep(wait)
    return resp


session = requests.Session()
resp = get_with_backoff(session, "https://api.example.com/items")

Only retry safe, idempotent requests this way. Do not auto-retry a POST that creates an order or sends a message.

AI agent tools need the same backoff, and most frameworks don't add it for you. Pydantic AI's built-in fetch tool hands a 429 to the model as a retry prompt, and the next attempt comes as soon as the model asks for it, with no wait. Our Pydantic AI web tools guide moves Retry-After handling into the tool's HTTP client. Once the tool retries for itself, record each attempt. In our AI agent observability test, a fetch that got two 429s and then a 200 showed up in the agent's trace as one 4-second tool call.

If the API limit is account-based, proxies will not fix it. You need lower volume, better caching, a higher plan, or a different integration pattern.

How to fix HTTP 429 when scraping

Slow down before you scale out. Most scraper 429s come from concentrated volume and retry storms. A job looks fine with one task, then trips 429 the moment 200 workers hit the same path through a handful of IPs.

Find the identity that is over the limit

Log every 429 with the proxy, URL, endpoint type, session, user agent, and task. Then group by each field. The patterns usually jump out:

Other usual suspects are fixed intervals without jitter, all workers starting at the same second, no shared queue across workers, and a new session for every request.

Pace each proxy, not just the job

A global "10 requests per second" setting tells you nothing about what each IP sends. Track the next allowed send time per proxy, add jitter, and put a proxy on cooldown when it gets a 429. This version reuses retry_after_seconds() from the API section:

import random
import time
from collections import defaultdict

import requests

PROXIES = [
    "http://user:pass@proxy1.example.com:8000",
    "http://user:pass@proxy2.example.com:8000",
]
MIN_INTERVAL = 5.0   # seconds between requests on the same proxy
JITTER = 2.0         # extra random delay, 0 to JITTER seconds
DEFAULT_COOLDOWN = 60

next_ok = defaultdict(float)  # proxy -> earliest time it may send again
sessions = {}
for proxy in PROXIES:
    s = requests.Session()
    s.proxies = {"http": proxy, "https": proxy}
    sessions[proxy] = s


def pick_proxy():
    proxy = min(PROXIES, key=lambda p: next_ok[p])
    wait = next_ok[proxy] - time.monotonic()
    if wait > 0:
        time.sleep(wait)
    return proxy


def fetch(url):
    proxy = pick_proxy()
    resp = sessions[proxy].get(url, timeout=30)
    now = time.monotonic()
    if resp.status_code == 429:
        cooldown = retry_after_seconds(resp) or DEFAULT_COOLDOWN
        next_ok[proxy] = now + cooldown
    else:
        next_ok[proxy] = now + MIN_INTERVAL + random.uniform(0, JITTER)
    return proxy, resp

Each proxy keeps its own Session, so cookies stay with the IP that earned them. The loop is single-threaded. If you run many workers, put next_ok behind a lock or a shared store such as Redis so every worker sees the same cooldowns. For more rotation patterns, see rotating proxies with Python Requests.

Keep sessions and headers consistent

If the limit is keyed on a cookie or fingerprint, rotation alone will not help. Inside one session, keep the same IP, cookies, user agent, and header order. Do not create a new session for every request. It breaks cart and login flows and makes each request look like a brand new visitor. Our guide on web scraping headers covers realistic header sets.

Split high-risk endpoints, such as search, login, and cart, into their own slower queue. Respect site terms, robots guidance, and applicable law. The broader checklist is in how to crawl a website without getting blocked.

429s on retail and ticketing monitors

Product and ticket monitors hit the same few URLs over and over, often from many tasks at once. That is the exact shape rate limiters are built to catch. Three habits help most:

  1. Separate monitor traffic from checkout traffic. A monitor that burns through its limit should never share an IP or session with the task that is about to check out.
  2. Keep checkout on a stable IP. Carts and login sessions are often tied to cookies that expect the same address, so sticky sessions or a dedicated ISP proxy fit better than per-request rotation.
  3. Stagger task starts. Hundreds of tasks firing at the exact drop time look like one burst, even when each task is slow.

Use the delay calculator to check whether your delay is realistic for the size of your proxy list. If the delay is too low for the number of proxies, 429s are expected. Our sneaker proxies guide covers how retail tasks split across ISP and residential IPs.

How many proxies do you need to stop 429s?

The real question is how many requests each IP makes per minute. Work it out:

  1. Count the URLs, SKUs, or events you monitor.
  2. Pick how often each one must be checked.
  3. Find the per-IP rate the target tolerates by testing slowly and raising it until 429s appear.
  4. Divide total requests per minute by the tolerated per-IP rate.
  5. Add 20 to 30 percent headroom for retries, redirects, and cooldowns.

For example, 400 product URLs checked once a minute is 400 requests per minute. If your testing shows the site stays clean at one request every 10 seconds per IP, that is 6 per minute per IP, so you need about 67 IPs, or roughly 80 to 90 with headroom. If you only have 20, either slow the checks or expect 429s.

If you use bandwidth-priced residential proxies, also count page weight. Full browser sessions use far more data than lightweight API calls. The proxy data usage calculator turns page weight and request volume into a GB estimate.

When proxies help, and which type to use

Proxies help when the limit is keyed on IP, subnet, or ASN, and your legitimate traffic is too concentrated on one network. They do not help when the limit is keyed on an account, API key, or cookie you reuse across every IP.

Proxy type Best for Why it helps with 429
ISP proxies Retail and ticket monitoring, checkout, account sessions Stable dedicated IPs, low latency, sessions that stay on one address
Residential proxies Rotating scraping, geo checks, broad crawls Spreads requests across many consumer IPs and regions
Datacenter proxies Permissive sites, cheap high-volume requests Fast, but whole ranges are easier to rate limit by ASN

Pacing still matters on any proxy type. Better IPs make it easier to distribute legitimate traffic. They do not make unlimited request rates safe. See how purchased data works on the residential proxies page.

How site owners should return 429

If your own users or partners hit 429s, check which layer sends them first. It can be the app, the API gateway, the CDN, or a WAF rule. Then fix the policy:

Search engines read 429 differently from other 4xx codes. Google's crawlers treat 429 as a sign the server is overloaded and slow down, while Google says other 4xx codes can get content removed from Search. Returning 429 to Googlebot for a long time can still hurt indexing, so use it as a short-term brake.

FAQ

Is HTTP 429 a client error or a server error?

It is a 4xx client error. The server is working and is telling your client to send fewer requests. The fix is on the client side, unless you own the site and the limit is set too low.

Is HTTP 429 the same as Cloudflare error 1015?

They are related. HTTP 429 is the standard rate-limit status code. Cloudflare error 1015 is the page Cloudflare shows when one of its rate limiting rules fires, and it is normally sent with a 429 status.

Can repeated 429 errors get my IP banned?

Yes, on many sites. Some rate limiters move from throttling the extra requests to a timed block of all your traffic after repeated violations. Ignoring Retry-After and retrying in a loop is the fastest way to turn a 30-second limit into a long ban.

Why do I get 429 even with proxies?

Your per-proxy rate may still be too high, or the site may count something you share across proxies, such as a cookie, API key, account, or TLS fingerprint. Log 429s by proxy and endpoint to see which one it is.

Should I rotate proxies after a 429?

Cool the proxy down first. Rotating to a fresh IP and repeating the same request pattern trips the limit again and wastes clean IPs. Rotate only after you have lowered the per-IP rate.

Does a 429 error hurt SEO?

Not if it is short. Googlebot treats 429 as a signal to crawl more slowly and speeds back up once pages return 200. Google warns that returning errors for too long can hurt indexing, so fix the threshold or allow verified crawlers.

Final thoughts

Treat a 429 as a pacing signal. Read Retry-After, back off with jitter, and measure requests per minute per proxy, not per job. Log 429s by proxy and endpoint before you buy more IPs, because a shared cookie or a hot endpoint will block every proxy you add. When the math shows you need more IPs, use the delay calculator to size the list, then pick ISP proxies for stable checkout sessions or residential proxies for broad rotation.

Technical references: MDN HTTP 429 Too Many Requests, RFC 6585 section 4, RFC 9110 Retry-After, and Cloudflare rate limiting parameters.

Need clean IPs for this setup?

Static ISP proxies for steady sessions and rotating residential pools when you need fresh exits, backed by a live site list and support on Discord.

View pricing