New The MCP server is live: all 44 APIs in Claude, Cursor or any MCP client. Connect your agent

Comprehensive domain information retrieval for developers

Whois Lookup API

The Whois Lookup API provides developers with instant access to comprehensive domain registration information. Query any domain to retrieve registrant details, registrar information, domain dates, and nameservers in a structured JSON format.

Perfect for domain research, cybersecurity analysis, brand protection, and compliance verification. The API handles multiple TLD formats and provides consistent, reliable data from authoritative whois servers worldwide.

Free tier included, no credit card required. One key works across every API.

At a glance

Whois Lookup API

5 credits / call
Free calls / month
200
Domain TLDs
500+
Response Time
<2s
Data Accuracy
99.9%
Get your free API key

200 free calls on the free plan

Key features

  • Real-time whois data from authoritative servers
  • Support for 500+ domain extensions
  • Registrant and registrar information
  • Domain creation, expiration, and update dates
  • Nameserver and DNS information
  • Domain status and lock information
  • Structured JSON response format

Built for

  • Domain research and analysis
  • Cybersecurity threat intelligence
  • Brand protection monitoring
  • Compliance and due diligence
  • Domain portfolio management
  • Legal and trademark research
  • Website acquisition research
  • Domain expiration monitoring

MCP · for your agent

Hand the Whois API to your agent

Connect Claude, Cursor or any MCP client once, then ask in plain words. Your agent finds this API, reads its docs and makes the call: 5 credits per call, the same as REST, from your team's balance.

Investigate a lookalike domain

“Someone registered contoso-billing-help.com and is emailing our customers. How old is it, who's the registrar, and does it take mail?”

list_apis · get_api_docsfree

api_request GET /whois/v1/domain?domain=contoso-billing-help.com 5 cr

+ DNS Lookup API5 cr

Registration date, age, registrar and abuse contact, plus its mail servers, for a takedown.

Research a domain before buying

“We want to buy northwind-traders.ai. Who's the registrar, when does it expire, and is the site just a parked page?”

list_apis · get_api_docsfree

api_request GET /whois/v1/domain?domain=northwind-traders.ai 5 cr

+ Web Scraper API5 cr

Registrar, key dates and status, plus what the site shows today, to shape your offer.

Document an upstream IP

“Which registry and organization is 8.8.8.8 allocated to? I'm documenting the DNS resolvers in our network config.”

list_apis · get_api_docsfree

api_request GET /whois/v1/ip?ip=8.8.8.8 5 cr

The responsible registry, the organization and the network range for the address.

$ claude mcp add --transport http apicodex https://mcp.apicodex.io

Illustrative asks; the calls and prices are real. Claude, Cursor, VS Code and Windsurf setup: mcp.apicodex.io

Try it

Build the request for your data

Edit the parameters below and see the exact request and curl command you'd send. No key required to preview.

GET /whois/v1/domain
Open in Playground

Parameters

Request · HTTP
GET /whois/v1/domain?domain=example.com HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
Response · JSON 200 OK
{
"domain": "example.com",
"registrar": "Example Registrar Inc.",
"registrant_name": "Example Organization",
"registrant_email": "[email protected]",
"creation_date": "1995-08-14",
"expiration_date": "2025-08-13",
"updated_date": "2024-07-12",
"nameservers": [
  "ns1.example.com",
  "ns2.example.com"
],
"status": ["clientTransferProhibited"]
}

Documentation

Whois Lookup API Documentation

The Whois Lookup API provides comprehensive access to domain registration information from authoritative whois servers worldwide. Query any domain to retrieve registrant details, registrar information, domain dates, nameservers, and domain status in a structured JSON format.

Base URL

url
https://api.apicodex.io/whois

Authentication

Authenticate every request with your API key: send it in an X-Api-Key header, or pass it as an ?apikey= query parameter.

headers
{
"X-Api-Key": "YOUR_API_KEY"
}

Request and response

Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.

request · http
GET /whois/v1/domain?domain=example.com HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
response · json
{
"domain": "example.com",
"registrar": "Example Registrar Inc.",
"registrant_name": "Example Organization",
"registrant_email": "[email protected]",
"creation_date": "1995-08-14",
"expiration_date": "2025-08-13",
"updated_date": "2024-07-12",
"nameservers": [
  "ns1.example.com",
  "ns2.example.com"
],
"status": ["clientTransferProhibited"]
}

Code examples

JavaScript/Node.js
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://api.apicodex.io/whois/v1/domain',
  params: {domain: 'example.com'},
  headers: {
    'X-Api-Key': 'YOUR_API_KEY'
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}

Endpoints

GET /v1/domain

WHOIS record for a registrable domain: registrar, registrant (where published), key dates, nameservers and status codes. Subdomains and URLs are reduced to the registrable domain. Optional: source=auto|whois|rdap, raw=true.

/v1/domain?domain=example.com

GET /v1/ip

Network allocation record for an IPv4 or IPv6 address from the responsible regional registry (ARIN, RIPE, APNIC, LACNIC or AFRINIC). Optional: raw=true.

/v1/ip?ip=8.8.8.8

Pricing

Whois Lookup API Pricing

This API costs 5 credits per request. Credits are shared across every API on your plan.

Cost estimator

requests per month → cheapest plan that covers it

Estimate your monthly cost

Drag the slider to match your expected request volume. We'll recommend the cheapest plan that covers it.

10,000

Recommended plan

Starter

$29.99 /month

Credits used
Credits included
Cost per 1K requests
Choose Starter

Free

Free
1,000 credits · ~200 requests/mo · 2 rps
  • All APIs included
  • No credit card required
  • Full documentation and examples
  • MCP server for your AI agents
  • Up to 5 active API keys
Start for free

Starter

Popular
$29.99 /month
50,000 credits · ~10,000 requests/mo · 10 rps
  • All APIs included
  • Email support
  • Usage dashboard and analytics
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Starter

Pro

$99.99 /month
250,000 credits · ~50,000 requests/mo · 25 rps
  • All APIs included
  • Priority support
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Pro

Need a different plan?

Tell us about your API, volume, or support requirements.

Contact us

FAQ

Frequently asked questions

Ready to integrate Whois Lookup?