How to Fix 429 Too Many Requests When Using a Proxy

· Updated:

A 429 Too Many Requests error through a proxy means the server you reached, usually the website, has decided you sent too many requests in a period of time and wants you to slow down. The proxy connected fine; the site is rate limiting the proxy's IP, your account or your API key. The fix is to honor Retry-After, back off, and pace requests, not to keep hammering from a different address.

Single-tenant IPs, priced per IP

What a 429 too many requests proxy error means

Status 429 is defined in RFC 6585: the client sent too many requests in a given amount of time. Unlike a timeout or a refused connection, it proves the request reached a server and was read. That server chose to throttle you.

Without a proxy, a site counts requests against your own IP. Through a proxy, it sees the proxy's IP, so every thread, script and browser tab using that proxy adds to the same counter. Sites can also count by login, cookie or API key, and which one applies decides what you should change.

Rate limit per IP

Many servers, CDNs and firewalls apply a rate limit per IP. Common designs are fixed windows (a count per minute), sliding windows, and token buckets that allow a short burst and then refill slowly. The site rarely publishes its numbers.

Restarting your script does not reset the counter, because the counter lives on the server and is tied to the IP. Requests that keep arriving while you are limited can extend the block on some sites.

Session, user token, and account-level throttling

Many platforms apply quotas to a logged-in session, user ID or API key rather than to the IP. API documentation often lists these quotas and the headers that report them.

When the limit is on the account or key, a different IP changes nothing: every request with that token counts against the same quota. Reduce concurrency for that account, spread work over time, or ask the provider for a higher quota.

Did the website or the proxy send the 429?

Before changing code, confirm who sent the response. Websites and APIs send most 429s, but a proxy or a corporate gateway can also return 429 or a similar error when one client opens too many connections.

Look at the headers and body. A site's 429 usually comes with its own error page or JSON body, and sometimes Retry-After or rate-limit headers such as X-RateLimit-Remaining (names vary, and some sites send none). A response from a proxy or gateway usually has a short body that names the proxy software or the connection limit.

CheckWebsite or API 429Proxy or gateway 429
BodyThe site's error page or JSON errorShort text or a page from the proxy software
HeadersOften Retry-After and rate-limit headersVaries; often none of the site's headers
Same request from another network at a low rateUsually succeeds until you speed upUsually succeeds
What to doBack off, honor Retry-After, pace requestsLower concurrency through the proxy, or ask the provider

Honor Retry-After with exponential backoff

Retry-After is defined in RFC 9110 (it was in RFC 7231 before). Its value is either a number of seconds, such as Retry-After: 120, or an HTTP date after which you may retry. When a server sends it, wait at least that long.

When it is missing, do not retry immediately. Retrying at once from many workers keeps the counter high and can turn a short limit into a long one. Use exponential backoff with jitter: double the wait after each 429 and add a random amount so workers do not retry in lockstep.

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

import requests


def retry_after_seconds(value):
    """Return the wait in seconds from a Retry-After header, or None."""
    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 is None:
        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, proxies, max_retries=5, max_wait=600):
    delay = 1.0
    for attempt in range(max_retries + 1):
        response = session.get(url, proxies=proxies, timeout=15)
        if response.status_code != 429 or attempt == max_retries:
            return response
        wait = retry_after_seconds(response.headers.get("Retry-After"))
        if wait is None:
            wait = delay + random.uniform(0, delay)
            delay *= 2
        time.sleep(min(wait, max_wait))


proxy_url = "http://USER:PASS@IP:PORT"
proxies = {"http": proxy_url, "https": proxy_url}
with requests.Session() as session:
    r = get_with_backoff(session, "https://example.com/api", proxies)
    print(r.status_code)

The function handles both Retry-After formats, falls back to jittered exponential backoff, caps any single wait, and returns the last response if the server still says 429 after the final retry, so your code can log it and stop. It retries through the same proxy on purpose: the goal is to wait, not to find an address the site is not counting yet. The Python requests proxy guide covers sessions and SOCKS5.

Spreading requests across proxies: what it does and does not fix

Several proxies are useful for running separate jobs, clients or accounts side by side, each with its own IP. They are not a way around a site's limit. A rate limit applies to you as a client, and many sites' terms say so explicitly; spreading the same crawl over more IPs to exceed it is rate-limit evasion.

Pace requests per site, not per proxy

Keep one limiter per target host that every worker shares, whatever proxy each worker uses. A token bucket works well: workers take a token before each request, tokens refill at the rate you decided on, and a 429 from any worker slows the whole host down instead of only one IP.

Pick the rate from the site's published limits, API quotas or robots.txt crawl-delay where they exist, and start below it. Cache pages you already fetched, and skip work that has not changed since the last run.

Where separate IPs do help

On a shared or public proxy, other users' traffic counts against the same IP, so you can hit a 429 before sending much yourself. A single-tenant IP means the counter reflects only your own requests.

Separate IPs also keep unrelated workloads apart, such as different clients, teams or sites, so one job's mistakes do not affect another. For logins and carts, bind each session to one static IP for its whole lifetime; changing IP mid-session often breaks the session or triggers re-verification.

