Whois API
Whois lookup API — registrar, creation date, expiry, nameservers, and registrant info for any domain. Domain research from $0.02/call.
Retrieve Whois records for any domain including registrar, creation date, expiration date, nameservers, and registrant information. Useful for domain research, brand protection, and competitive intelligence.
Try it live
Fill in the fields and hit Run to see a real response.
{
"ok": true,
"data": {
"domain": "example.com",
"registrar": "GoDaddy",
"createdDate": "1995-08-14",
"expiresDate": "2027-08-13",
"updatedDate": "2025-01-15",
"nameservers": [
"ns1.example.com",
"ns2.example.com"
],
"status": [
"clientTransferProhibited"
]
}
}Features
Each lookup returns the registrar plus createdDate, expiresDate, and updatedDate, so you can compute domain age and flag domains nearing expiry.
The nameservers array lists the domain's NS records, useful for verifying hosting setups and detecting shared infrastructure across domains.
Registrant details are returned where the registry exposes them and privacy protection is off, supporting due-diligence and ownership research.
EPP status codes like clientTransferProhibited and DNSSEC state are included, so you can check transfer locks and security posture programmatically.
Use cases
Domain Research
Check domain age, registrar history, and expiration dates when evaluating domains for acquisition or competitive analysis.
Brand Protection
Monitor Whois records for domains similar to your brand to detect cybersquatting and trademark infringement early.
Quick start
Copy this snippet and start making calls.
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": "example.com"
}),
});
const data = await res.json();
console.log(data);The Whois API for developers — registrar, dates, nameservers & status as clean JSON
The Whois API returns registration records for any domain — registrar, creation and expiry dates, nameservers, status codes, and registrant data where available — as structured JSON. No parsing of inconsistent raw Whois text from dozens of registries.
It is the registration-data tool in YepAPI's domain suite. Combine it with the Domain Technologies and Domain Availability endpoints — one key — to research ownership, stack, and registrability of a domain in a single workflow.
What is a Whois API?
A Whois API returns a domain's registration record as normalized data instead of the free-form text each registry emits. For a domain you get the registrar, createdDate, expiresDate, updatedDate, a nameservers array, and status codes like clientTransferProhibited, plus registrant info when it is public. The value is consistency: every registry formats raw Whois differently, and this endpoint hands you uniform fields. YepAPI serves it at /v1/seo/domain/whois: post a domain and receive the parsed record as JSON, ready to compute age, check locks, or monitor expiry.
Build your own domain research tool
Build a domain-age checker that subtracts createdDate from today to grade a domain's history during SEO or acquisition due diligence. Build an expiry monitor that watches expiresDate across a portfolio and alerts before renewals lapse. Use the nameservers array to detect when domains share infrastructure, or the status codes to confirm a domain is transfer-locked. Because the fields are uniform across registries, your logic works the same for a .com and a .io. Pair with the Domain Availability API to research and register in one flow.
Whois API pricing — $0.02/call
Each Whois lookup is a flat $0.02 with no row add-on. Monitoring a portfolio of 100 domains weekly costs about $8 a month. Dedicated Whois data vendors run $99/mo plans plus per-call fees; here it is two cents per lookup with no subscription, cheap enough to run brand-protection sweeps across hundreds of look-alike domains without watching a quota.
Brand protection monitoring at scale
Generate the typo and look-alike variants of your brand domain and run them through Whois in a batch to detect cybersquatting early. A recently created domain mimicking your brand, with a registrant or registrar you do not recognize, is a signal to act before it is weaponized. The createdDate flags fresh registrations and the status codes show whether a squatted domain is locked. At two cents a check, sweeping a wide net of variants on a schedule stays affordable.
Try the Whois API free
Get started with $5 of free credit and no credit card — enough for hundreds of lookups. Run it on domains whose details you know to confirm the date and status fields parse correctly, then wire the uniform record into your monitoring or research tool before you spend anything.
Start making API calls in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Retrieve Whois records for any domain including registrar, creation date, expiration date, nameservers, and registrant information. Useful for domain research, brand protection, and competitive intelligence.
Each API call costs $0.02. No monthly minimums or subscriptions — you only pay for what you use.
Sign up for a free API key, then send a POST request to /v1/seo/domain/whois. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.
YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.
Ready to integrate?
Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.
More seo apis endpoints
Keywords
$0.15Keyword research API with search volume, CPC, difficulty, competition, and 12-month trends. Up to 100 keywords per request from $0.15/call.
Keyword Ideas
$0.02Generate hundreds of keyword ideas from any seed keyword with volume, CPC, and difficulty scores. Content planning and topic expansion from $0.03/call.
Related Keywords
$0.02Discover semantically related keywords and variations with volume, CPC, and difficulty. Build topical authority from $0.03/call.