# Link Preview / Page Metadata (`web.metadata`)

Fetch a page and return its link-preview data: title, description, image, Open Graph and Twitter card tags, canonical URL, icons, feeds and JSON-LD types.

- **Route:** `POST /v1/run/web.metadata`
- **Price:** $0.001 per request ($1.00 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs fetcher (`web`) · failover: no
- **Measured latency:** p50 169 ms · p95 169 ms · p99 169 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `url` | string | yes |  | Public http(s) URL |

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

| Field | Meaning |
|---|---|
| `title` | og:title or the page title. |
| `description` | og:description or meta description. |
| `image` | Preview image URL. |
| `site_name` | og:site_name. |
| `canonical` | Canonical URL. |
| `open_graph` | All og: tags. |
| `twitter_card` | All twitter: tags. |
| `icons` | Favicons and touch icons. |
| `feeds` | RSS/Atom feeds the page links. |
| `json_ld_types` | Schema.org types found in JSON-LD. |

## Example

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

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

```bash
getallapis run web.metadata '{"url":"https://github.com"}'
```

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