HTTP API

API

Versioned REST API for normalized WHOIS, RDAP, DNS and IP lookups. Partial provider failures return HTTP 200 with structured errors.

Base URL

https://whois.dc5.tech

Lookup

Primary endpoint. Query parameters handle IPv6 and URLs cleanly.

GET /api/v1/lookup?query=example.com
GET /api/v1/lookup?query=8.8.8.8
GET /api/v1/lookup?query=2001:4860:4860::8888&raw=true

Parameters

Specialized endpoints

GET /api/v1/domain?query=example.com
GET /api/v1/ip?query=8.8.8.8
GET /api/v1/dns?query=example.com
GET /api/v1/reverse?query=8.8.8.8
GET /api/v1/version
GET /healthz
GET /readyz
GET /openapi.yaml

curl

curl "https://whois.dc5.tech/api/v1/lookup?query=example.com"
curl "https://whois.dc5.tech/api/v1/lookup?query=8.8.8.8&raw=true"
curl "https://whois.dc5.tech/api/v1/dns?query=cloudflare.com"

Errors

{
  "error": {
    "code": "INVALID_QUERY",
    "message": "The supplied value is not a valid domain or IP address."
  }
}

Codes: INVALID_QUERY, QUERY_TOO_LONG, TYPE_MISMATCH, RATE_LIMITED (HTTP 429), NOT_READY, INTERNAL.

API v2

CIDR, ASN, Web3 names and 0x addresses (ENS primary names), plus local reputation and dataset status. /api/v1 is unchanged. GET /api/v2/datasets also lists which web3 resolvers are live.

GET /api/v2/lookup?query=example.com
GET /api/v2/lookup?query=8.8.8.0/24
GET /api/v2/lookup?query=AS15169
GET /api/v2/lookup?query=vitalik.eth
GET /api/v2/web3?query=vitalik.eth
GET /api/v2/reputation?query=evil.example
GET /api/v2/datasets

MCP for AI agents

A Model Context Protocol server (streamable HTTP, no sign-up) at https://whois.dc5.tech/mcp. Tools: lookup_target (domain, IP, CIDR, ASN, Web3 name or 0x address — a compact summary with a link to the full page), check_mail_security, lookup_many, get_tld_info, check_route, check_aspa_path, check_lookalike and list_data_sources. Same rate limit as the API. Setup for each client and tool details: MCP server.

# Claude Code
claude mcp add --transport http dc5-whois https://whois.dc5.tech/mcp

# Any MCP client (JSON config)
{ "mcpServers": { "dc5-whois": { "type": "http", "url": "https://whois.dc5.tech/mcp" } } }

Rate limiting

About 60 requests per minute per client IP, shared by the HTTP API and MCP. Over the limit the API answers HTTP 429 with RATE_LIMITED and a Retry-After header in seconds: wait that long and retry, and cache results on your side instead of repeating the same lookup.

Machine-readable spec: https://whois.dc5.tech/openapi.yaml. Web UI: https://whois.dc5.tech.