# Check an IP address end to end

> Who holds this address, who announces it, and is it burnt?

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/ip`

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/ip`** — $0.005 per call. RDAP registry record through the ARIN-to-RIR referral chain, plus the origin ASN from Team Cymru.
2. **`GET /v1/red/asn`** — $0.005 per call. The announcing network: holder, allocation, abuse contact and every prefix in the routing table right now.
3. **`GET /v1/red/dnsbl`** — $0.005 per call. Nine public blocklists at once, each re-checked against its own RFC 5782 test entry.

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/red/ip?ip=8.8.8.8
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "asn",
      "why": "...",
      "method": "GET",
      "route": "/v1/red/asn",
      "tool": "red_asn",
      "params": {
        "asn": "AS15169"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/red/asn?asn=AS15169",
      "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/email-check — the abuse contact of either record, checked before you write to it.

## 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.
