WHOIS Lookup

/api/whoislookup 1 credit(s) per call

Look up WHOIS registration data for any domain name including registrar, dates, and nameservers.

Overview

The WHOIS Lookup API queries domain registration data and returns registrar information, creation and expiration dates, nameservers, domain status, and registrant details. Supports all major TLDs with automatic WHOIS server routing.

Endpoint

POST /api/whoislookup
GET /api/whoislookup/lookup?domain=example.com

Request Parameters

Parameter Type Required Description
domain string Yes The domain name to look up (e.g. example.com)

Response Fields

The response is wrapped in a standard API envelope:

Field Type Description
success boolean true on success
data.domain string The queried domain name
data.registrar string Domain registrar name
data.createdDate datetime Domain registration date (ISO 8601)
data.updatedDate datetime Last update date (ISO 8601)
data.expirationDate datetime Domain expiration date (ISO 8601)
data.nameservers array List of nameserver hostnames
data.status array Domain status codes (e.g. clientDeleteProhibited)
data.registrantName string Registrant name (may be redacted for privacy)
data.registrantOrganization string Registrant organization (may be redacted for privacy)
data.registrantCountry string Registrant country code (may be redacted for privacy)
data.dnssec string DNSSEC status (e.g. signedDelegation)
data.rawText string Full raw WHOIS response text
data.queryTimeMs int Total query time in milliseconds

Example

Look up WHOIS data for a domain:

curl -X POST https://simplewebapis.com/api/whoislookup \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: swa_your_key" \
  -d '{"domain": "example.com"}'

The response is a JSON object (Content-Type: application/json).

Try it out

Use the Playground to test this API live.