429 Too Many Requests Error

The site decided there were too many requests and temporarily stopped answering this address.

Updated · Prokso editorial team

Key takeaways
  • Code 429 comes from the site, not the proxy: it is a temporary rate limit
  • Usually too many requests come from one address, especially from a sticky IP
  • Lower the rate, add uneven pauses between requests and respect Retry-After

What the error means

The 429 code is sent by the site, not by the proxy. It is a rate limit: the server counts requests from one address, account or key and starts refusing after a threshold.

The response often has a Retry-After header - the number of seconds after which you can retry. The limit is usually temporary and lifts on its own if you reduce the load.

Who returns the error: 407 comes from the proxy, 401 and 403 from the website itselfYour appProxygw.prokso.comWebsite407 - the proxy answers: username, password or traffic left401 / 403 - the website answers: site login or access
Who returns the error: 407 comes from the proxy, 401 and 403 from the website itself

Causes

  • Too many requests from one address. A sticky IP or a long session quickly hits the site's limit.
  • The limit is tied to an account or a key. Then changing the address will not help: the counter runs per account.
  • Requests go without pauses. A steady stream with equal intervals looks automated.
  • Parallel threads hit one page. Dozens of simultaneous connections to one URL of the site trigger the limit fastest.

How to fix it

  1. Lower the rate: add pauses between requests and make them uneven.
  2. Respect Retry-After: do not retry the request before the stated time.
  3. Turn on rotation: port 823 (HTTP) or 824 (SOCKS5) gives a new address for every request. See the rotating proxies page for details.
  4. Reduce the number of parallel threads to one site.
  5. If the limit is per account, spread the work over time: changing the address does not lift such a limit.
  6. Save the data you have already received so that you do not request the same thing again.

How to check that it works

Send one request after a pause of a few minutes. If it goes through but 429 comes back at the previous pace, you have found the site's threshold; keep your pace below it.

Two-minute diagnosis

First paste the line into the proxy checker. If the proxy works there, the cause is in your app or its settings. If not, test the line from a terminal:

curl -v -x "http://USERNAME:PASSWORD@gw.prokso.com:823" https://api.ipify.org
  • A < HTTP/1.1 407 line right after CONNECT means the proxy answered. The name after the code, for example NO_USER, points to the cause.
  • The proxy answered CONNECT with 200 and then another code arrived - the proxy works, and that answer came from the website.
  • No answer at all, only a timeout - the connection never reached the proxy: check the host, port and network.

Setup guides where this error comes up

Proxy not working? Check it in 6 steps

FAQ

Does 429 come from the proxy or from the site?

From the site. When the number of connections is exceeded, the proxy answers differently - 407 THREADS_EXHAUSTED.

How many requests per minute can I make?

Every site has its own threshold, and it is not published anywhere. Start at a low pace and raise it while the responses stay stable.

Do 429 responses use traffic?

Yes, but very little: such a response weighs a few hundred bytes.

Why do I get 429 even with a new IP per request?

A site can count requests by account, API key or cookies rather than by address - then changing the IP does not reset the limit. The second cause is too many parallel threads to one site. Reduce the number of simultaneous requests and add pauses. How rotation works is explained on the rotating proxies page.

What does the Retry-After header mean?

Under the HTTP standard (RFC 9110) it holds either a number of seconds or a date and time after which the request can be repeated. Do not retry earlier. If there is no such header, increase the pause between attempts gradually, for example doubling it after each 429.

How do I add pauses between requests in Scrapy?

Scrapy has the settings DOWNLOAD_DELAY (the pause between requests to one domain, in seconds) and CONCURRENT_REQUESTS_PER_DOMAIN (how many requests to a domain run at once). The AutoThrottle extension, turned on with AUTOTHROTTLE_ENABLED = True, adjusts the pause to how fast the site responds. Code 429 is in the default RETRY_HTTP_CODES list, so Scrapy retries such requests on its own. Proxy setup is in the Scrapy guide.

Residential $1.59, mobile $2.50, datacenter $0.65 per GB

Sign up in a minute, get access right after payment.

Create account

Install the Prokso app