查询域名注册信息
/whois/v1/domains/{domain}获取规范化域名的权威注册信息。已注册与确认未注册的域名均返回成功响应。 注册局未公开的可选字段可能省略;可通过 quality.warnings 查看缺失或遮蔽原因。
参数
| 参数 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
domain | path | string | 是 | 域名(支持Unicode和Punycode,不含协议或路径) |
成功响应200
{
"code": 0,
"data": {
"domain": {
"input": "example.com",
"queried": "example.com",
"unicode": "example.com"
},
"quality": {
"completeness": "partial",
"support_level": "standard",
"warnings": [
"CONTACT_REDACTED"
]
},
"record": {
"contacts": [
{
"address": {
"country": "US",
"locality": "Example City",
"postal_code": "12345",
"region": "Example Region",
"street": [
"123 Example Street"
]
},
"emails": [
"[email protected]"
],
"handle": "contact-example",
"name": "Example Contact",
"organization": "Example Organization",
"phones": [
"+1.2025550100"
],
"roles": [
"registrant"
]
}
],
"dates": {
"expires_at": "2027-01-01T00:00:00Z",
"registered_at": "2020-01-01T00:00:00Z",
"updated_at": "2026-10-20T00:00:00Z"
},
"handle": "EXAMPLE-123",
"nameservers": [
{
"ldh_name": "ns1.example.test",
"unicode_name": "ns1.example.test"
}
],
"notices": [
{
"description": [
"Example registry terms apply."
],
"links": [
"https://registry.example.test/terms"
],
"title": "Terms of use"
}
],
"redactions": [
{
"field": "contacts.emails",
"reason": "Contact details withheld by registry policy"
}
],
"registrar": {
"handle": "registrar-example",
"iana_id": "9999",
"name": "Example Registrar"
},
"secure_dns": {
"delegation_signed": true
},
"statuses": [
"active"
]
},
"registration": {
"registered": true
},
"source": {
"cache_expires_at": "2026-10-21T08:00:00Z",
"cache_hit": false,
"fetched_at": "2026-10-20T08:00:00Z",
"parser_version": "rdap-v1",
"protocol": "rdap",
"server": "https://rdap.example.test",
"source_version": "2026-10-20"
}
},
"error": ""
}根据已发布 Schema 生成的 JSON 结构示意,字段值仅为示例,并非实时结果。
data 中的字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
domain | object | 否 | 输入域名与规范化后的域名。 |
domain.input | string | 否 | 用户原始输入的域名。 |
domain.queried | string | 否 | 发送给权威服务查询的规范化可注册域名。 |
domain.unicode | string | 否 | 查询域名的 Unicode 形式。 |
quality | object | 否 | 记录完整度与稳定告警码。 |
quality.completeness | string | 否 | 公开注册记录的完整度。 可选值: ["complete","partial","minimal"] |
quality.support_level | string | 否 | 本次成功查询所使用的支持等级。 可选值: ["standard","verified"] |
quality.warnings | string[] | 否 | 表示信息不可用或被遮蔽的稳定告警码。 |
record | object | 否 | 公开的注册信息;部分字段可能省略。 |
record.contacts | object[] | 否 | 公开的联系记录;私密或不可用的字段会省略。 |
record.contacts[].address | object | 否 | 公开的邮寄地址;不可用时省略。 |
record.contacts[].address.country | string | 否 | 公开的国家代码;不可用时省略。 |
record.contacts[].address.locality | string | 否 | 城市或地区;不可用时省略。 |
record.contacts[].address.postal_code | string | 否 | 邮政编码;不可用时省略。 |
record.contacts[].address.region | string | 否 | 州或省级地区;不可用时省略。 |
record.contacts[].address.street | string[] | 否 | 公开的街道地址。 |
record.contacts[].emails | string[] | 否 | 公开的电子邮箱;空数组可能表示信息被遮蔽。 |
record.contacts[].handle | string | 否 | 联系人标识;不可用时省略。 |
record.contacts[].name | string | 否 | 公开的联系人姓名;不可用或被遮蔽时省略。 |
record.contacts[].organization | string | 否 | 公开的组织名称;不可用时省略。 |
record.contacts[].phones | string[] | 否 | 公开的电话号码;可能为空数组。 |
record.contacts[].roles | string[] | 否 | 此公开联系人的角色。 |
record.dates | object | 否 | 公开的域名生命周期时间;不可用时省略。 |
record.dates.expires_at | string | 否 | 到期时间;未公开时省略。 |
record.dates.registered_at | string | 否 | 注册时间;未公开时省略。 |
record.dates.updated_at | string | 否 | 最近更新时间;未公开时省略。 |
record.handle | string | 否 | 注册局记录标识;未公开时省略。 |
record.nameservers | object[] | 否 | 公开的权威域名服务器;可能为空数组。 |
record.nameservers[].ldh_name | string | 否 | ASCII 形式的域名服务器主机名。 |
record.nameservers[].unicode_name | string | 否 | Unicode 形式的域名服务器主机名;不可用时省略。 |
record.notices | object[] | 否 | 注册局提供的公告和备注。 |
record.notices[].description | string[] | 否 | 权威服务提供的公告正文。 |
record.notices[].links | string[] | 否 | 公告附带的链接。 |
record.notices[].title | string | 否 | 公开的公告标题。 |
record.redactions | object[] | 否 | 权威服务提供的信息遮蔽说明。 |
record.redactions[].field | string | 否 | 能够识别时提供的受影响响应字段。 |
record.redactions[].reason | string | 否 | 公开的注册信息遮蔽原因。 |
record.registrar | object | 否 | 注册商信息;未公开时省略。 |
record.registrar.handle | string | 否 | 注册商标识;不可用时省略。 |
record.registrar.iana_id | string | 否 | IANA 注册商编号;不可用时省略。 |
record.registrar.name | string | 否 | 公开的注册商名称。 |
record.secure_dns | object | 否 | DNSSEC 信息;未公开时省略。 |
record.secure_dns.delegation_signed | boolean | 否 | 注册局是否报告 DNS 委派已签名。 |
record.statuses | string[] | 否 | 公开的域名状态;空数组表示未公开状态信息。 |
registration | object | 否 | 权威服务确认的注册结论。 |
registration.registered | boolean | 否 | 权威服务是否确认域名已注册。 |
source | object | 否 | 权威数据来源与缓存新鲜度。 |
source.cache_expires_at | string | 否 | 此缓存结果到期的 UTC 时间。 |
source.cache_hit | boolean | 否 | 本次响应是否来自缓存。 |
source.fetched_at | string | 否 | 获取源数据时的 UTC 时间。 |
source.parser_version | string | 否 | 规范化解析器版本。 |
source.protocol | string | 否 | 获取注册信息时使用的协议。 可选值: ["rdap","whois"] |
source.server | string | 否 | 本次查询使用的公开权威服务器。 |
source.source_version | string | 否 | 已发布的数据源配置版本。 |