RateLimit and RateLimit-Policy are HTTP response headers from an IETF draft that let a server tell a client its quota and what is left of it. A well-behaved crawler can read them to slow down before the server answers 429 Too Many Requests.
RateLimit-Policy describes a quota policy the server defines, for example RateLimit-Policy: "burst";q=100;w=60 means 100 units per 60-second window. The draft also defines parameters for the quota unit (qu) and a partition key (pk), so a limit can be scoped, for example per user. Several policies can be listed in one field.
RateLimit reports what is currently available under a named policy: RateLimit: "default";r=50;t=30 says 50 units remain and the window resets in 30 seconds. These fields replace the older RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset names from earlier draft revisions, and many APIs still send vendor variants of those older names, so a client should parse defensively.
The draft does not mandate a specific throttling behavior, but it suggests clients slow down or back off pre-emptively as the remaining budget approaches zero. It also states that if a response contains both RateLimit and Retry-After, Retry-After takes precedence. A crawler should therefore honor Retry-After first, then fall back to the RateLimit reset time.
The headers are advisory information the server chose to publish; they are not guaranteed to be present, and the draft has not yet been published as an RFC. Treat them as a hint to tune concurrency per host, and keep a fixed ceiling in your own code for servers that never send them.
import re
import time
import requests
def wait_if_exhausted(resp: requests.Response) -> None:
# Retry-After wins over RateLimit when both are present (per the IETF draft)
retry_after = resp.headers.get("Retry-After")
if retry_after and retry_after.isdigit():
time.sleep(int(retry_after))
return
# Example header: RateLimit: "default";r=0;t=30 -> r = remaining, t = seconds to reset
header = resp.headers.get("RateLimit", "")
remaining = re.search(r";r=(\d+)", header)
reset = re.search(r";t=(\d+)", header)
if remaining and reset and int(remaining.group(1)) == 0:
time.sleep(int(reset.group(1)))
resp = requests.get("https://example.com/api/items", timeout=30)
wait_if_exhausted(resp)How Crawlora handles this
Crawlora's API handles upstream throttling for you, retrying and spreading requests before a response reaches your code, and bills only successful responses. Your own client still has per-key limits, which the rate limits documentation describes.
Related reading
Glossary
FAQ
Not yet. It is a Standards Track Internet-Draft from the IETF HTTPAPI working group, so field names and parameters may still change before publication.
Retry-After says how long to wait before retrying, usually after a 429 or 503. RateLimit advertises the remaining quota in advance. When both are present, Retry-After takes precedence.
Use them as guidance. They reflect the server's own accounting and can be absent, partitioned differently from your traffic, or out of date, so keep your own conservative limits as well.
Beyond RateLimit Header Fields, Crawlora's own docs cover the rest of the stack — browse the APIs, test a request in Playground, and move from scraping infrastructure work to production data workflows.