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

# Introduction

> Send a URL, get the page back as clean markdown or structured JSON.

## Start here

- [Quickstart](/quickstart): Create a key and read your first page.
- [Agent quickstart](/agent-quickstart): Give an AI agent one tool that reads a URL.
- [API reference](/api-reference/scrape): Every field, header and status.

## One request

`url` is the only required field. Rendering and documents are the service’s job.

```bash
curl -sS https://api.crawlapi.dev/v1/scrape \
  -H "Authorization: Bearer $CRAWLAPI_API_KEY" \
  -H 'content-type: application/json' \
  --data '{"url": "https://example.com"}'
```

```python
import os, httpx

body = httpx.post(
    "https://api.crawlapi.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['CRAWLAPI_API_KEY']}"},
    json={"url": "https://example.com"},
    timeout=60.0,
).json()
print(body["data"]["markdown"])
```

```javascript
const response = await fetch('https://api.crawlapi.dev/v1/scrape', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer ' + process.env.CRAWLAPI_API_KEY,
    'content-type': 'application/json',
  },
  body: JSON.stringify({ url: 'https://example.com' }),
});
const body = await response.json();
console.log(body.data.markdown);
```

**200 OK** (1 credit)

```json
{
  "success": true,
  "request_id": "req_1dc0a514d6ee71c4524b",
  "data": {
    "metadata": {
      "title": "Example Domain",
      "description": "",
      "language": "en",
      "status": 200,
      "final_url": "https://example.com/"
    },
    "links": [],
    "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes."
  },
  "usage": {
    "credits": 1,
    "remaining": 9999
  }
}
```

## What you get

| Format | Data holds | Cost |
| --- | --- | --- |
| `markdown` | `markdown`: the page’s text, its links in `links[]` | *from 1 credit* |
| `json` | `json`: `tables`, `jsonld`, `embedded` state and `structured` data | *from 1 credit* |

## What it handles

- **JavaScript pages**
  Rendered and returned with their content, not their shell.
- **Challenge pages**
  A challenge or block page is never returned as a success.
- **Documents**
  PDF, Office, OpenDocument, EPUB, RTF, CSV, JSON and RSS/Atom URLs, converted like pages.
- **Sign-in walls**
  Returned as the wall’s own text, free, with `metadata.login_required: true`.

## What it does not do

- **Public pages only**
  No login, no password, no paywall is circumvented. A site that asks crawlers to pay is `BLOCKED`.
- **No HTML**
  `markdown` and `json` are the formats; the HTML is read, not returned.
- **No cache**
  Every request is a fresh fetch of the live page.
