Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Two credit pools: WHOIS credits (WHOIS API) and Domain Research Suite credits (history, reverse WHOIS, subdomains and more). A free account gets 500 of each kind; account.balance shows what is left.
- Rate limits: the WHOIS API allows 200 requests per second; DNS, history, reverse WHOIS and subdomains 30. Over it is a 429 (Retry-After on the WHOIS API).
- A new key takes up to a minute to activate.
Endpoints
Get WHOIS or RDAP for a domain, IP or email
- Costs 1 WHOIS credit (preferFresh=1 too); a fresh lookup, _hardRefresh=1 or maxCacheAgeHours 0 to 47, costs 5 credits.
- The default output is XML: pass outputFormat=JSON.
- WhoisXML recommends a 100-second request timeout, longer than call_vendor’s 60 seconds, so a slow live lookup can time out here; _dbOnly=1 answers from the cache only.
Get a domain’s WHOIS history
- Costs 1 DRS credit in mode=preview (the default: the record count only) and 50 DRS credits in mode=purchase (the records): call preview first. The live lookup for the latest record (skipLiveWhois=0, the default) has no separate documented price.
Find domains by WHOIS terms
- Free in mode=preview (the default: the count only); mode=purchase costs 1 DRS credit for up to 10,000 domains: size a search with preview first.
- A read over POST: the search terms go in a JSON body.
Look up DNS records
- The default output is XML: pass outputFormat=JSON.