Find the rate limit that's turning requests away

429 Too Many Requests means a client sent more requests in a set time than the server allows, so the server refused the extra ones, and it may say when to try again in a Retry-After header. On your own site, a rate limit in your app, web server, firewall or CDN fired. That's the limit doing its job when a scraper or a runaway script hits it, and a problem when it catches visitors who share an address, your own monitoring or search engine crawlers.

Who a rate limit catches by mistake

  • Visitors behind one shared address

    Limits are typically counted per IP address. An office, a school, a VPN or a mobile network can put many people behind one address, and together they pass a limit sized for one person.

  • Pages that make many requests

    One page view can set off many requests for images, scripts and API calls. A limit that counts every one of them can trip during ordinary browsing.

  • Search engine crawlers

    A crawler fetching page after page looks like a burst. Google slows its crawling when it gets 429s, and pages that keep returning it for days can drop out of its index.

  • Your own tools

    Uptime monitors, link checkers, load tests and scripts that call your API in a loop all count against the same limits as visitors.

RFC 6585 defines 429 and leaves it to the server how to identify a client and count its requests. MDN notes that limits are typically based on the client's IP address, or on the user when requests are authenticated or carry a cookie.

How Google responds to 429

  • Google reads a 429 as a sign the server is overloaded and groups it with server errors rather than other 4xx codes. When its crawlers get a significant number of 429s, they slow down across the whole hostname, including pages that loaded fine, and speed up again as the errors drop. Google's status code guide and its crawl rate guide describe this.

  • Google suggests a 429, 500 or 503 only for urgent reductions lasting a couple of hours or a day or two. If Googlebot keeps getting these codes on the same URL for several days, the URL may be dropped from the index. A rate limit that catches Googlebot every day is no short reduction, so let verified Googlebot through instead, using Google's verification steps.

See where the limit starts

# Print the status, any Retry-After and the server that answered
curl -sI https://yoursite.com/ | grep -iE '^(HTTP|retry-after|server)'

# Send 50 requests in a row and count the statuses that come back
for i in $(seq 1 50); do curl -sI -o /dev/null -w '%{http_code}\n' https://yoursite.com/; done | sort | uniq -c

How to fix a 429 Too Many Requests error

  1. Find which layer sent the 429Your CDN, firewall, web server and app can each keep a limit, and each logs the clients it refused. Start with the one named in the Server header or shown on the error page, and check who it refused and how often.
  2. Count signed-in traffic per accountFor signed-in visitors, key the limit to the account or session instead of the IP address, so people sharing a network don't use up each other's allowance.
  3. Let verified crawlers throughExempt Googlebot and other search crawlers only after checking each address the way that search engine documents. For Googlebot, that means a reverse DNS name in googlebot.com that resolves back to the same address, or an address in the common crawler ranges Google lists for it. Google's other crawler and fetcher hostnames don't earn the exemption. Any script can claim a crawler's user agent.
  4. Send Retry-After and keep 429s out of cachesTell clients when to come back with Retry-After, in seconds or as a date. Make sure your CDN never stores a 429, which RFC 6585 forbids, or a cached copy can reach visitors who never hit the limit.

Frequently asked questions

What's the difference between 429 and 503?

A 429 refuses one client that sent too many requests while everyone else keeps getting normal answers. A 503 says the server can't handle requests right now, for example during an overload or maintenance. RFC 9110 defines 503, and Google slows its crawling for both.

Does Google respect Retry-After on a 429?

Google's crawl rate guide says you can include Retry-After with a 429 or 503 to tell its crawlers when to retry, as a number of seconds or a date and time. It still advises against serving these codes to its crawlers for more than a day or two.

Why am I getting 429 errors on my own site?

Your requests passed a limit somewhere in front of the site: you reloaded quickly, a tool or script of yours sent many requests, or you share an address with people who did. Wait out the Retry-After time, then compare the limit's threshold with how your site is used day to day.