/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.

GET plain HTTP ok no signupnothing stored
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

Parameters

InputWhat 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/jsonReturn 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