Retry-After, Crawl-delay and Other Politeness Signals

Cover for “Retry-After, Crawl-delay and Other Politeness Signals”: table of politeness signals and a chart of a per-domain rate backing off after 429 responses

5 min read

A site can tell a collector to slow down in several ways: a header on a response, a line in robots.txt, a number in its API documentation. Some of these are standards with precise semantics. Some are conventions that one crawler honors and another ignores. Knowing which is which is the difference between a rate policy and a guess.

Key takeaways

  • Retry-After is standardized in RFC 9110: a number of seconds or an HTTP date. Treat it as a minimum wait.
  • Crawl-delay is not part of RFC 9309. Google says it does not support it; Bing has documented that it does.
  • The RateLimit and RateLimit-Policy headers are still an IETF draft as of May 2026.
  • No signal, honored or not, amounts to permission. Politeness governs how you collect, not whether you may.
  • A good default: honor every signal you find, standard or not, and back off faster than you speed up.

The signals, and where each one comes from

Where politeness signals live, and who defines them

Eight signals a collector may meet, by location and by source of authority

HTTP responserobots.txtDocs or termsDefined byRetry-After headerRFC 9110429 Too Many RequestsRFC 6585503 Service UnavailableRFC 9110Allow / DisallowRFC 9309Cache-Control on robots.txtRFC 9309RateLimit, RateLimit-PolicyIETF draftCrawl-delayConventionPublished API rate limitsSite terms
Sources: RFC 9110, RFC 6585, RFC 9309, draft-ietf-httpapi-ratelimit-headers-11 (May 2026). Graphic: JsonEngine.

Retry-After

RFC 9110, section 10.2.3 defines Retry-After as either an HTTP date or a non-negative number of seconds. It appears with 503 responses and redirects, and RFC 6585 allows it on 429. It is the most precise politeness signal there is: the server names the wait. Two details trip up implementations. Dates are in GMT and must be compared against a synchronized clock, and a malformed value should fall back to your own backoff rather than to an immediate retry.

429 and 503

A 429 is about you: the client sent too many requests in a given time. A 503 is about the server: it is temporarily unable to handle requests. Both mean “wait”, but a 429 also means “lower your rate for this domain”, because the problem will return as soon as you resume at the old pace.

Crawl-delay

Crawl-delay is a robots.txt line that many sites use and no standard defines. RFC 9309 (September 2022) specifies user-agent groups, Allow and Disallow, and leaves other records to individual crawlers. Google’s robots.txt documentation lists the fields it supports, and crawl-delay is explicitly not one of them. Bing’s webmaster blog said in May 2012 that BingBot honors it, and described it as a time window of 1 to 30 seconds in which BingBot crawls the site only once.

So the same line means a fixed pause to one search engine and nothing to another. For a data collector the decision is easier: if a site took the trouble to publish a delay, honor it.

RateLimit and RateLimit-Policy

The IETF HTTPAPI working group’s RateLimit header fields draft (version 11, May 2026) defines RateLimit-Policy, which advertises a quota and window, and RateLimit, which reports the quota remaining. It is still a draft, and you will see older vendor variants such as X-RateLimit-Remaining in the wild. Where these headers appear, they are useful: they tell you how close you are to a limit before you hit it.

Published limits

APIs and open data services often publish limits in their documentation. Open Food Facts, for example, documents 15 requests per minute per IP for product reads and 10 for searches, asks for a custom User-Agent with contact details, and points bulk users to its data exports. A documented limit is the clearest signal of all, because it comes with the reason and the alternative.

What the signals do not mean

RFC 9309 states plainly that robots.txt rules “are not a form of access authorization”. The same goes for every signal in this article. Honoring Crawl-delay does not make collection from a site permitted, and a missing Retry-After does not mean you may retry immediately. Politeness signals govern the pace of access you otherwise have reason to make. Whether to collect at all is a separate question about terms, data type and purpose.

Turning signals into a rate policy

A per-domain rate policy combines the signals with your own defaults. The shape that works for us is additive increase, multiplicative decrease, the same idea TCP uses for congestion control: speed up a little while things are healthy, cut back hard at the first sign of trouble.

