# Nightshift Labs Domain WHOIS Lookup

> Nightshift Labs Domain WHOIS Lookup is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-21).

Performs a WHOIS lookup for a given domain name and returns registration metadata including registrar, registration date, expiry, age, and DNSSEC status.

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/whois?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-domain-whois-lookup-8b20b496
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_58EzUQ0stc-QT0j0p8RXo

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 nightshift-labs-domain-whois-lookup-8b20b496
```

Example prompt: Can you do a WHOIS lookup on openai.com and tell me who registered it, when it was registered, when it expires, and how old it is?

## When to prefer this

Use this endpoint when you need structured WHOIS registration data for a specific domain in a pay-per-call, agent-friendly model (x402/USDC on Base). Prefer this over free WHOIS tools when you need programmatic, machine-readable output without scraping or rate-limit concerns from public WHOIS servers.

## Known failure modes

- Domain not found or unregistered — returns empty or error response
- Invalid domain format provided — may return validation error
- WHOIS data unavailable for certain TLDs or private registrations
- Network timeout or upstream WHOIS service unavailability
- Rate limiting if many calls are made in quick succession

## How this service works

Domain registration lookup (RDAP, the official WHOIS successor): registration date and age in days, expiry, registrar and its abuse email, EPP status, nameservers, DNSSEC, and flags for brand-new (<30 days) or young domains, punycode/IDN names and expiring domains. Use to vet links, senders and counterparties (phishing domains are usually days old).

## Output

A JSON object containing the domain name, registrar name, registrar abuse email, registration date (ISO 8601), expiry date (ISO 8601), domain age in days, DNSSEC status (boolean), and any flags associated with the domain registration.

## 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": {
      "domain": {
       "type": "string",
       "description": "domain or host name, e.g. github.com or www.github.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "flags": [],
  "dnssec": false,
  "domain": "github.com",
  "ageDays": 6967,
  "expires": "2028-10-09T18:20:50Z",
  "registrar": "MarkMonitor Inc.",
  "registered": "2007-10-09T18:20:50Z",
  "registrarAbuseEmail": "abusecomplaints@markmonitor.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-domain-whois-lookup-8b20b496/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
