whois 查詢 API
whois api查詢接口,免費、開源、穩定
官網地址: https://api.devopsclub.cn
開源地址: https://github.com/spdir/apiTools
接口地址: https://api.devopsclub.cn/api/whoisquery
接口文檔: https://api.devopsclub.cn/docs/whoisquery
請求示例
GET請求
https://api.devopsclub.cn/api/whoisquery?domain=devopsclub.cn&type=json
請求參數說明
| 字段名稱 | 類型 | 必填 | 說明 |
|---|---|---|---|
| domain | String | 是 | 域名 |
| type | String | 否 | whois數據返回類型(text 文本串/json json格式數據) |
返回示例
{
"code": 0,
"data": {
"data": {
"domainName": "devopsclub.cn",
"domainStatus": "ok",
"expirationTime": "2024-05-18 22:00:04",
"nameServer": [
"dns15.hichina.com",
"dns16.hichina.com"
],
"registrant": "馬智超",
"registrantContactEmail": "aery_mzc9123@163.com",
"registrantID": "al49ebxdhyhntmy",
"registrationTime": "2019-05-18 22:00:04",
"roid": "20190518s10001s12090676-cn",
"sponsoringRegistrar": "阿里雲計算有限公司(萬網)"
},
"status": 0
},
"msg": ""
}
返回參數說明
| 字段名稱 | 類型 | 說明 |
|---|---|---|
| status | Int | 域名查詢狀態(0 獲取到域名whois信息/1 域名解析失敗/2 域名未注冊/3 暫不支持此域名后綴查詢/4 域名查詢失敗/5 請求數據錯誤) |
| data | Map/String | 域名whois詳細數據 |
| msg | String | 消息 |
