域名WHOIS查询API
本接口总调用:0次·今日调用:0次

接口地址: https://api.suyanw.cn/api/whois.php

返回格式: Json

请求方式: GET

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

请求参数说明:

名称 必填 类型 说明
domain string 域名

返回参数说明:

名称 类型 说明
code integer 返回的状态码
data object 返回的数据/数据对象
msg string 返回的消息
time string 请求时间
domain string 域名
domain_age string 域名年龄
registrar string 注册商
whois_server string WHOIS服务器
updated_date string 更新时间
creation_date string 创建时间
expiration_date string 过期时间
registrar_id string 注册商ID
status array 域名状态列表
name_servers array DNS服务器列表
dnssec string DNSSEC配置状态

返回示例:

{"code": 200, "msg": "请求成功!", "time": "2025-09-17 20:25:26", "api_source": "API官网:api.suyanw.cn", "data": {"domain": "baidu.com", "domain_age": "26 years", "registrar": "MarkMonitor Information Technology (Shanghai) Co., Ltd.", "whois_server": "whois.markmonitor.com", "updated_date": "2025-04-08 08:48:16", "creation_date": "1999-10-11 19:05:17", "expiration_date": "2028-10-11 19:05:17", "status": ["clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited", "clientTransferProhibited https://icann.org/epp#clientTransferProhibited", "clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited", "serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited", "serverTransferProhibited https://icann.org/epp#serverTransferProhibited", "serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited", "clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)", "clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)", "clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)", "serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)", "serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)", "serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)"], "name_servers": ["ns1.baidu.com", "ns2.baidu.com", "ns3.baidu.com", "ns4.baidu.com", "ns7.baidu.com"], "dnssec": "not configured"}, "cached_time": "2025-09-17 20:25:26"}

错误码格式说明:

名称 类型 说明
200 string 返回的状态码(成功)
500 string 返回的状态码(失败)

代码示例: