Rate limits
Requests are metered per user, not per key. If you have three API keys under one account, they all draw from the same quota.
Limits by tier
| Endpoint type | Free | Dev | Pro | Team |
|---|---|---|---|---|
| Live endpoints | 30/min | 60/min | 120/min | 120/min |
| Historical endpoints | — | 30/min | 100/min | 100/min |
| Bulk / export endpoints | — | — | — | Unrestricted |
Limits are shared within each endpoint category, rather than assigned separately to every path. All priority-fee endpoints use the live limits for every range, including all. These limits may be adjusted based on observed traffic patterns.
What a 429 looks like
When you exceed your quota, the API returns HTTP 429 Too Many Requests with a JSON body:
{
"error": "Rate limit exceeded",
"message": "Too many requests. Please slow down.",
"retry_after": 10,
"docs": "https://loris.tools/docs/rate-limits"
}Rate-limit headers
429 responses include three headers:
| Header | Value |
|---|---|
| X-RateLimit-Limit | Your tier's request limit per one-minute window for this endpoint category |
| X-RateLimit-Remaining | 0 (you're over limit) |
| Retry-After | Number of seconds to wait before retrying |
These headers are only present on 429 responses. Successful requests do not include a remaining-count header.
Handling 429s
Honor Retry-After and use exponential backoff with jitter. Wait at least the returned number of seconds before retrying. A simple approach in Python:
import time, random, httpx
def fetch_with_backoff(url, headers, retries=5):
delay = 1.0
for attempt in range(retries):
resp = httpx.get(url, headers=headers)
if resp.status_code != 429:
return resp
retry_after = float(resp.headers.get("Retry-After", "0"))
wait = max(delay, retry_after)
jitter = random.uniform(0, wait * 0.1)
time.sleep(wait + jitter)
delay = min(delay * 2, 60) # cap at 60s
raise RuntimeError("Rate limit retries exhausted")If you're consistently hitting limits, consider caching responses locally or upgrading your plan. See pricing for higher-limit tiers.