域名WHOIS查询

综合查询网址的ICP,Whois,DNS服务器信息,便捷工具https://wzapi.com/whios/

接口地址: https://wzapi.com/api/whios

返回格式: JSON

请求方式: GET

请求示例: https://wzapi.com/api/whios?domain=baidu.com

请求参数说明:

名称 必填 类型 说明
domain string 目标网站域名

返回参数说明:

名称 类型 说明

返回示例:

{
  "code": "200",
  "msg": "success",
  "data": {
    "domain": "wzapi.com",
    "whois_raw": "   Domain Name: WZAPI.COM\r\n   Registry Domain ID: 1977346185_DOMAIN_COM-VRSN\r\n   Registrar WHOIS Server: whois.dnspod.cn\r\n   Registrar URL: http://www.dnspod.cn\r\n   Updated Date: 2025-11-10T08:02:20Z\r\n   Creation Date: 2015-11-09T03:24:26Z\r\n   Registry Expiry Date: 2027-11-09T03:24:26Z\r\n   Registrar: DNSPod, Inc.\r\n   Registrar IANA ID: 1697\r\n   Registrar Abuse Contact Email: dnsabuse@tencent.com\r\n   Registrar Abuse Contact Phone: +86.4009100100\r\n   Domain Status: ok https://icann.org/epp#ok\r\n   Name Server: ISIDORE.DNSPOD.NET\r\n   Name Server: TWO.DNSPOD.NET\r\n   DNSSEC: unsigned\r\n   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/\r\n>>> Last update of whois database: 2025-11-26T15:47:15Z <<<\r\n\r\nFor more information on Whois status codes, please visit https://icann.org/epp\r\n\r\nNOTICE: The expiration date displayed in this record is the date the\r\nregistrar's sponsorship of the domain name registration in the registry is\r\ncurrently set to expire. This date does not necessarily reflect the expiration\r\ndate of the domain name registrant's agreement with the sponsoring\r\nregistrar.  Users may consult the sponsoring registrar's Whois database to\r\nview the registrar's reported date of expiration for this registration.\r\n\r\nTERMS OF USE: You are not authorized to access or query our Whois\r\ndatabase through the use of electronic processes that are high-volume and\r\nautomated except as reasonably necessary to register domain names or\r\nmodify existing registrations; the Data in VeriSign Global Registry\r\nServices' (\"VeriSign\") Whois database is provided by VeriSign for\r\ninformation purposes only, and to assist persons in obtaining information\r\nabout or related to a domain name registration record. VeriSign does not\r\nguarantee its accuracy. By submitting a Whois query, you agree to abide\r\nby the following terms of use: You agree that you may use this Data only\r\nfor lawful purposes and that under no circumstances will you use this Data\r\nto: (1) allow, enable, or otherwise support the transmission of mass\r\nunsolicited, commercial advertising or solicitations via e-mail, telephone,\r\nor facsimile; or (2) enable high volume, automated, electronic processes\r\nthat apply to VeriSign (or its computer systems). The compilation,\r\nrepackaging, dissemination or other use of this Data is expressly\r\nprohibited without the prior written consent of VeriSign. You agree not to\r\nuse electronic processes that are automated and high-volume to access or\r\nquery the Whois database except as reasonably necessary to register\r\ndomain names or modify existing registrations. VeriSign reserves the right\r\nto restrict your access to the Whois database in its sole discretion to ensure\r\noperational stability.  VeriSign may restrict or terminate your access to the\r\nWhois database for failure to abide by these terms of use. VeriSign\r\nreserves the right to modify these terms at any time.\r\n\r\nThe Registry database contains ONLY .COM, .NET, .EDU domains and\r\nRegistrars.\r\n",
    "whois_lines": [
      "Domain Name: WZAPI.COM",
      "Registry Domain ID: 1977346185_DOMAIN_COM-VRSN",
      "Registrar WHOIS Server: whois.dnspod.cn",
      "Registrar URL: http://www.dnspod.cn",
      "Updated Date: 2025-11-10T08:02:20Z",
      "Creation Date: 2015-11-09T03:24:26Z",
      "Registry Expiry Date: 2027-11-09T03:24:26Z",
      "Registrar: DNSPod, Inc.",
      "Registrar IANA ID: 1697",
      "Registrar Abuse Contact Email: dnsabuse@tencent.com",
      "Registrar Abuse Contact Phone: +86.4009100100",
      "Domain Status: ok https://icann.org/epp#ok",
      "Name Server: ISIDORE.DNSPOD.NET",
      "Name Server: TWO.DNSPOD.NET",
      "DNSSEC: unsigned",
      "URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/",
      ">>> Last update of whois database: 2025-11-26T15:47:15Z <<<",
      "For more information on Whois status codes, please visit https://icann.org/epp",
      "NOTICE: The expiration date displayed in this record is the date the",
      "registrar's sponsorship of the domain name registration in the registry is",
      "currently set to expire. This date does not necessarily reflect the expiration",
      "date of the domain name registrant's agreement with the sponsoring",
      "registrar.  Users may consult the sponsoring registrar's Whois database to",
      "view the registrar's reported date of expiration for this registration.",
      "TERMS OF USE: You are not authorized to access or query our Whois",
      "database through the use of electronic processes that are high-volume and",
      "automated except as reasonably necessary to register domain names or",
      "modify existing registrations; the Data in VeriSign Global Registry",
      "Services' (\"VeriSign\") Whois database is provided by VeriSign for",
      "information purposes only, and to assist persons in obtaining information",
      "about or related to a domain name registration record. VeriSign does not",
      "guarantee its accuracy. By submitting a Whois query, you agree to abide",
      "by the following terms of use: You agree that you may use this Data only",
      "for lawful purposes and that under no circumstances will you use this Data",
      "to: (1) allow, enable, or otherwise support the transmission of mass",
      "unsolicited, commercial advertising or solicitations via e-mail, telephone,",
      "or facsimile; or (2) enable high volume, automated, electronic processes",
      "that apply to VeriSign (or its computer systems). The compilation,",
      "repackaging, dissemination or other use of this Data is expressly",
      "prohibited without the prior written consent of VeriSign. You agree not to",
      "use electronic processes that are automated and high-volume to access or",
      "query the Whois database except as reasonably necessary to register",
      "domain names or modify existing registrations. VeriSign reserves the right",
      "to restrict your access to the Whois database in its sole discretion to ensure",
      "operational stability.  VeriSign may restrict or terminate your access to the",
      "Whois database for failure to abide by these terms of use. VeriSign",
      "reserves the right to modify these terms at any time.",
      "The Registry database contains ONLY .COM, .NET, .EDU domains and",
      "Registrars."
    ],
    "whois_parsed": {
      "domain_name": "WZAPI.COM",
      "registry_domain_id": "1977346185_DOMAIN_COM-VRSN",
      "registrar": "DNSPod, Inc.",
      "registrar_whois_server": "whois.dnspod.cn",
      "registrar_url": "http://www.dnspod.cn",
      "creation_date": "2015-11-09T03:24:26Z",
      "updated_date": "2025-11-10T08:02:20Z",
      "expiry_date": "2027-11-09T03:24:26Z",
      "name_servers": [
        "ISIDORE.DNSPOD.NET",
        "TWO.DNSPOD.NET"
      ],
      "domain_status": [
        "ok https://icann.org/epp#ok"
      ],
      "dnssec": "unsigned"
    },
    "time": "2025-11-26 23:47:28"
  }
}

