# Web Scrape

Scrape any web page and get its content back as clean Markdown (or HTML, or raw HTML) plus title and metadata.

|  |  |
| --- | --- |
| Tool id | `anyapi.web-scrape` |
| Platform | [Web extraction](https://www.orcarouter.ai/tools/web-extraction.md) |
| Capability | [Extract a web page](https://www.orcarouter.ai/tools/web-extraction/page-extract.md) |
| Price | $0.00077 per call |
| Health | OK |
| p50 latency | 1.5 s |
| Success (7 days) | 45.3% |
| Runs (30 days) | 580 |
| Idempotent | no |
| Data class | unclassified |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The URL of the page to scrape. |
| `blockAds` | boolean | no | When true (upstream default), strip ad and cookie-consent elements before capture. Set false to keep them. |
| `excludeTags` | array | no | CSS selectors to drop before capture (for example \["nav", "footer", ".ads"\]). Applied after includeTags. |
| `formats` | array | no | Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (the page HTML exactly as the browser received it, including head and script tags). Each requested format is returned under the matching output field. Defaults to both. rawHtml is a deprecated |
| `includeTags` | array | no | CSS selectors to keep. When set, only content matching these selectors is captured (for example \["article", "main"\] or \["#content"\]). |
| `mobile` | boolean | no | When true, render the page with a mobile viewport and user agent instead of desktop. Some sites serve materially different content to mobile. |
| `onlyMainContent` | boolean | no | When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page. |
| `waitFor` | integer | no | Milliseconds to wait for the page to finish rendering before capture. Use this for JavaScript-heavy pages or single-page apps whose content loads after the initial paint. Capped at 15000 to stay within the request timeout. This wait is time you asked us to spend, so your response takes this much lon |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/anyapi.web-scrape/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"<url>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/anyapi.web-scrape/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"url":"<url>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [Parse video details from a share URL (any platform)](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-hybrid-video-data.md) | — | $0.0011 per call | OK |
| [Scrape a web page](https://www.orcarouter.ai/tools/web-extraction/page-extract/web-scrape-7e0847.md) | — | $0.00242 per call | OK |
| [Rating distribution of citations for a keyword](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-content-analysis-rating-distribution-live.md) | — | $0.0264 per call | OK |
| [Find domains by HTML terms on their homepage](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-domain-analytics-technologies-domains-by-html-terms-live.md) | — | $0.0264 per call | OK |
| [Search citations of a keyword](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-content-analysis-search-live.md) | — | $0.02644 per call | OK |
| [Sentiment of citations for a keyword](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-content-analysis-sentiment-analysis-live.md) | — | $0.02644 per call | OK |
| [Citation overview for a keyword](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-content-analysis-summary-live.md) | — | $0.02644 per call | OK |
| [Backlink summary for up to 1000 pages or domains](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-backlinks-bulk-pages-summary-live.md) | — | $0.02648 per call | OK |
| [Backlink summary for every page of a domain](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-backlinks-domain-pages-summary-live.md) | — | $0.026559 per call | OK |
| [Citation trends for a category over a date range](https://www.orcarouter.ai/tools/web-extraction/page-extract/x-content-analysis-category-trends-live.md) | — | $0.026559 per call | OK |

Showing the first 10 of 17.

## FAQ

### How much does Web Scrape cost?

Web Scrape costs $0.00077 per call: 1,000 calls cost $0.77.

### What does a $10 budget buy with Web Scrape?

About 12987 calls at $0.00077 per call.

### How fast is Web Scrape?

Its median response time over recent runs is 1475 ms.

### How reliable is Web Scrape?

45\.3% of its runs succeeded over the last 7 days.

### What inputs does Web Scrape need?

Required inputs: url.

### How do I call Web Scrape?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/web-extraction/page-extract/web-scrape
