Rate limits and concurrency

The per-key request rate, the per-organization limit on inline Crawl API requests, and how to stay under both.
Open as Markdown
On this page

Request rate: 120 per minute per key

Every /v1 route counts against one budget of 120 requests per minute per API key. The count is per key, not per IP address, so traffic from a shared egress IP (a corporate NAT, a CI fleet, the hosted MCP server) doesn't share a budget between customers.

A request counts once however many tasks it carries. 100 tasks in one task_post is one request, so batching is the simplest way to go faster.

Over the limit, you get HTTP 429 with a Retry-After header in seconds:

  • Compatible routes: envelope status_code 40202, "Too many requests. Retry after N s."
  • Crawl API routes: {"status": "error", "error": {"http_status": 429, "code": "rate_limited", ...}}.
  • Scale SERP, Outscraper and Apify shapes: their own error body with HTTP 429.

Nothing is billed.

Inline Crawl API requests: 10 in flight per organization

POST /v1/crawls with a single URL, POST /v1/serp and POST /v1/map fetch while you wait. Your organization can have 10 of these in flight at once. The 11th returns 429 rate_limited with Retry-After: 5. Batches (POST /v1/crawls/batch) and queued compatible tasks don't count toward this limit.

Staying under the limits

  • Batch. Send up to 100 tasks per compatible POST and up to 100 targets per Crawl API batch.
  • Queue instead of polling hard. Use task_post with a postback_url or pingback_url, or poll tasks_ready every 30 to 60 seconds rather than calling task_get for each task in a loop.
  • Honor Retry-After. Wait that many seconds before the next request on that key.
  • Spread work across keys only for separate systems. Separate keys for separate services keep one busy job from starving another. They all share your organization's wallet and the inline limit.
  • Limit your own concurrency. A client-side pool of a few workers per key keeps you well inside 120 per minute.
import time
import requests
 
def post_with_backoff(url, json, auth, attempts=5):
    for attempt in range(attempts):
        res = requests.post(url, json=json, auth=auth, timeout=120)
        if res.status_code != 429:
            return res
        time.sleep(int(res.headers.get("Retry-After", "5")))
    return res