Skip to content

Whois API

This API retrieves Whois information for a domain.

  • GET /api/whois

    • Returns raw Whois text for the specified domain. Parameter: domain.
  • GET /api/whois/json

    • Returns parsed Whois information in JSON format. Parameter: domain.

Example:

https://whois-api.krnk.org/api/whois?domain=google.com
  • 500 Internal Server Error: An error occurred while fetching Whois data.
  • 400 Bad Request: The domain parameter was not specified.
  • 403 Forbidden: Attempt to retrieve restricted TLD Whois (e.g. .edu, .mil)