# Extract Url

> `POST /extract` · Read

Canonical page: https://clawifi.dev/docs/api/post-extract

`POST https://api.clawifi.dev/extract`

- Send your key as `Authorization: Bearer $CLAWIFI_API_KEY`; see [Authentication](https://clawifi.dev/docs/authentication).
- Add `"dry_run": true` (or `?dry_run=true`) to see what the call would cost; nothing runs and nothing is charged.
- Hosted MCP tool: `extract_url` on `https://api.clawifi.dev/mcp`.
- Credits: see [Pricing and credits](https://clawifi.dev/docs/pricing-and-credits).

## Request

**cURL**

```sh
curl -X POST https://api.clawifi.dev/extract \
  -H "Authorization: Bearer $CLAWIFI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

**Python**

```python
from clawifi import Clawifi

client = Clawifi()  # reads CLAWIFI_API_KEY
result = client.extract("https://example.com")
```

**MCP**

```text
extract_url(url="https://example.com")
```

### Body

| Field | Type | Default | Required |
| --- | --- | --- | --- |
| `browser_profile` | string (optional) |  | no |
| `force_browser` | boolean | `false` | no |
| `preset` | "article" \| "product" \| "person" \| "company" (optional) |  | no |
| `proxy_config` | string or object (optional) |  | no |
| `requires_auth` | boolean | `false` | no |
| `schema` | object |  | no |
| `screenshot` | boolean (optional) |  | no |
| `skip_archive` | boolean | `false` | no |
| `source` | SourceId (optional) |  | no |
| `timeout_seconds` | integer (optional) |  | no |
| `url` | string |  | yes |
| `wait_until` | "commit" \| "domcontentloaded" \| "load" \| "networkidle" | `"domcontentloaded"` | no |

## Response

200 with a `ExtractResponse` object: `confidence`, `data`, `diagnostics`, `errors`, `evidence`, `fetch`, `mode_used`, `preset`, `source`, `success`, `url`, `validation`.

Errors use the shared shape; see [Errors](https://clawifi.dev/docs/errors). Try public operations without a key in the [playground](https://clawifi.dev/playground).
