Whois API
Whois API
Section titled “Whois API”此 API 用于获取域名的 Whois 信息。
-
Status Code: 500 Internal Server Error
- 获取 Whois 数据时发生错误
-
Status Code: 400 Bad Request
- 未指定域名参数
-
Status Code: 403 Forbidden
- 尝试获取受限 TLD 的 Whois 信息
适用 TLD: .edu .mil
- 尝试获取受限 TLD 的 Whois 信息
API 规范
Section titled “API 规范”此 API 提供以下端点。
- GET /api/whois
- 获取指定域名的 Whois 信息。
- 参数:
domain(要查询的域名) - 响应:文本格式的 Whois 信息
示例: https://whois-api.krnk.org/api/whois?domain=google.com
- GET /api/whois/json
- 以 JSON 格式获取指定域名的 Whois 信息。
- 参数:
domain(要查询的域名) - 响应:解析为 JSON 格式的 Whois 信息
示例: https://whois-api.krnk.org/api/whois/json?domain=google.com
