# x402-farm Domain Health Check

> x402-farm Domain Health Check is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Checks DNS records, TLS certificate, HTTP redirect chain, and security headers for a given domain in a single call

## Facts

- Endpoint: GET https://api.x-402.online/v1/domain/health?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-farm-domain-health-check-1d7d7d1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QLl_9oz7a_Y2pVLDaVcsf

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 x402-farm-domain-health-check-1d7d7d1a
```

Example prompt: Can you do a full health check on example.com — I want to see its DNS records, whether the SSL certificate is valid and how many days until it expires, any HTTP redirects, and which security headers are set?

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call domain health audit combining DNS, TLS, redirects, and security headers. Ideal for pre-launch checks, certificate expiry monitoring, or security posture reviews without needing to stitch together multiple specialized DNS or SSL tools. Particularly useful when cost per check matters — at $0.005 per call via USDC/x402, it is inexpensive for automated or batch monitoring workflows.

## Known failure modes

- Domain does not exist or cannot be resolved — returns DNS lookup failure
- Domain is unreachable or times out — returns connectivity error
- Invalid domain name format — returns validation error
- TLS certificate completely missing or handshake failure — reported in certificate section with error state

## How this service works

Check whether a domain is reachable and healthy: DNS, certificate, redirects, security headers. One call on a domain: A, AAAA, NS, MX and SPF records; the TLS certificate with issuer, expiry and days left; the HTTP redirect chain hop by hop; and which security headers are present. Read from our infrastructure. Query…

## Output

Returns a structured report including: A, AAAA, NS, MX, and SPF DNS records; TLS certificate details with issuer, expiry date, and days remaining; the full HTTP redirect chain hop-by-hop; and a list of security headers present on the domain.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-farm-domain-health-check-1d7d7d1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
