cURL
curl "https://api.ruseo.cn/api/whois?domain=baidu.com&raw=true&parsed=true"
域名Whois查询,查询域名注册信息、注册商、注册日期、过期日期、DNS服务器、域名状态等。支持Referral跟随获取完整信息,返回原始数据+解析关键字段
https://api.ruseo.cn/api/whois
接口调用前需要确认的核心配置。
/api/whoiswhois必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
domain |
是 | string | 要查询的域名 | baidu.com |
raw |
否 | string | 是否返回原始Whois数据默认true | true |
parsed |
否 | string | 是否返回解析数据默认true | true |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/whois?domain=baidu.com&raw=true&parsed=true
curl "https://api.ruseo.cn/api/whois?domain=baidu.com&raw=true&parsed=true"
$url = 'https://api.ruseo.cn/api/whois?domain=baidu.com&raw=true&parsed=true';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/whois?domain=baidu.com&raw=true&parsed=true')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "whois",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
success |
boolean | 是否成功 | true |
domain |
string | 查询的域名 | baidu.com |
raw |
string | 原始Whois数据 | |
parsed |
object | 解析结果对象 | |
点击左侧“发送请求”查看结果...