# Website Status Check (`web.status`)

Check whether a URL is up: one GET from our server with status, response time, redirects and the error when it is down.

- **Route:** `POST /v1/run/web.status`
- **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 177 ms · p95 177 ms · p99 177 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 |
|---|---|
| `up` | True when the final status is below 400. |
| `status` | Final HTTP status. |
| `response_time_ms` | Total time. |
| `error` | Reason when down. |
| `checked_at` | Time of the check. |

## Example

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

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

```bash
getallapis run web.status '{"url":"https://www.wikipedia.org"}'
```

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