请求参数设置:

参数名称 参数值


{
  "code": "200",
  "msg": "success",
  "data": {
    "domain": "wzapi.com",
    "whois_raw": "   Domain Name: WZAPI.COM\r\n   Registry Domain ID: 1977346185_DOMAIN_COM-VRSN\r\n   Registrar WHOIS Server: whois.dnspod.cn\r\n   Registrar URL: http://www.dnspod.cn\r\n   Updated Date: 2025-11-10T08:02:20Z\r\n   Creation Date: 2015-11-09T03:24:26Z\r\n   Registry Expiry Date: 2027-11-09T03:24:26Z\r\n   Registrar: DNSPod, Inc.\r\n   Registrar IANA ID: 1697\r\n   Registrar Abuse Contact Email: dnsabuse@tencent.com\r\n   Registrar Abuse Contact Phone: +86.4009100100\r\n   Domain Status: ok https://icann.org/epp#ok\r\n   Name Server: ISIDORE.DNSPOD.NET\r\n   Name Server: TWO.DNSPOD.NET\r\n   DNSSEC: unsigned\r\n   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/\r\n>>> Last update of whois database: 2025-11-26T15:47:15Z <<<\r\n\r\nFor more information on Whois status codes, please visit https://icann.org/epp\r\n\r\nNOTICE: The expiration date displayed in this record is the date the\r\nregistrar's sponsorship of the domain name registration in the registry is\r\ncurrently set to expire. This date does not necessarily reflect the expiration\r\ndate of the domain name registrant's agreement with the sponsoring\r\nregistrar.  Users may consult the sponsoring registrar's Whois database to\r\nview the registrar's reported date of expiration for this registration.\r\n\r\nTERMS OF USE: You are not authorized to access or query our Whois\r\ndatabase through the use of electronic processes that are high-volume and\r\nautomated except as reasonably necessary to register domain names or\r\nmodify existing registrations; the Data in VeriSign Global Registry\r\nServices' (\"VeriSign\") Whois database is provided by VeriSign for\r\ninformation purposes only, and to assist persons in obtaining information\r\nabout or related to a domain name registration record. VeriSign does not\r\nguarantee its accuracy. By submitting a Whois query, you agree to abide\r\nby the following terms of use: You agree that you may use this Data only\r\nfor lawful purposes and that under no circumstances will you use this Data\r\nto: (1) allow, enable, or otherwise support the transmission of mass\r\nunsolicited, commercial advertising or solicitations via e-mail, telephone,\r\nor facsimile; or (2) enable high volume, automated, electronic processes\r\nthat apply to VeriSign (or its computer systems). The compilation,\r\nrepackaging, dissemination or other use of this Data is expressly\r\nprohibited without the prior written consent of VeriSign. You agree not to\r\nuse electronic processes that are automated and high-volume to access or\r\nquery the Whois database except as reasonably necessary to register\r\ndomain names or modify existing registrations. VeriSign reserves the right\r\nto restrict your access to the Whois database in its sole discretion to ensure\r\noperational stability.  VeriSign may restrict or terminate your access to the\r\nWhois database for failure to abide by these terms of use. VeriSign\r\nreserves the right to modify these terms at any time.\r\n\r\nThe Registry database contains ONLY .COM, .NET, .EDU domains and\r\nRegistrars.\r\n",
    "whois_lines": [
      "Domain Name: WZAPI.COM",
      "Registry Domain ID: 1977346185_DOMAIN_COM-VRSN",
      "Registrar WHOIS Server: whois.dnspod.cn",
      "Registrar URL: http://www.dnspod.cn",
      "Updated Date: 2025-11-10T08:02:20Z",
      "Creation Date: 2015-11-09T03:24:26Z",
      "Registry Expiry Date: 2027-11-09T03:24:26Z",
      "Registrar: DNSPod, Inc.",
      "Registrar IANA ID: 1697",
      "Registrar Abuse Contact Email: dnsabuse@tencent.com",
      "Registrar Abuse Contact Phone: +86.4009100100",
      "Domain Status: ok https://icann.org/epp#ok",
      "Name Server: ISIDORE.DNSPOD.NET",
      "Name Server: TWO.DNSPOD.NET",
      "DNSSEC: unsigned",
      "URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/",
      ">>> Last update of whois database: 2025-11-26T15:47:15Z <<<",
      "For more information on Whois status codes, please visit https://icann.org/epp",
      "NOTICE: The expiration date displayed in this record is the date the",
      "registrar's sponsorship of the domain name registration in the registry is",
      "currently set to expire. This date does not necessarily reflect the expiration",
      "date of the domain name registrant's agreement with the sponsoring",
      "registrar.  Users may consult the sponsoring registrar's Whois database to",
      "view the registrar's reported date of expiration for this registration.",
      "TERMS OF USE: You are not authorized to access or query our Whois",
      "database through the use of electronic processes that are high-volume and",
      "automated except as reasonably necessary to register domain names or",
      "modify existing registrations; the Data in VeriSign Global Registry",
      "Services' (\"VeriSign\") Whois database is provided by VeriSign for",
      "information purposes only, and to assist persons in obtaining information",
      "about or related to a domain name registration record. VeriSign does not",
      "guarantee its accuracy. By submitting a Whois query, you agree to abide",
      "by the following terms of use: You agree that you may use this Data only",
      "for lawful purposes and that under no circumstances will you use this Data",
      "to: (1) allow, enable, or otherwise support the transmission of mass",
      "unsolicited, commercial advertising or solicitations via e-mail, telephone,",
      "or facsimile; or (2) enable high volume, automated, electronic processes",
      "that apply to VeriSign (or its computer systems). The compilation,",
      "repackaging, dissemination or other use of this Data is expressly",
      "prohibited without the prior written consent of VeriSign. You agree not to",
      "use electronic processes that are automated and high-volume to access or",
      "query the Whois database except as reasonably necessary to register",
      "domain names or modify existing registrations. VeriSign reserves the right",
      "to restrict your access to the Whois database in its sole discretion to ensure",
      "operational stability.  VeriSign may restrict or terminate your access to the",
      "Whois database for failure to abide by these terms of use. VeriSign",
      "reserves the right to modify these terms at any time.",
      "The Registry database contains ONLY .COM, .NET, .EDU domains and",
      "Registrars."
    ],
    "whois_parsed": {
      "domain_name": "WZAPI.COM",
      "registry_domain_id": "1977346185_DOMAIN_COM-VRSN",
      "registrar": "DNSPod, Inc.",
      "registrar_whois_server": "whois.dnspod.cn",
      "registrar_url": "http://www.dnspod.cn",
      "creation_date": "2015-11-09T03:24:26Z",
      "updated_date": "2025-11-10T08:02:20Z",
      "expiry_date": "2027-11-09T03:24:26Z",
      "name_servers": [
        "ISIDORE.DNSPOD.NET",
        "TWO.DNSPOD.NET"
      ],
      "domain_status": [
        "ok https://icann.org/epp#ok"
      ],
      "dnssec": "unsigned"
    },
    "time": "2025-11-26 23:47:28"
  }
}

