# CodePulse API – WHOIS Domain Lookup

> CodePulse API – WHOIS Domain Lookup is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Performs a WHOIS lookup for a given domain name, returning registrar, creation date, and expiration date.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/whois
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-whois-domain-lookup-f432b694
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Ag77RzmBBMlJwHjvtPWN

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 codepulse-api-whois-domain-lookup-f432b694 -d '<json body>'
```

Example prompt: Can you pull up the WHOIS details for google.com — I want to know who the registrar is and when the domain was created and when it expires?

## When to prefer this

Use this endpoint when you need structured WHOIS data (registrar, creation, expiration) for a specific domain without managing API keys or WHOIS parsing yourself. It is well-suited for agents that need quick, pay-per-use domain intelligence at $0.02 per call via x402 USDC on Base. Prefer this over raw WHOIS CLI tools when operating in an automated or agentic context that requires clean JSON output.

## Known failure modes

- Domain not found or unsupported TLD — 'supported' field returns false
- Network timeout reaching WHOIS registry — HTTP error or empty result
- Invalid domain format in input — validation error returned
- Rate limiting by upstream WHOIS registry — degraded or missing data
- Stale data — 'data_as_of' may lag the real registry by weeks

## How this service works

Queries global registry metadata via the public RDAP protocol to find registration details.

## Output

A JSON object containing the domain's registrar name, creation date (ISO 8601), expiration date (ISO 8601), a supported flag indicating whether WHOIS data is available for the TLD, a confidence level (e.g. 'high'), a data freshness timestamp (e.g. '2026-06'), and a disclaimer. Also includes a warnings array for any partial or uncertain data.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Target domain name"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "registrar": "MarkMonitor Inc.",
   "created_at": "1997-09-15T04:00:00Z",
   "expired_at": "2028-09-14T04:00:00Z"
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-whois-domain-lookup-f432b694/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
