Whois
网站Whois查询
接口信息
接口状态: 正常
总调用: 12
请求方法: GET
需要登录
请求地址:
https://wsapi.top/API/whois.php
请求参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| apikey | string | 否 | |
| domain | string | 否 | 目标网站 |
| type | string | 否 | cn/en,键名对应中文,英文,默认cn |
在线测试
此处将显示接口返回结果...
返回示例:
{
"code": 200,
"msg": "查询成功",
"data": {
"域名": "baidu.cn",
"域名后缀": "cn",
"是否可注册": "否",
"查询时间": "2026-04-06 12:10:22",
"注册人": "北京百度网讯科技有限公司",
"注册邮箱": "eric@baidu.com",
"注册商": "互联网域名系统北京市工程研究中心有限公司",
"WHOIS服务器": "whois.cnnic.cn",
"创建时间": "2003-03-17 12:20:05",
"到期时间": "2029-03-17 12:48:36",
"注册时长(天)": 8420,
"剩余时长(天)": 1076,
"是否过期": "否",
"域名状态": [
"clientDeleteProhibited (注册商设置禁止删除)",
"clientTransferProhibited (注册商设置禁止转移)"
],
"DNS服务器": [
"ns1.baidu.cn",
"ns2.baidu.cn",
"ns3.baidu.cn",
"ns4.baidu.cn"
],
"IP地址": "220.181.7.203",
"国家": "中国",
"城市": "北京市",
"地区": "海淀区",
"IP运营商": "中国电信",
"IP归属地": "中国北京市海淀区"
}
}
调用示例
<?php
$url = 'https://wsapi.top/API/whois.php';
$params = ['apikey' => 'YOUR_VALUE', 'domain' => 'YOUR_VALUE', 'type' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://wsapi.top/API/whois.php"
params = {
'apikey': 'YOUR_VALUE',
'domain': 'YOUR_VALUE',
'type': 'YOUR_VALUE',}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://wsapi.top/API/whois.php');
const params = {
'apikey': 'YOUR_VALUE',
'domain': 'YOUR_VALUE',
'type': 'YOUR_VALUE',};
Object.keys(params).forEach(k => url.searchParams.append(k, params[k]));
fetch(url).then(r => r.text()).then(d => console.log(d));