Slow down fast, speed up slowly

A simulated per-domain rate under an additive-increase, multiplicative-decrease policy

051015202530req/min05101520253035429, Retry-After: 120429, Retry-After: 60Minutes
Illustrative simulation of JsonEngine’s policy shape, not measured traffic: +1 request per minute while responses are healthy, halve the rate after a 429, pause for the full Retry-After. Graphic: JsonEngine.
Data behind the chart
MinuteRequests per minute
020.0
323.0
626.0
90
1215.5
1518.5
1821.5
210
2414.2
2717.2
3020.2
3323.2
  1. Start low. One connection per domain, with a conservative delay between requests. Raise it only if responses stay fast and clean.
  2. Apply published limits as hard caps. A documented limit or a Crawl-delay sets the ceiling, whatever your defaults say.
  3. On 429 or 503, pause and halve. Wait for the full Retry-After (or your backoff if absent), then resume at half the previous rate.
  4. Watch latency as well as errors. Rising response times are an earlier signal than errors. Slow down when they climb.
  5. Prefer quiet hours. For a retailer’s local market, overnight runs compete with fewer shoppers.

Reading Crawl-delay in Python

Python’s standard library urllib.robotparser already understands Crawl-delay and the similar Request-rate line, so honoring them takes a few lines.

Python
from urllib.robotparser import RobotFileParser

AGENT = "ExampleCollector"      # the product token your crawler announces
DEFAULT_DELAY = 5.0             # seconds; our floor when the site says nothing

def domain_delay(robots_url):
    rp = RobotFileParser(robots_url)
    rp.read()
    delay = rp.crawl_delay(AGENT)
    rate = rp.request_rate(AGENT)        # e.g. "Request-rate: 1/10"
    candidates = [DEFAULT_DELAY]
    if delay:
        candidates.append(float(delay))
    if rate:
        candidates.append(rate.seconds / rate.requests)
    return max(candidates)               # the most conservative wins

Note that RobotFileParser predates RFC 9309, so check its matching behavior against the standard if you rely on it for Allow and Disallow as well.

A reference table

SignalSyntaxAuthorityWhat we do
Retry-AfterSeconds or HTTP dateRFC 9110Wait at least that long; malformed means use backoff
429Status codeRFC 6585Pause, then halve the domain rate
503Status codeRFC 9110Pause; halve the rate if repeated
Crawl-delaySeconds, in a robots.txt groupNone; crawler-specificTreat as minimum gap between requests
Request-rateRequests/secondsNone; rareTreat as a cap
RateLimit, RateLimit-PolicyStructured header fieldsIETF draftSlow down before remaining quota hits zero
Documented API limitsProse in docsSite termsHard cap; use bulk exports where offered

Authority column reflects the documents linked above as of October 2026. “What we do” is JsonEngine’s policy.

If a domain keeps answering with 429s even at a slow, steady rate, the site is telling you something stronger than “slow down”. That is the point to stop and look for an official API or feed. We cover that decision in web scraping vs official APIs.

Quick answers

Does Google support Crawl-delay?

No. Google’s robots.txt documentation lists the fields it supports, and crawl-delay is not one of them. Bing has documented that BingBot honors it.

Is Crawl-delay part of the robots.txt standard?

No. RFC 9309 defines user-agent groups, Allow and Disallow. Crawl-delay is a widely used extension that individual crawlers may or may not honor.

What format does Retry-After use?

Either a number of seconds or an HTTP date, as defined in RFC 9110 section 10.2.3. Collectors should parse both and treat the value as a minimum wait.

Are the RateLimit headers a standard?

Not yet. RateLimit and RateLimit-Policy are defined in an IETF HTTPAPI working group draft, version 11 as of May 2026.

If I honor Crawl-delay, am I allowed to scrape the site?

Not necessarily. Politeness signals control pace, not permission. RFC 9309 states that robots.txt rules are not a form of access authorization.

Collection that respects the site’s pace

Our collectors run per-domain rate policies that honor published limits and back off on the first warning. See our services or talk to us.