> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Crawl4AI Cloud

> Crawl4AI's hosted API: scrape pages to markdown, extract JSON, search the web, Google results as data, direct answers and ready-made site recipes.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/crawl4ai.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=d0132ea1e3d8afa6bd46c4f0c84c98df)

[Web Catalog · Scraping](https://docs.webrouter.net/data-apis.md?category=scraping)

Needs&#x20;

`CRAWL4AI_KEY`

Endpoints

7

Auth

Key in header

[Vendor docs](https://api.crawl4ai.com/docs)

&#x20;·&#x20;

[Pricing](https://api.crawl4ai.com/v1/prices)

## Setup

| Variable | | What it is |
| - | - | - |
| `CRAWL4AI_KEY` | required | A Crawl4AI Cloud key, sk\_live\_... (api.crawl4ai.com > Get a key; manage at api.crawl4ai.com/dashboard). Sent as Authorization: Bearer. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* This is the hosted service built on the open-source crawl4ai library. The legacy v1 API (sessions, scan, site, enrich, context) was shut down on 2026-11-06.
* Every call costs credits (1 credit = \$0.001; a cached result costs half). Response headers x-c4-cost and x-c4-balance give the charge and the exact balance; GET /v1/prices is the live price table.
* Free plan: 10 requests a minute, 2 at a time, 1,000 credits a month; over the pace limit is 429, out of credit is 402 no\_credit, over the month's plan allowance 402 plan\_cap.
* Failed fetches (403 blocked or login-wall, 502 no-answer or origin-error, 503 busy, 500) are not charged.
* Batches (/scrape/batch, /scrape/jobs), recipe jobs, /price and the billing top-up (charges a saved card) are not in this entry.

## Endpoints

POST

Scrape a page

One URL as clean markdown and/or HTML, optionally with links, media, metadata and tables.

[Open](#crawl4ai-scrape)

POST

Extract structured data

Typed JSON from a page (crawled for you) or your own content, guided by an instruction and/or a JSON schema.

[Open](#crawl4ai-extract)

GET

Search the web

Ranked, cleaned web results (title, url, snippet, source), optionally with follow-up questions, an entity card, news and videos.

[Open](#crawl4ai-search)

GET

Get Google results as data

Google's results page as structured data: organic ranks plus every block shown (AI overview, people also ask, local pack, ads...).

[Open](#crawl4ai-serp)

GET

Answer a question

A direct answer to a question with its sources, or answered:false when there is none.

[Open](#crawl4ai-answer)

GET

List recipes

The catalog of ready-made site scrapers (Amazon, LinkedIn, Google Maps, app stores...), with each one's inputs and output columns.

[Open](#crawl4ai-recipes-list)

GET

Get credit balance

The account's credit balance and plan allowance.

[Open](#crawl4ai-balance)

### Scrape a page

POST

`/scrape`

`crawl4ai.scrape`

One URL as clean markdown and/or HTML, optionally with links, media, metadata and tables.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url` required</td><td>string</td><td>body</td><td>A public http or https URL. Example `https://example.com`</td></tr>
    <tr><td>`format`</td><td>string</td><td>body</td><td>What to return. Default both. One of `both`, `md`, `html`</td></tr>
    <tr><td>`proxy`</td><td>string</td><td>body</td><td>Exit network, for a site that blocked a plain request. isp costs 2x, residential 4x. Default none. One of `none`, `isp`, `residential`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Two-letter country to fetch from, e.g. us, gb.
      </td>
    </tr>

    <tr>
      <td>
        `parse`
      </td>

      <td>
        object
      </td>

      <td>
        body
      </td>

      <td>
        Also return page structure: true for all, or pick \{"links":true,"media":true,"metadata":true,"tables":true}.
      </td>
    </tr>

    <tr><td>`engine`</td><td>string</td><td>body</td><td>auto (default) picks the cheapest that works; browser-light or browser force a fresh browser fetch, slower and priced higher. One of `auto`, `browser-light`, `browser`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.crawl4ai.com/llms.txt) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch)

```python Python theme={null}
router.call_data_api("crawl4ai.scrape", {'url': 'https://example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.scrape", params={"url": "https://example.com"})
```

> [!NOTE]
>
> * A read over POST.
> * Most pages answer in 1-2 s; a page that needs a real browser takes 10-60 s, up to 90 s. Use a 120 s client timeout.
> * The answer says which engine served it and the steps tried (ladder).

### Extract structured data

POST

`/extract`

`crawl4ai.extract`

Typed JSON from a page (crawled for you) or your own content, guided by an instruction and/or a JSON schema.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `url`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        The page to read. Give url or content.
      </td>
    </tr>

    <tr>
      <td>
        `content`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Your own text, markdown or HTML, instead of url.
      </td>
    </tr>

    <tr>
      <td>
        `instruction`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Plain-English description of what to pull out.
      </td>
    </tr>

    <tr>
      <td>
        `schema`
      </td>

      <td>
        object
      </td>

      <td>
        body
      </td>

      <td>
        JSON Schema each returned record must match.
      </td>
    </tr>

    <tr>
      <td>
        `example`
      </td>

      <td>
        object
      </td>

      <td>
        body
      </td>

      <td>
        A sample of the wanted shape (structure, not values).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://api.crawl4ai.com/llms.txt) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-fetch), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-scrape), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-llm-context), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-fetch), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-product), [Context7](https://docs.webrouter.net/data-apis/context7.md#context7-page-fetch)

```python Python theme={null}
router.call_data_api("crawl4ai.extract")
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.extract")
```

> [!NOTE]
>
> * A read over POST. Give an instruction, a schema, or both.
> * Returns \{ok, url, data, usage.total\_tokens, ms}.

### Search the web

GET

`/search`

`crawl4ai.search`

Ranked, cleaned web results (title, url, snippet, source), optionally with follow-up questions, an entity card, news and videos.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The query, up to 512 characters. Example `rust web crawler`</td></tr>
    <tr><td>`rich`</td><td>integer</td><td>query</td><td>1 also returns a rich block (follow-up questions, related queries, entity, videos, news). Default 0. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.crawl4ai.com/llms.txt) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crustdata](https://docs.webrouter.net/data-apis/crustdata.md#crustdata-web-search)

```python Python theme={null}
router.call_data_api("crawl4ai.search", {'q': 'rust web crawler'})
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.search", params={"q": "rust web crawler"})
```

> [!NOTE]
>
> * source gg or gs is a live web result; index is from Crawl4AI's own index, added when the web returns fewer than 10.

### Get Google results as data

GET

`/serp`

`crawl4ai.serp`

Google's results page as structured data: organic ranks plus every block shown (AI overview, people also ask, local pack, ads...).

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The query, up to 512 characters. Example `best crm software`</td></tr>

    <tr>
      <td>
        `country`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country. Default us.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Google language code. Default en.
      </td>
    </tr>

    <tr>
      <td>
        `location`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        City or region to localise to, e.g. 'Austin, TX'. An unknown one is a 400 listing the 3 closest names.
      </td>
    </tr>

    <tr>
      <td>
        `num`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results wanted, a multiple of 10 up to 100. Default 10.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page over num, 1-30: num=20\&page=2 is results 21-40. Default 1.
      </td>
    </tr>

    <tr><td>`time`</td><td>string</td><td>query</td><td>Google's time filter. One of `hour`, `day`, `week`, `month`, `year`</td></tr>
    <tr><td>`fresh`</td><td>integer</td><td>query</td><td>1 skips the cache. Default 0. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.crawl4ai.com/llms.txt) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-search), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-search), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-serp-google-organic), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-search), [Massive (Web Render)](https://docs.webrouter.net/data-apis/joinmassive.md#joinmassive-search), [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-google-search)

```python Python theme={null}
router.call_data_api("crawl4ai.serp", {'q': 'best crm software'})
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.serp", params={"q": "best crm software"})
```

> [!NOTE]
>
> * Beta. 1 credit per Google page fetched live (num=100 is up to 10 credits); a cached page costs half.
> * position is the organic rank; position\_absolute counts every numbered item on the page, as rank trackers do.

### Answer a question

GET

`/answer`

`crawl4ai.answer`

A direct answer to a question with its sources, or answered:false when there is none.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The question or a whole prompt, up to 4,000 characters. Ask for the shape you want in the question itself. Example `why is the sky blue`</td></tr>
    <tr><td>`deep`</td><td>integer</td><td>query</td><td>1 (default) may read a couple of pages to answer; 0 returns only a readily available answer. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://api.crawl4ai.com/llms.txt) · Same job: [Riveter](https://docs.webrouter.net/data-apis/riveter.md#riveter-search-agent), [Seltz](https://docs.webrouter.net/data-apis/seltz.md#seltz-answer), [Tako](https://docs.webrouter.net/data-apis/tako.md#tako-answer)

```python Python theme={null}
router.call_data_api("crawl4ai.answer", {'q': 'why is the sky blue'})
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.answer", params={"q": "why is the sky blue"})
```

> [!NOTE]
>
> * Experimental: the shape may change.
> * 1 credit for an answer found directly (a Google AI overview or AI mode), 3 when Crawl4AI's model wrote it, nothing when answered is false.
> * When the question asks for JSON, answer.text is a JSON string: parse it.

### List recipes

GET

`/recipes`

`crawl4ai.recipes.list`

The catalog of ready-made site scrapers (Amazon, LinkedIn, Google Maps, app stores...), with each one's inputs and output columns.

Input

No inputs.

[Vendor docs](https://api.crawl4ai.com/llms.txt)

```python Python theme={null}
router.call_data_api("crawl4ai.recipes.list")
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.recipes.list")
```

> [!NOTE]
>
> * Free. Read a recipe's inputs and output\_about here before running it; never guess a recipe name.
> * Run one with a raw POST /recipes/\{name} whose JSON body is the recipe's inputs as top-level fields (e.g. \{"product":"B0BSHF7WHW","limit":20}); it costs usage.units credits (1 per call plus 1 per page) and can take up to 300 s. Inputs marked secret take the user's own login cookies: never fill them unasked.

### Get credit balance

GET

`/v1/billing/balance`

`crawl4ai.balance`

The account's credit balance and plan allowance.

Input

No inputs.

[Vendor docs](https://api.crawl4ai.com/llms.txt)

```python Python theme={null}
router.call_data_api("crawl4ai.balance")
```

```text MCP theme={null}
call_data_api(endpoint="crawl4ai.balance")
```

> [!NOTE]
>
> * Trails the per-call x-c4-balance header by about a minute.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.