/whois WHOIS / RDAP Domain Lookup
Registrar, key dates, status and nameservers for a domain — pulled from the public RDAP registry record, tidied for the terminal. Rate-limited and cached to be a good citizen.
curl curlhub.sh/whois/example.com
Usage
With curl
curl curlhub.sh/whois/example.com
curl "curlhub.sh/whois?domain=example.com"
With the CLI
curlhub whois/example.com
Structured output for scripts
curl -s curlhub.sh/whois/example.com -H 'Accept: application/json'
Output
curl curlhub.sh/whois/example.com
Domain: example.com
Registrar: ICANN-accredited registrar
Created: 1995-08-14T04:00:00Z
Updated: 2026-01-16T18:26:50Z
Expires: 2026-08-13T04:00:00Z
Nameservers: a.iana-servers.net, b.iana-servers.net
# Source: RDAP (public registry record).
Parameters
| Input | What it does |
|---|---|
/{domain} | The domain to look up, as a path segment (curlhub.sh/whois/example.com). |
?domain= | The domain as a query parameter, if you prefer. |
Accept: application/json | Return the parsed record as JSON. |
Recipes
Watch a domain’s expiry
curl -s curlhub.sh/whois/example.com | grep Expires
Confirm a registrar move
curlhub whois/example.com