YepAPI
Domain Analysis

WHOIS Lookup

Get WHOIS registration data for any domain — registrar, dates, nameservers.

POST/v1/seo/domain/whois
$0.02/call

Usage

const res = await fetch('https://api.yepapi.com/v1/seo/domain/whois', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ domain: 'vercel.com' }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/seo/domain/whois \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "vercel.com"}'

Request Body

ParameterTypeRequiredDescriptionDefault
domainstringYesDomain to look up (without protocol)

Response

{
  "ok": true,
  "data": {
    "domain": "youtube.com",
    "registrar": "MarkMonitor Inc.",
    "createdDate": "",
    "updatedDate": "",
    "expiryDate": "",
    "nameServers": []
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.domainstringThe domain that was looked up
data.registrarstringThe domain registrar company
data.createdDatestringDomain registration creation date (ISO format, empty if unavailable)
data.updatedDatestringDate the WHOIS record was last updated (empty if unavailable)
data.expiryDatestringDomain expiration date (empty if unavailable)
data.nameServersstring[]List of authoritative nameservers for the domain
Under the Hood

Real-time WHOIS data.

On this page