Whois API
Whois API
Section titled “Whois API”Overview
Section titled “Overview”This API retrieves Whois information for a domain.
Endpoints
Section titled “Endpoints”-
GET /api/whois
- Returns raw Whois text for the specified domain. Parameter:
domain.
- Returns raw Whois text for the specified domain. Parameter:
-
GET /api/whois/json
- Returns parsed Whois information in JSON format. Parameter:
domain.
- Returns parsed Whois information in JSON format. Parameter:
Example:
https://whois-api.krnk.org/api/whois?domain=google.comError 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: Attempt to retrieve restricted TLD Whois (e.g. .edu, .mil)