# Scrape a web page by URL (Context.dev)

Fetches one URL (web pages, PDFs and other documents) and returns the outputs switched on in formats: Markdown, HTML, screenshot, images, passages relevant to a question (highlights), JSON following a schema, or product details, with page metadata.

- Id: `contextdev.web.scrape`
- Request: `POST https://api.context.dev/v1/web/scrape`
- Price: $0.0009 / page. 1 credit, 2 with browser actions. Highlights +1, JSON extraction +4, product +1, PDF OCR +1 per page. No charge when every output fails, except a target 404.
- Price source: https://docs.context.dev/account/credits.md (checked 2026-11-27)

## Body parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `url` | string | yes | Example: `"https://example.com"` |
| `formats` | object | yes | Set outputs to true: markdown, html, screenshot, images, bytes, parse, highlights, json, product. Example: `{"markdown":true}` |
| `sharedParams` | object | no | Example: `{"mainContentOnly":true}` |
| `markdownParams` | object | no |  |
| `highlightsParams` | object | no | Required with formats.highlights |
| `jsonParams` | object | no | Required with formats.json: the JSON Schema |
| `maxAgeMs` | integer | no | Accept a cached output up to this age; default 3 days, 0 fetches fresh |

## Call it

Over MCP (https://kitepod.com/mcp):

```text
catalog_search  {"query":"scrape a web page by url"}
catalog_get     {"id":"contextdev.web.scrape"}
call            {"id":"contextdev.web.scrape","input":{"url":"https://example.com","formats":{"markdown":true}}}
```

Over REST:

```sh
curl -X POST "https://kitepod.com/v1/call/contextdev.web.scrape" \
  -H "Authorization: Bearer $KITEPOD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","formats":{"markdown":true}}'
```

## Example response

A real response from the provider, trimmed.

```json
{
  "url": "https://example.com/",
  "html": {
    "requested": false,
    "success": null,
    "data": null
  },
  "markdown": {
    "requested": true,
    "success": true,
    "data": "# Example Domain"
  },
  "screenshot": {
    "requested": false,
    "success": null,
    "data": null
  },
  "images": {
    "requested": false,
    "success": null,
    "data": null
  },
  "bytes": {
    "requested": false,
    "success": null,
    "data": null
  },
  "parsed": {
    "type": "custom",
    "requested": false,
    "success": null,
    "data": null
  },
  "highlights": {
    "requested": false,
    "success": null,
    "data": null
  },
  "json": {
    "requested": false,
    "success": null,
    "data": null
  },
  "product": {
    "requested": false,
    "success": null,
    "data": null
  },
  "profile": null,
  "metadata": {
    "sourceUrl": "https://example.com",
    "finalUrl": "https://example.com/",
    "title": "Example Domain"
  },
  "request_id": "d7aa1c3a-38d2-4fb5-92c8-0f0cac3efa37",
  "cache_metadata": {
    "status": "miss",
    "age_ms": 0
  },
  "key_metadata": {
    "credits_consumed": 1,
    "credits_remaining": 999
  }
}
```

Reference: [REST](https://kitepod.com/docs/rest.md) · [MCP](https://kitepod.com/docs/mcp.md)

[Context.dev](https://kitepod.com/tools/contextdev) · [All tools](https://kitepod.com/tools)

---

[Tools](https://kitepod.com/tools) · [Docs](https://kitepod.com/docs) · [Pricing](https://kitepod.com/pricing) · [List your API](https://kitepod.com/list-your-api) · [Sign up](https://kitepod.com/login) · [Terms](https://kitepod.com/terms) · [Privacy](https://kitepod.com/policy) · hello@kitepod.com
