Menu

1 / 2

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

DEV Community·Alexey D·6 months ago
#27WUECt6
#api#whois#domain#devtools#json
Reading 0:00
15s threshold

Domain WHOIS data is essential for many workflows: checking domain expiry before renewal, detecting ownership changes, finding nameservers, or monitoring competitor domains.

Most WHOIS lookups require command-line tools, manual queries, or expensive services. I built Domain WHOIS Lookup API — a simple REST endpoint that returns structured WHOIS data for any domain.

What it returns

Single POST request gives you:

Registrar — who registered the domain

Creation date — when the domain was registered

Expiry date — when it expires (with days-until-expiry counter)

Updated date — last update timestamp

Nameservers — DNS servers pointing to domain's host

Country — registrant country

IP address — resolved IP of the domain

Status codes — registration status (locked, active, etc)

Organization — registrant organization name

Quick start

Python

import requests

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

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.