WHOIS Domain Lookup API
FreemiumLook up who registered a domain, when it expires, its name servers and age. Clean JSON, no HTML parsing.
Documentation
Get the full WHOIS record for any domain as structured JSON: registrar, creation / update / expiry dates, status codes, name servers, DNSSEC and the registrant, admin and tech contacts exactly as the registry publishes them (most are redacted for privacy).
Use it to check if a domain is about to expire, how old a domain is before trusting it, which name servers it uses, or to enrich leads and fraud checks.
4 endpoints: full lookup, expiry check, name servers, and domain age. Results are cached for one hour.
Getting started
Send a GET request with a domain query parameter. Every response is JSON.
GET /v1/lookup?domain=github.com
Endpoints
/v1/lookup– the full record (addraw=truefor the original WHOIS text)/v1/expiry– expiry date and days remaining/v1/nameservers– name servers and DNSSEC state/v1/age– creation date and domain age
Good to know
- Pass a domain such as
apihiver.com. Full URLs are accepted; IP addresses are not. - Results are cached for one hour.
- Contact details are returned exactly as the registry publishes them. Most registrars now redact personal data, which shows as
REDACTED FOR PRIVACY. - Some extensions (for example
.co.uk) are not supported and returnTLD_NOT_SUPPORTED.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | Not a valid domain name |
| 404 | NOT_FOUND | Domain is not registered |
| 422 | TLD_NOT_SUPPORTED | Extension not supported |
| 502 | UPSTREAM_UNAVAILABLE | Source temporarily unavailable, retry shortly |
WHOIS Domain Lookup API FAQ
- Is the WHOIS Domain Lookup API free?
- Yes. The Basic plan is free and includes 600 requests per month — no card needed. Paid plans start at ₹199 per month for 20,000 requests.
- How much does the WHOIS Domain Lookup API cost?
- Basic: free for 600 requests; Pro: ₹199/month for 20,000 requests; Ultra: ₹699/month for 1,00,000 requests; Mega: ₹1,499/month for 3,00,000 requests. Billing is monthly and you can cancel any time.
- How do I use the WHOIS Domain Lookup API?
- Subscribe to a plan on APIHiver, create an API key in the Console, then send requests to https://whois-domain-lookup.p.apihiver.com with your key in the X-API-Key header. You can also try every endpoint in the browser playground first.
- What endpoints does the WHOIS Domain Lookup API have?
- It has 4 endpoints: Get the full WHOIS record of a domain (GET /v1/lookup); When does this domain expire? (GET /v1/expiry); Which name servers does this domain use? (GET /v1/nameservers); How old is this domain? (GET /v1/age).
- What are the WHOIS Domain Lookup API rate limits?
- Basic: 100000 requests per second; Pro: 100000 requests per second; Ultra: 100000 requests per second; Mega: 100000 requests per second. Monthly quotas depend on the plan; every response includes X-RateLimit headers showing what's left.
- Can I use one API key for the WHOIS Domain Lookup API and other APIs?
- Yes. One APIHiver key works for every API you subscribe to, so you don't need a separate account or key per provider.
Related APIs
Every country's capital, population, area, currency, calling code, languages, continent and neighbours — by code, name or currency.
Convert CSV ⇄ JSON, generate realistic fake test data (including Indian names and addresses), and create UUIDs in bulk.
Endpoints
4 endpoints — full list is in the sidebar on larger screens.