DEV Community

Alexey D
Alexey D

Posted on

Domain WHOIS API: Get Registration, Expiry and Ownership Data in One Call

A domain's WHOIS data tells you everything: who owns it, when it was registered, when it expires, which nameservers it uses, and what registrar manages it.

Problem: Most WHOIS tools require manual lookups, and bulk WHOIS from traditional providers costs hundreds per month.

Domain WHOIS Lookup API does it in one call. REST endpoint, free tier, instant results.

What it does

POST /whois

  • Registrar name
  • Creation date
  • Expiration date
  • Updated date
  • Days until expiry
  • Status flags
  • Nameservers (up to 4)
  • Country
  • Organization
  • IP address (resolved)
  • Is expired? (boolean)

Use cases

  • Domain monitoring — track when your competitors' domains are about to expire
  • SEO audits — check nameserver config for domains you're auditing
  • Threat intel — identify newly registered domains from a registrar
  • Bulk domain validation — verify ownership before outreach
  • WHOIS scraping — avoid rate limits from manual WHOIS servers

Quick example

import requests

url = "https://domain-whois-lookup.p.rapidapi.com/whois"
headers = {
    "X-RapidAPI-Key": "YOUR_KEY",
    "Content-Type": "application/json"
}
payload = {"domain": "github.com"}

r = requests.post(url, json=payload, headers=headers)
print(r.json())
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "domain": "github.com",
  "registrar": "MarkMonitor, Inc.",
  "creation_date": "2007-10-09T18:20:50+00:00",
  "expiration_date": "2026-10-09T18:20:50+00:00",
  "updated_date": "2024-09-07T09:16:32+00:00",
  "days_until_expiry": 158,
  "status": ["clientDeleteProhibited", "clientTransferProhibited"],
  "name_servers": ["ns1.github.com", "ns2.github.com", "ns3.github.com"],
  "country": "US",
  "org": "GitHub, Inc.",
  "ip_address": "140.82.112.4",
  "is_expired": false
}
Enter fullscreen mode Exit fullscreen mode

Real-world workflow

SEO agency scenario:

  1. Get client's competitor list (50 domains)
  2. Bulk WHOIS check: expiry dates, registrars, IP changes
  3. Identify expiring domains → opportunities for acquisition
  4. Track nameserver changes → detect migration before it goes live

Threat intel:

  1. Monitor newly registered domains (WHOIS creation date < 7 days)
  2. Cross-reference with your brand keywords
  3. Flag suspicious lookalike domains early

Pricing

Plan Price Rate limit
BASIC Free 50 req/hr
PRO $9.99/mo 1,000 req/hr
ULTRA $29.99/mo 10,000 req/hr

Try it

Domain WHOIS Lookup on RapidAPI

No credit card for free tier. Live in 30 seconds.


Built because WHOIS data is foundational for domain operations — why pay $0.50/lookup when you can get 50,000/month on a single subscription?

Top comments (0)