# Check a domain end to end

> Is this domain real, who owns it, does it work, and what does it serve?

Each call is paid per use in USDC over x402. No API key and no account: call it, get a 402 with the challenge in the `PAYMENT-REQUIRED` header, pay it and repeat the call.

**Every answer in this chain carries a `next` array with the following calls already built** — route, method, the parameters filled in from what was just found, the price and a full url you can fetch as it is. You do not have to work out the next step; follow `next`.

## The calls, starting at `GET /v1/red/whois`

The numbering is the usual path, not a fixed order: what you actually get offered depends on what each answer finds. A call is only suggested when the data to make it is there, so a suggestion never sends you into a dead end.

1. **`GET /v1/red/whois`** — $0.005 per call. Registration from the registry own RDAP service: age, expiry, registrar, EPP status, nameservers, DNSSEC, abuse contact.
2. **`GET /v1/red/domain-check`** — $0.005 per call. What DNS holds right now: A/AAAA, nameservers, MX, SPF, DMARC, DNSSEC and the parked heuristic.
3. **`GET /v1/red/cert`** — $0.005 per call. Every TLS certificate issued for it in the Certificate Transparency logs: issuer, days to expiry, revocation and every hostname covered — subdomains included on request.
4. **`GET /v1/web/status`** — $0.005 per call. Whether anything is served: status, the full redirect chain hop by hop, final scheme and security headers.
5. **`GET /v1/web/read`** — $0.0025 per call. The page itself as markdown, stripped of boilerplate, with title, language, canonical url and word count.

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/red/whois?domain=example.com
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "dns",
      "why": "...",
      "method": "GET",
      "route": "/v1/red/domain-check",
      "tool": "red_domain_check",
      "params": {
        "domain": "example.com"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/red/domain-check?domain=example.com",
      "price": "$0.005"
    }
  ]
}
```

Fetch that `url`, pay its 402, and the answer will carry its own `next`. Follow it until `next` comes back empty.

## Where this chain leads out

- /v1/red/ip — the address it resolves to has its own chain; and /v1/red/email-check, offered on the registry abuse contact when the registry publishes one.

## The same thing over MCP

Every route here is also an MCP tool at `POST https://flat-rate-llm.kikoribera03.workers.dev/mcp` — the `tool` field of each `next` entry is its name, and `params` goes straight into `arguments`. `tools/list` and the `catalog` tool are free.
