---
agent:
  instructions: "Search crawlapi docs via GET /.well-known/search?q={query} (add &format=json or Accept: application/json for JSON)."
  endpoint: "https://docs.crawlapi.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.crawlapi.dev/llms.txt"
---

> Documentation index: https://docs.crawlapi.dev/llms.txt
> Search docs: https://docs.crawlapi.dev/.well-known/search?q={query}
> OpenAPI 3.1 specification: https://docs.crawlapi.dev/openapi.json

# Credits and pricing

> How credits work, request billing, credit holds, and response usage.

Every returned page costs **`1` credit** — plain HTML, JavaScript apps, protected sites, documents, and both `markdown` and `json` formats cost the same. **Credits never expire.**

## What a request costs

| Outcome | Credits | Notes |
| --- | --- | --- |
| Any successful page or document | `1` | HTML, JavaScript apps, protected sites, documents, `markdown` or `json` |
| Any failed request (`4xx` or `5xx`) | `0` | Includes `NOT_FOUND`, `GONE`, `BLOCKED`, `NO_CONTENT`, `TIMEOUT`, `RATE_LIMITED`, and `INTERNAL` |
| Sign-in wall (`metadata.login_required: true`) | `0` | Returned as HTTP `200` with the wall's own text |

Every `200` response reports the credits charged and your remaining balance:

```json
{
  "usage": {
    "credits": 1,
    "remaining": 11999
  }
}
```

## Credit holds and `402`

Before fetching a URL, crawlapi places a temporary `1`-credit hold and settles it when the request completes:

- Because the hold runs before fetching, an account with **`0` credits** receives `402 INSUFFICIENT_CREDITS` (`error.required_credits: 1`) immediately.
- Running requests in parallel holds `1` credit per in-flight request; failed requests release their hold immediately.
- If the request fails or returns a sign-in wall, the hold is released in full and `0` credits are charged.

## Checking your balance

You can inspect your credit balance, held credits, and active limits from any surface without spending credits:

- **HTTP API:** `GET https://api.crawlapi.dev/v1/account` with any active API key.
- **CLI:** Run `crawl account` (or `crawl usage` for daily and per-domain history).
- **MCP:** Call the `account` tool from your connected coding agent.
- **Dashboard:** View balance, usage history, and purchases at [app.crawlapi.dev/billing](https://app.crawlapi.dev/billing).

- [API keys & billing](https://docs.crawlapi.dev/account.md) Credit packs, speed limits, automatic top-up, and the playground trial.
- [Rate limits](https://docs.crawlapi.dev/rate-limits.md) Per-minute and concurrency limits that grow with your purchases.