错误码格式说明:

名称 类型 说明

代码示例:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>WHOIS查询接口 - 万站API免费接口调用平台 | API数据接口 聚合API 免费API</title>
<meta name="description" content="万站API提供免费WHOIS查询接口,支持域名WHOIS信息查询,API调用简单稳定。聚合API、API数据接口、免费API、免费数据接口一站式开放平台,助力开发者快速集成域名查询、IP查询等多种开放接口服务。">
<meta name="keywords" content="万站API, 提供免费接口调用平台, API, 聚合API, API数据接口, 免费API, 免费数据接口, API调用, OEAPI, WHOIS查询, 域名查询, wzapi">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-src/dist/css/layui.css" />
<style>
body { padding: 30px; background:#f5f5f5; }
.whois-container { max-width: 800px; margin: 0 auto; }
pre { white-space: pre-wrap; max-height: 320px; overflow: auto; }
</style>
</head>
<body>
<div class="whois-container">

<!-- 顶部卡片:只有标题 + 表单 -->
<div class="layui-card">
<div class="layui-card-header">
<span>WHOIS 查询</span>
</div>
<div class="layui-card-body">
<form class="layui-form" lay-filter="whoisForm" onsubmit="return false;">
<div class="layui-form-item">
<label class="layui-form-label">域名</label>
<div class="layui-input-inline" style="width: 260px;">
<input type="text" id="domain" name="domain" required lay-verify="required"
placeholder="例如:wzapi.com" autocomplete="off"
class="layui-input" value="wzapi.com">
</div>
<div class="layui-input-inline">
<button class="layui-btn" lay-submit lay-filter="queryWhois">
<i class="layui-icon layui-icon-search"></i> 查询
</button>
</div>
</div>

<div class="layui-form-item">
<div id="error" class="layui-text" style="color:#FF5722;"></div>
</div>
</form>
</div>
</div>

<!-- 结果展示卡片 -->
<div class="layui-card" style="margin-top:20px; display:none;" id="resultCard">
<div class="layui-card-header">查询结果</div>
<div class="layui-card-body">
<div class="layui-row layui-col-space10">
<div class="layui-col-md6">
<table class="layui-table" lay-size="sm">
<colgroup>
<col width="120"><col>
</colgroup>
<tbody>
<tr><td>域名</td><td id="r-domain"></td></tr>
<tr><td>注册商</td><td id="r-registrar"></td></tr>
<tr><td>创建时间</td><td id="r-created"></td></tr>
<tr><td>到期时间</td><td id="r-expiry"></td></tr>
<tr><td>DNS 服务器</td><td id="r-ns"></td></tr>
<tr><td>域名状态</td><td id="r-status"></td></tr>
<tr><td>查询时间</td><td id="r-time"></td></tr>
</tbody>
</table>
</div>
<div class="layui-col-md6">
<fieldset class="layui-elem-field">
<legend>WHOIS 原文</legend>
<div class="layui-field-box">
<pre id="r-raw"></pre>
</div>
</fieldset>
</div>
</div>
</div>
</div>

</div>

<script src="https://cdn.jsdelivr.net/npm/layui-src/dist/layui.js"></script>
<script>
const apiBase = 'https://wzapi.com/api/whios?domain=';

layui.use(['form', 'layer'], function () {
const form = layui.form;
const layer = layui.layer;

form.on('submit(queryWhois)', function (data) {
const domain = data.field.domain.trim();
const errorEl = document.getElementById('error');
const resultCard = document.getElementById('resultCard');
errorEl.textContent = '';
resultCard.style.display = 'none';

if (!domain) {
errorEl.textContent = '请输入要查询的域名';
return false;
}

errorEl.textContent = '查询中,请稍候...';

fetch(apiBase + encodeURIComponent(domain))
.then(res => res.json())
.then(json => {
if (json.code !== "200") {
throw new Error(json.msg || '查询失败');
}
const data = json.data || {};
const parsed = data.whois_parsed || {};
const lines = data.whois_lines || [];
const raw = data.whois_raw || '';

document.getElementById('r-domain').textContent = parsed.domain_name || data.domain || domain;
document.getElementById('r-registrar').textContent = parsed.registrar || '';
document.getElementById('r-created').textContent = parsed.creation_date || '';
document.getElementById('r-expiry').textContent = parsed.expiry_date || '';
document.getElementById('r-ns').textContent = (parsed.name_servers || []).join(',');
document.getElementById('r-status').textContent = (parsed.domain_status || []).join(',');
document.getElementById('r-time').textContent = data.time || '';
document.getElementById('r-raw').textContent = raw || lines.join('\n');

errorEl.textContent = '';
resultCard.style.display = 'block';
})
.catch(err => {
console.error(err);
errorEl.textContent = '查询失败:' + err.message;
layer.msg('查询失败', {icon: 5});
});

return false;
});
});
</script>
</body>
</html>
欢迎卡片