## web/scrape

`GET /v1/web/scrape`

Fetch a public web page and return its content as markdown, text, raw HTML, links, and/or page metadata. Fetch modes: direct by default; browser, enhanced and rendered are deployment-gated and off by default. Requested output shapes are unchanged. An unavailable non-direct mode returns 424 rather than silently ignoring the requested mode.

*Scrape a web page*

| Parameter | Required | Description |
| --- | --- | --- |
| `url` | yes | Page URL to scrape (http/https, public hosts only) — e.g. `https://example.com` |
| `formats` | no | Comma-separated subset of markdown,html,text,links,metadata (default markdown,metadata) — e.g. `markdown,metadata` |
| `only_main_content` | no | Strip page chrome (nav/header/footer/aside) and return the main content region (default true) — e.g. `true` |
| `timeout` | no | Fetch budget in milliseconds, clamped to 1000-15000 — e.g. `10000` |
| `fetch_mode` | no | Fetch mode: direct (default) reads static HTML; browser explicitly runs JavaScript in an owned, isolated browser. Enhanced and rendered try direct first and permit configured fallbacks. Non-direct modes require deployment enablement, an approved target and applicable resource or spending limits; otherwise the request is refused. Output formats are unchanged. — e.g. `direct` |
| `dry_run` | no | Read a zero-credit estimate without fetching sources, running AI, or reserving credits. Cache status is a snapshot, not a guarantee at execution. — e.g. `1` |

**Cost:** 1 credit at list price per successful uncached response; variable-cost operations may quote or settle a different charge. Confirmed uncharged or refunded failures report zero. Pending reconciliation can report credits_used:null; retain request_id and the original idempotency key.

```bash
curl "https://www.monocrawl.com/v1/web/scrape?url=https%3A%2F%2Fexample.com" \
  -H "x-api-key: mn_your_key_here"
```

### Response data

Illustrative abbreviated data; documented core fields are optional and may be null. Additional source fields are allowed.

```json
{
  "_warnings": [
    "example"
  ],
  "content_strategy": "example",
  "content_type": "example",
  "description": "example",
  "final_url": "https://example.com/example",
  "language": "example",
  "markdown": "example",
  "only_main_content": false,
  "status": 0,
  "title": "example",
  "url": "https://example.com/example"
}
```

[Field reference](https://www.monocrawl.com/docs/endpoints/web/scrape#response) · [JSON Schema for response.data](https://www.monocrawl.com/schemas/web/scrape.json)
