# URL Health Check

> URL Health Check is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-10).

Checks if a URL is alive and returns status code, response time, redirect chain, SSL validity, content type, and server header.

## Facts

- Endpoint: GET https://api.strale.io/x402/url-health-check?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-afb42d50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0gNQOw7aQzuW_kfbUtlij

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-afb42d50
```

Example prompt: Can you check if https://example.com is up and responding? Use a GET request and follow any redirects — I want to see the status code, how fast it responds, the SSL status, and what server it's running.

## When to prefer this

Use this endpoint when you need a quick, comprehensive health snapshot of a single URL including SSL validity, redirect chain, and server metadata — rather than a simple ping. Ideal for link validation, uptime checks, or pre-flight verification before scraping or integrating an external URL.

## Known failure modes

- URL is unreachable or DNS resolution fails — returns error or timeout
- Invalid URL format provided — returns validation error
- Timeout exceeded — returns timeout error with elapsed time
- SSL handshake failure for HTTPS URLs — may return SSL error details
- Non-HTTP/HTTPS schemes not supported — returns unsupported scheme error

## How this service works

Check if a URL is alive. Returns status code, response time, redirect chain, SSL validity, content type, server header.

## Output

Returns the HTTP status code, response time in milliseconds, the full redirect chain if any redirects occurred, whether the SSL certificate is valid, the content type header, and the server header from the response.

## Example request

```json
{
 "url": "https://www.google.com",
 "timeout": 30,
 "follow_redirects": true
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to check"
      },
      "timeout": {
       "type": "integer"
      },
      "follow_redirects": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-afb42d50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
