Next Whois provides a simple REST API for WHOIS/RDAP lookups and OG images. Set the server environment variable API_KEY to require Bearer authentication. In the UI, use the API key button in the navigation bar; the key is stored locally in your browser.
Query WHOIS/RDAP information for a domain, IP address, ASN, or CIDR range. RDAP and WHOIS are queried in parallel; structured fields prefer RDAP data, falling back to WHOIS. Both raw responses are included.
Parameters
Example Request
Success Response
Error Response
Generate a dynamic Open Graph image with WHOIS details. Internally queries /api/lookup and renders a card-style summary. Returns a PNG image.
Parameters
Example Request
Preview
Loading…
/api/og?query=google.com
When API_KEY is set, every API request requires Authorization: Bearer <key>. Missing or invalid keys return HTTP 401 with Error 401. Protected responses use private, no-store; server-side Redis caching can still be used. Without API_KEY, the API remains public and lookup responses allow shared caching.
Next Whois v1.6 · GitHub