Whois全域名查询 [新]

该 API 用于查询域名的 WHOIS 信息,支持国际域名和中国域名。

接口地址: https://api.ahfi.cn/api/whois

返回格式: JSON

请求方式: GET

请求示例: https://api.ahfi.cn/api/whois?domain=baidu.com

请求参数:

名称 必填 类型 说明
domain string 要查询的域名,如:example.com

返回参数:

名称 类型 说明
code int 状态码,200表示成功
msg string 响应信息
data object 对象
domain
string 查询域名
info object 对象
domain_name
string 域名
registrar object 对象
name
string 注册商名称
whois_server
string WHOIS服务器
url
string 注册商网址
iana_id
string 注册商IANA ID
abuse_contact_email
string 滥用举报邮箱
abuse_contact_phone
string 滥用举报电话
registrant object 对象
name
string 注册人姓名
email
string 注册人邮箱
dates object 对象
created
string 创建时间
updated
string 更新时间
expires
string 到期时间
status
string 域名状态列表
nameservers
string 域名服务器列表
dnssec
string DNSSEC状态
raw
string 原始WHOIS文本信息

返回示例:

{
    "code": 200,
    "msg": "获取成功",
    "data": {
        "domain": "example.com",
        "info": {
            "domain_name": "域名",
            "registrar": {
                "name": "注册商名称",
                "whois_server": "WHOIS服务器",
                "url": "注册商网址",
                "iana_id": "注册商IANA ID",
                "abuse_contact_email": "滥用举报邮箱",
                "abuse_contact_phone": "滥用举报电话"
            },
            "registrant": {
                "name": "注册人姓名",
                "email": "注册人邮箱"
            },
            "dates": {
                "created": "创建时间",
                "updated": "更新时间",
                "expires": "到期时间"
            },
            "status": [
                "域名状态列表"
            ],
            "nameservers": [
                "域名服务器列表"
            ],
            "dnssec": "DNSSEC状态"
        },
        "raw": "原始WHOIS文本信息"
    }
}