> Documentation index: https://docs.crawlapi.dev/llms.txt
> Fetch the index before exploring further; it lists every page with its description.

# Rate limits

> Requests per minute and at once for your account, the headers that say what is left, and what a 429 means.

## Limits per pack

| Pack | Price | Credits | Per minute | At once |
| --- | --- | --- | --- | --- |
| Starter | $10 | 15,000 | 100 | 5 |
| Builder | $29 | 65,000 | 400 | 20 |
| Pro | $99 | 240,000 | 1,000 | 50 |
| Scale | $299 | 750,000 | 3,000 | 100 |
| Business | $999 | 2,500,000 | 6,000 | 250 |

A new account starts at the smallest pack's limits, 100 a minute and 5 at once, so a key works before the first purchase. Your limits rise as your purchases add up: once they reach the price of a pack in total, you have its limits. They never go down.

## What is left, on every answer

Every answer to a valid key, success or failure, says what the account has left, in the `RateLimit` fields of the IETF draft [RateLimit header fields for HTTP](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/):

**Headers**

```http
RateLimit-Policy: "minute";q=100;w=60, "concurrency";q=5;qu="concurrent-requests"
RateLimit: "minute";r=96;t=1, "concurrency";r=0
```

| Field | Meaning |
|---|---|
| `"minute";q=` | the requests the account may start a minute (`w=60`) |
| `"concurrency";q=` | the requests it may run at once |
| `"minute";r=` | the requests that can start now |
| `"minute";t=` | the seconds until one more can start; absent while the minute is full |
| `"concurrency";r=` | the slots free now |

An answer without a valid key carries neither field, a `401` or the `429` sent while too many unknown keys arrive: there is no account to count.

## When you are over a limit

| Limit | What happens |
|---|---|
| Per minute | a token bucket holds one minute's requests and refills continuously: a burst up to the limit is accepted, then the next request waits for a token |
| At once | a request over the concurrency limit is answered immediately |

Both answer `429 RATE_LIMITED` with `Retry-After` in seconds: the time until a token is free, or one second for a busy slot. The message names the limit that was reached. Nothing is charged.

**429 RATE_LIMITED** (0 credits)

```json
{
  "success": false,
  "request_id": "req_3115cab0d43d3ab5a090",
  "error": {
    "code": "RATE_LIMITED",
    "message": "This account's limit of requests at once (5) is reached; retry when one finishes.",
    "retryable": true,
    "doc_url": "https://docs.crawlapi.dev/errors#RATE_LIMITED"
  }
}
```

## When we are at capacity

Our own capacity answers the same code when no slot or memory would be free before the deadline. `Retry-After` says when the queue lets the request fit; it is never moved to a higher level.

> **Wait for Retry-After**
>

> A retry that arrives early is answered `429` again and does not move the queue.

## Sizing a run

The at-once limit sets how many pages a run reads together, so it sets the pace. Requests over it are refused, not queued, so a run that sends more than the limit spends its time on retries. Start a new request when an answer's `"concurrency";r=` is above 0, and wait `t` seconds when `"minute";r=0`.
