# Page Links (`web.links`)

List the links of a page with anchor text, rel attributes and an internal/external split.

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

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `url` | string | yes |  | Public http(s) URL |
| `type` | string | no | "all" | Which links to return |
| `limit` | integer | no | 500 | Maximum links |

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

| Field | Meaning |
|---|---|
| `links` | url, anchor text, rel, nofollow and internal flag. |
| `count` | Links returned. |
| `totals` | Totals on the page: internal, external, nofollow. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/web.links \
  -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.links', {'url': 'https://example.com'})
print(result['cost_usd'], result['output'])
```

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

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