# HTTP Headers (`web.headers`)

Fetch a URL and return the final status, every response header, the redirect chain and the response time.

- **Route:** `POST /v1/run/web.headers`
- **Price:** $0.0005 per request ($0.50 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs network checks (`netcheck`) · failover: no
- **Measured latency:** p50 77 ms · p95 77 ms · p99 77 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 |
|---|---|
| `status` | Final HTTP status. |
| `headers` | Response headers, lower-cased names. |
| `redirects` | URLs that redirected. |
| `response_time_ms` | Total time including redirects. |

## Example

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

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

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