When single-tenant private proxies fit

For web scraping and data collection that already respects each site's limits, the main benefit of a private IP is predictability: nobody else's traffic shares your counter. Every ProxyV4 proxy has one tenant for the whole term. Private datacenter IPv4 is available in the United States, Vietnam, Japan, South Korea, Singapore, the United Kingdom and Hong Kong, and static ISP in 23 countries. Each supports HTTP(S) with username and password (SOCKS5 outside Vietnam), delivered as ip:port:user:pass, and traffic on IPv4 and static ISP is never metered or billed.

It is the wrong fit if you are counting on a large pool of fresh IPs to push past a site's limit, if you need per-request rotation (rotating proxies are waitlist-only), or if the target accepts only mobile IPs. IPv6 proxies are a separate product that only works on IPv6-ready sites. Buy a single IP, check it with the proxy checker, run your paced job against it, then scale. See live prices.

Still getting 429 after backing off?

If 429s continue at a modest pace, look at how requests leave your code:

  • Bursts. Many workers starting at the same moment can trip a burst limit even when the average rate is low. Add jitter to start times and use the shared token bucket.
  • Hidden retries. Retry adapters, browser reloads and parallel test runs can multiply your real request count. Log every request you send, including retries.
  • Account or key quotas. If the API reports a quota on your key, a different IP will not help; spread work over time or request a higher quota.
  • Wrong endpoint. Heavy pages and search endpoints often have stricter limits than static pages. Use the site's API or bulk export if it offers one.
  • Ask the site. If you need more than the published limits allow, contact the site owner or API provider; many offer higher tiers or allow-listing for known partners.

Frequently asked questions

Does a proxy fix 429 Too Many Requests errors?

No. A proxy changes the IP the site counts against, but the limit applies to how fast you send requests. Back off, honor Retry-After and pace requests; a new IP is not a way around the limit.

How should my script parse the Retry-After header?

If the value is a whole number, wait that many seconds. If it is an HTTP date, wait until that time, using email.utils.parsedate_to_datetime in Python to parse it.

Can I use automatic IP rotation with ProxyV4 proxies to fix 429 errors?

No. ProxyV4 sells static private IPv4 and static ISP proxies that keep the same IP while active and on renewal. Rotating proxies are waitlist-only. Use several static IPs for separate jobs or clients, not to exceed a site's limit.

What should I do if a single private proxy IP gets rate limited?

Stop sending to that site, wait for the time in Retry-After or back off exponentially, then resume at a lower rate. Slow the whole job for that host, not just the one IP.

Does ProxyV4 charge extra bandwidth fees when retrying rate-limited requests?

No. Traffic on private datacenter IPv4 and static ISP proxies is never metered or billed, so retries do not change the price. Price is per IP per month.

Single-tenant IPs, priced per IP

ProxyV4 private IPv4 and static ISP proxies have one tenant per IP, support HTTP(S) and SOCKS5, and traffic is never metered. Buy one IP, test your paced job, then scale.

Get a working proxy

Related articles

Proxy setup
Python requests through an authenticated proxy, step by step
Send Python requests through an authenticated HTTP(S) proxy: build the proxies dict, attach it to a Session, encode odd passwords, rotate a list, check the IP.
Use cases
Designing a scraper around a pool of dedicated IPs
A planning guide for data teams: size a pool of private static IPs, rotate them in your own code, pick IPv4, ISP or IPv6, and collect data responsibly.
Free tools
Check proxies in bulk: status, exit IP and latency
Free online proxy checker: paste up to 100 ip:port:user:pass lines and see which proxies work, their exit IP and latency, plus what each failure result means.
Proxy errors
Proxy errors explained, with fixes
Proxy error pages each take one message, explain what it means, list the usual causes and walk through the fix in Windows, Chrome, antidetect browsers, phones and code. Every output shown was reproduced with real test proxies. If your error is not listed, check the message against the proxy checker first: it shows whether the proxy itself answers, so you know whether to look at the proxy or at your own setup.
Knowledge base
How to Diagnose and Fix Connection Reset by Peer with a Proxy
Fix connection reset by peer (ECONNRESET, errno 104) through a proxy: find which hop sent the reset with curl, then fix keep-alive, mode and retry issues.
Knowledge base
When a Proxy Works in curl but Not in the Browser
Proxy works in curl but not browser? Compare how each tool gets its proxy, login and protocol: env vars, Chrome flags, SOCKS5 login, extensions and PAC files.
Knowledge base
Why Your Proxy Is Slow and How to Speed It Up
Why is my proxy slow? Time each leg of the request with curl, then fix the usual causes: a far location, new connections per request, DNS and site throttling.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.
Products
Static ISP proxies: residential IPs on consumer networks
Static ISP proxies in 23 countries, from Germany and the UK to the US, Brazil and Japan: fixed IPs on consumer networks, one customer each, unmetered traffic.
Pricing
Proxy prices per IP, by location and volume
Live per-IP rates for private IPv4 in 7 countries and static ISP proxies in 23 countries across Europe, the Americas and Asia-Pacific, with volume discounts.