# Domain Health Check API

> Domain Health Check API is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.025/call, status unknown (last checked 2026-11-20).

Performs a full domain health check in one call, returning WHOIS ownership and expiry, DNS records, SSL certificate status, robots.txt rules, and sitemap availability.

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/pack/domain-health?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-health-check-api-08d77a75
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hbOI9E9WAUSYQyN4cAEvX

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 domain-health-check-api-08d77a75
```

Example prompt: Can you run a full domain health check on stripe.com — I want to see the WHOIS ownership and expiry, DNS records, SSL certificate status, and whether it has a robots.txt and sitemap?

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call domain health snapshot combining WHOIS, DNS, SSL, and crawlability data together — rather than querying each source individually. Ideal for pre-purchase domain due diligence, vetting third-party sites before integration or outreach, or quickly assessing whether a domain is properly configured and trustworthy.

## Known failure modes

- Domain not found or unregistered — results may be empty or partial
- DNS lookup failure for non-existent or misconfigured domains
- SSL check may time out for very slow hosts
- robots.txt or sitemap may not be found if the site is down or blocks crawlers
- Payment of 0.025 USDC required per call via x402 protocol — unpaid requests will be rejected

## How this service works

FreeTier Domain Health Check pack: Full health check for a domain in one call: WHOIS ownership and expiry, DNS records, SSL certificate status, robots.txt rules and sitemap availability. Use it to vet a site before outreach, purchases or integrations. Info: https://freetier-agent-api.pages.dev/packs/domain-health

## Output

Returns a JSON object with WHOIS ownership and expiry information, DNS records, SSL certificate validity and status, robots.txt rules, sitemap availability, and an overall health summary status indicating whether the domain is in good standing.

## 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",
     "required": [
      "domain"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Base URL for the robots-check and sitemap; defaults to https://<domain>"
      },
      "domain": {
       "type": "string",
       "description": "Domain to check, e.g. example.com"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "related": [
    {
     "url": "https://freetier-agent-api.pages.dev/packs/wallet-safety",
     "slug": "wallet-safety",
     "title": "Wallet Safety Scan"
    }
   ]
  },
  "pack": "domain-health",
  "input": {
   "domain": "example.com"
  },
  "errors": [],
  "results": {},
  "summary": {
   "status": "ok"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-health-check-api-08d77a75/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
