Skip to main content

1. Get an API key

Use an issued Pirehub API key with the scope required by the endpoint. A key starts with ph_live_ and is shown here only as a placeholder:
Keep the complete key on your server. Do not commit it, log it, include it in a URL, or expose it in browser code.

2. Send a lookup request

Send a POST request to the WHOIS endpoint. The API accepts a registrable domain, subdomain, or HTTP(S) URL and normalizes it before lookup.

3. Read the response

domain is the registrable root domain, while query_domain is the normalized hostname that you submitted. Optional registry fields may be null or absent.
An unregistered domain is still a successful lookup: the API returns HTTP 200 with data.registered set to false.

Next steps

Authentication

Learn about headers, scopes, and rate limits.

WHOIS guide

Learn about normalization, cache state, and fresh lookups.

DNS guide

Resolve normalized DNS records through supported resolvers.

Errors

Handle errors and retries safely.