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
