Whois API
Whois API
Section titled “Whois API”Overview
Section titled “Overview”This API retrieves Whois information for a domain.
Error Responses
Section titled “Error Responses”- 500 Internal Server Error: An error occurred while fetching Whois data.
- 400 Bad Request: The
domainparameter was not specified. - 403 Forbidden: Whois information was requested for a restricted TLD:
.eduor.mil.
API Specification
Section titled “API Specification”- 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