# Web Scrape (`web.scrape`)

Fetch one public web page and return its title, meta data, visible text and links.

- **Route:** `POST /v1/run/web.scrape`
- **Price:** $0.0007 per request ($0.70 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs fetcher (`web`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `url` | string | yes |  | Public http(s) URL |
| `include_html` | boolean | no | false | Also return the raw HTML (up to 2 MB) |
| `include_links` | boolean | no | true |  |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `final_url` | URL after redirects. |
| `status` | HTTP status. |
| `title` | Page title. |
| `description` | Meta description. |
| `text` | Visible text (max 100k characters). |
| `links` | Absolute links on the page (max 500). |
| `html` | Raw HTML when include_html=true. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/web.scrape \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('web.scrape', {'url': 'https://example.com'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run web.scrape '{"url":"https://example.com"}'
```

Quote first (free, validates input): `POST /v1/quote/web.scrape` with the same body.
