DEV Community

Alexey D
Alexey D

Posted on

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

Most businesses and security teams need domain information — but WHOIS lookups are either slow, outdated, or behind paywalls.

I built Domain WHOIS API — instant access to registration data, expiry dates, nameservers, and IP addresses for any domain.

What it does

Single endpoint: POST /whois

Returns:

  • Registrar name
  • Creation date
  • Expiration date (+ days until expiry)
  • Last updated date
  • Domain status
  • Nameservers
  • Country
  • IP address

Quick start

Python

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

Use cases

  • Domain monitoring — track expiry dates
  • Brand protection — monitor competitors
  • Security — identify ownership and registrars
  • Lead research — extract contact info
  • Infrastructure mapping — discover nameservers

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

Domain WHOIS Lookup on RapidAPI

Free tier available. No credit card.

Top comments (0)