Skip to content

Whois API

This API retrieves Whois information for a domain.

  • 500 Internal Server Error: An error occurred while fetching Whois data.
  • 400 Bad Request: The domain parameter was not specified.
  • 403 Forbidden: Whois information was requested for a restricted TLD: .edu or .mil.
  • GET /api/whois
    • Retrieve Whois information for the specified domain.
    • Parameter: domain (the domain name to look up).
    • Response: Whois information in text format.

Example:

https://whois-api.krnk.org/api/whois?domain=google.com
  • GET /api/whois/json
    • Retrieve Whois information for the specified domain in JSON format.
    • Parameter: domain (the domain name to look up).
    • Response: Parsed Whois information in JSON format.

Example:

https://whois-api.krnk.org/api/whois/json?domain=google.com