← 返回 API 目录
域名价格
域名按后缀查询本站的标准域名展示价格。
GET https://api.wanmi.net/open/v1/domain-pricing每天 100 次免费,超出 ¥0.01/次 · 同一账号多个 key 共用
用多少付多少。云工具 API 无免费次数,创建时预留余额,成功交付才结算(异步 PDF 在领取时结算);失败释放或补偿。主动开通按量付费后,免费次数用完按接口单价从钱包扣费;余额不足或每日扣费上限已到时拒绝,不欠费。仅成功交付收费,符合接口契约的降级成功照常收费;失败和未交付不收费。每次扣费及补偿可在控制台账单查看,单价以各接口当前配置及调用准入快照为准。
1~10 个后缀的标准域名展示价,显式使用 display_snapshot。金额为整数人民币分,不构成交易报价;不提供溢价域名价格。stale 保留历史价格与时间,purchaseEligible 始终 false。
返回示例
{
"state": "ready",
"data": {
"priceClass": "standard",
"tlds": [
"com",
"net"
],
"items": [
{
"tld": "com",
"status": "priced",
"cache": {
"status": "hit"
},
"dataSource": "展示价快照",
"observedAt": "2026-10-22T00:00:00.000Z",
"purchaseEligible": false,
"purchaseBlockCode": "PURCHASE_NOT_IMPLEMENTED",
"currency": "CNY",
"markupConfigured": true,
"minimumRegistrationYears": 1,
"priceClass": "standard",
"calculationFormula": "registration_price_plus_annual_renewal_price",
"registrationPriceFen": 8000,
"renewalPriceFen": 9000,
"oneYearTotalFen": 8000,
"threeYearTotalFen": 26000,
"snapshotRef": "00000000-0000-4000-8000-000000000001"
},
{
"tld": "net",
"status": "priced",
"cache": {
"status": "hit"
},
"dataSource": "展示价快照",
"observedAt": "2026-10-22T00:00:00.000Z",
"purchaseEligible": false,
"purchaseBlockCode": "PURCHASE_NOT_IMPLEMENTED",
"currency": "CNY",
"markupConfigured": true,
"minimumRegistrationYears": 1,
"priceClass": "standard",
"calculationFormula": "registration_price_plus_annual_renewal_price",
"registrationPriceFen": 8000,
"renewalPriceFen": 9000,
"oneYearTotalFen": 8000,
"threeYearTotalFen": 26000,
"snapshotRef": "00000000-0000-4000-8000-000000000001"
}
]
}
}在线试调
粘贴你自己的 key,浏览器会直接向 api.wanmi.net 发送请求。key 仅在当前页面内存中使用,不保存、不上传主站。成功调用会计入免费次数;已开通按量付费时,超出免费次数会按接口单价扣余额。
响应点击“发送请求”查看真实返回
等待请求
代码示例
curl --max-time 95 'https://api.wanmi.net/open/v1/domain-pricing?tlds=com%2Cnet' \ -H "Authorization: Bearer $WANMI_API_KEY"
将 WANMI_API_KEY 设为环境变量。请在自己的服务器中运行,勿将 key 放进公开代码。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
tlds | string | 必填 | 1~10 个后缀;仅标准域名展示价,不查询溢价域名价格;最短 1 字符;最长 2549 字符;格式 ^[^,\s]{1,253}(?:\s*,\s*[^,\s]{1,253}){0,9}$ 例如: com,net |
返回字段与完整结构
| 字段 | 类型 | 必返 | 说明 |
|---|---|---|---|
state | ready | empty | degraded | 是 | — |
data | object | 是 | — |
data.items | object | object | object | object | object[] | 是 | — |
data.items.[]providerNotices | icp_filing_unavailable | local_presence_required | premium_unsupported | purchase_unavailable[] | 否 | — |
data.items.[]cache | object | 是 | — |
data.items.[]dataSource | string | 是 | 最短 1 字符 |
data.items.[]observedAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseEligible | false | 是 | — |
data.items.[]tld | string | 是 | 最短 1 字符;最长 253 字符 |
data.items.[]calculationFormula | registration_price_plus_annual_renewal_price | 是 | — |
data.items.[]currency | CNY | 是 | — |
data.items.[]markupConfigured | true | 是 | — |
data.items.[]minimumRegistrationYears | integer | 是 | 最小 1;最大 10 |
data.items.[]oneYearTotalFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]priceClass | standard | 是 | — |
data.items.[]registrationPriceFen | integer | 是 | 最小 0;最大 9007199254740991 |
data.items.[]renewalPriceFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]snapshotRef | string | 是 | uuid;格式 ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ |
data.items.[]threeYearTotalFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]purchaseBlockCode | PURCHASE_NOT_IMPLEMENTED | 是 | — |
data.items.[]status | priced | 是 | — |
data.items.[]providerNotices | icp_filing_unavailable | local_presence_required | premium_unsupported | purchase_unavailable[] | 否 | — |
data.items.[]cache | object | 是 | — |
data.items.[]dataSource | string | 是 | 最短 1 字符 |
data.items.[]observedAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseEligible | false | 是 | — |
data.items.[]tld | string | 是 | 最短 1 字符;最长 253 字符 |
data.items.[]calculationFormula | registration_price_plus_annual_renewal_price | 是 | — |
data.items.[]currency | CNY | 是 | — |
data.items.[]markupConfigured | true | 是 | — |
data.items.[]minimumRegistrationYears | integer | 是 | 最小 1;最大 10 |
data.items.[]oneYearTotalFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]priceClass | standard | 是 | — |
data.items.[]registrationPriceFen | integer | 是 | 最小 0;最大 9007199254740991 |
data.items.[]renewalPriceFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]snapshotRef | string | 是 | uuid;格式 ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ |
data.items.[]threeYearTotalFen | integer | 否 | 最小 0;最大 9007199254740991 |
data.items.[]lastSuccessfulAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseBlockCode | PRICE_STALE | 是 | — |
data.items.[]status | stale | 是 | — |
data.items.[]providerNotices | icp_filing_unavailable | local_presence_required | premium_unsupported | purchase_unavailable[] | 否 | — |
data.items.[]cache | object | 是 | — |
data.items.[]dataSource | string | 是 | 最短 1 字符 |
data.items.[]observedAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseEligible | false | 是 | — |
data.items.[]tld | string | 是 | 最短 1 字符;最长 253 字符 |
data.items.[]markupConfigured | false | 是 | — |
data.items.[]purchaseBlockCode | PRICE_RULE_UNCONFIGURED | 是 | — |
data.items.[]status | unconfigured | 是 | — |
data.items.[]providerNotices | icp_filing_unavailable | local_presence_required | premium_unsupported | purchase_unavailable[] | 否 | — |
data.items.[]cache | object | 是 | — |
data.items.[]dataSource | string | 是 | 最短 1 字符 |
data.items.[]observedAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseEligible | false | 是 | — |
data.items.[]tld | string | 是 | 最短 1 字符;最长 253 字符 |
data.items.[]purchaseBlockCode | TLD_UNSUPPORTED | PRICE_NOT_OFFERED | 是 | — |
data.items.[]status | unsupported | 是 | — |
data.items.[]providerNotices | icp_filing_unavailable | local_presence_required | premium_unsupported | purchase_unavailable[] | 否 | — |
data.items.[]cache | object | 是 | — |
data.items.[]dataSource | string | 是 | 最短 1 字符 |
data.items.[]observedAt | string | 是 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
data.items.[]purchaseEligible | false | 是 | — |
data.items.[]tld | string | 是 | 最短 1 字符;最长 253 字符 |
data.items.[]problem | object | 是 | — |
data.items.[]purchaseBlockCode | PRICE_QUERY_FAILED | 是 | — |
data.items.[]status | query_failed | 是 | — |
data.priceClass | standard | 是 | — |
data.tlds | string[] | 是 | — |
meta | object | 否 | — |
meta.cacheStatus | hit | miss | mixed | not_used | 否 | — |
meta.dataSource | string | 否 | 最短 1 字符 |
meta.lastSuccessfulAt | string | 否 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
meta.observedAt | string | 否 | date-time;格式 ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$ |
meta.stale | boolean | 否 | — |
meta.traceId | string | 否 | 格式 ^[a-zA-Z0-9._:-]{8,128}$ |
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"ready",
"empty",
"degraded"
]
},
"data": {
"type": "object",
"properties": {
"items": {
"maxItems": 10,
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"providerNotices": {
"type": "array",
"items": {
"type": "string",
"enum": [
"icp_filing_unavailable",
"local_presence_required",
"premium_unsupported",
"purchase_unavailable"
]
}
},
"cache": {
"type": "object",
"properties": {
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"status": {
"type": "string",
"enum": [
"hit",
"miss",
"not_used"
]
}
},
"required": [
"status"
],
"additionalProperties": false
},
"dataSource": {
"type": "string",
"minLength": 1
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseEligible": {
"type": "boolean",
"const": false
},
"tld": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"calculationFormula": {
"type": "string",
"const": "registration_price_plus_annual_renewal_price"
},
"currency": {
"type": "string",
"const": "CNY"
},
"markupConfigured": {
"type": "boolean",
"const": true
},
"minimumRegistrationYears": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"oneYearTotalFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"priceClass": {
"type": "string",
"const": "standard"
},
"registrationPriceFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"renewalPriceFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"snapshotRef": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"threeYearTotalFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"purchaseBlockCode": {
"type": "string",
"const": "PURCHASE_NOT_IMPLEMENTED"
},
"status": {
"type": "string",
"const": "priced"
}
},
"required": [
"cache",
"dataSource",
"observedAt",
"purchaseEligible",
"tld",
"calculationFormula",
"currency",
"markupConfigured",
"minimumRegistrationYears",
"priceClass",
"registrationPriceFen",
"snapshotRef",
"purchaseBlockCode",
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"providerNotices": {
"type": "array",
"items": {
"type": "string",
"enum": [
"icp_filing_unavailable",
"local_presence_required",
"premium_unsupported",
"purchase_unavailable"
]
}
},
"cache": {
"type": "object",
"properties": {
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"status": {
"type": "string",
"enum": [
"hit",
"miss",
"not_used"
]
}
},
"required": [
"status"
],
"additionalProperties": false
},
"dataSource": {
"type": "string",
"minLength": 1
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseEligible": {
"type": "boolean",
"const": false
},
"tld": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"calculationFormula": {
"type": "string",
"const": "registration_price_plus_annual_renewal_price"
},
"currency": {
"type": "string",
"const": "CNY"
},
"markupConfigured": {
"type": "boolean",
"const": true
},
"minimumRegistrationYears": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"oneYearTotalFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"priceClass": {
"type": "string",
"const": "standard"
},
"registrationPriceFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"renewalPriceFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"snapshotRef": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"threeYearTotalFen": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"lastSuccessfulAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseBlockCode": {
"type": "string",
"const": "PRICE_STALE"
},
"status": {
"type": "string",
"const": "stale"
}
},
"required": [
"cache",
"dataSource",
"observedAt",
"purchaseEligible",
"tld",
"calculationFormula",
"currency",
"markupConfigured",
"minimumRegistrationYears",
"priceClass",
"registrationPriceFen",
"snapshotRef",
"lastSuccessfulAt",
"purchaseBlockCode",
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"providerNotices": {
"type": "array",
"items": {
"type": "string",
"enum": [
"icp_filing_unavailable",
"local_presence_required",
"premium_unsupported",
"purchase_unavailable"
]
}
},
"cache": {
"type": "object",
"properties": {
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"status": {
"type": "string",
"enum": [
"hit",
"miss",
"not_used"
]
}
},
"required": [
"status"
],
"additionalProperties": false
},
"dataSource": {
"type": "string",
"minLength": 1
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseEligible": {
"type": "boolean",
"const": false
},
"tld": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"markupConfigured": {
"type": "boolean",
"const": false
},
"purchaseBlockCode": {
"type": "string",
"const": "PRICE_RULE_UNCONFIGURED"
},
"status": {
"type": "string",
"const": "unconfigured"
}
},
"required": [
"cache",
"dataSource",
"observedAt",
"purchaseEligible",
"tld",
"markupConfigured",
"purchaseBlockCode",
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"providerNotices": {
"type": "array",
"items": {
"type": "string",
"enum": [
"icp_filing_unavailable",
"local_presence_required",
"premium_unsupported",
"purchase_unavailable"
]
}
},
"cache": {
"type": "object",
"properties": {
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"status": {
"type": "string",
"enum": [
"hit",
"miss",
"not_used"
]
}
},
"required": [
"status"
],
"additionalProperties": false
},
"dataSource": {
"type": "string",
"minLength": 1
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseEligible": {
"type": "boolean",
"const": false
},
"tld": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"purchaseBlockCode": {
"type": "string",
"enum": [
"TLD_UNSUPPORTED",
"PRICE_NOT_OFFERED"
]
},
"status": {
"type": "string",
"const": "unsupported"
}
},
"required": [
"cache",
"dataSource",
"observedAt",
"purchaseEligible",
"tld",
"purchaseBlockCode",
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"providerNotices": {
"type": "array",
"items": {
"type": "string",
"enum": [
"icp_filing_unavailable",
"local_presence_required",
"premium_unsupported",
"purchase_unavailable"
]
}
},
"cache": {
"type": "object",
"properties": {
"expiresAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"status": {
"type": "string",
"enum": [
"hit",
"miss",
"not_used"
]
}
},
"required": [
"status"
],
"additionalProperties": false
},
"dataSource": {
"type": "string",
"minLength": 1
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"purchaseEligible": {
"type": "boolean",
"const": false
},
"tld": {
"type": "string",
"minLength": 1,
"maxLength": 253
},
"problem": {
"type": "object",
"properties": {
"action": {
"type": "string",
"minLength": 1
},
"code": {
"type": "string",
"pattern": "^[A-Z][A-Z0-9_]*$"
},
"dataSource": {
"type": "string",
"minLength": 1
},
"detail": {
"type": "string",
"minLength": 1
},
"disabledReason": {
"type": "string",
"minLength": 1
},
"field": {
"type": "string",
"minLength": 1
},
"lastSuccessfulAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"message": {
"type": "string",
"minLength": 1
},
"operationStatus": {
"type": "string",
"enum": [
"failed",
"unknown",
"submitted",
"prepared"
]
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"retryable": {
"type": "boolean"
},
"retryAfterSeconds": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"title": {
"type": "string",
"minLength": 1
},
"traceId": {
"type": "string",
"pattern": "^[a-zA-Z0-9._:-]{8,128}$"
},
"type": {
"type": "string",
"pattern": "^urn:wanmi:problem:[A-Z][A-Z0-9_]*$"
}
},
"required": [
"action",
"code",
"detail",
"message",
"retryable",
"status",
"title",
"traceId",
"type"
],
"additionalProperties": false
},
"purchaseBlockCode": {
"type": "string",
"const": "PRICE_QUERY_FAILED"
},
"status": {
"type": "string",
"const": "query_failed"
}
},
"required": [
"cache",
"dataSource",
"observedAt",
"purchaseEligible",
"tld",
"problem",
"purchaseBlockCode",
"status"
],
"additionalProperties": false
}
]
}
},
"priceClass": {
"type": "string",
"const": "standard"
},
"tlds": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 253
}
}
},
"required": [
"items",
"priceClass",
"tlds"
],
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"cacheStatus": {
"type": "string",
"enum": [
"hit",
"miss",
"mixed",
"not_used"
]
},
"dataSource": {
"type": "string",
"minLength": 1
},
"lastSuccessfulAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"observedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"stale": {
"type": "boolean"
},
"traceId": {
"type": "string",
"pattern": "^[a-zA-Z0-9._:-]{8,128}$"
}
},
"additionalProperties": false
}
},
"required": [
"state",
"data"
],
"additionalProperties": false
}错误码
| HTTP | 错误码 | 含义与处理 |
|---|---|---|
| 400 | INVALID_REQUEST | 请检查请求;保留响应中的 traceId 以便排查。 |
| 400 | API_INPUT_INVALID | 请按参数表检查输入;参数错误不计入免费次数。 |
| 400 | API_TARGET_BLOCKED | 目标不符合公网查询规则,请检查域名或网址。 |
| 401 | API_KEY_REQUIRED | 在 Authorization 请求头中添加 Bearer key。 |
| 401 | API_KEY_INVALID | 检查 key 是否正确;轮换后请更新程序中的 key。 |
| 401 | API_KEY_REVOKED | key 已吊销,请在控制台创建新的 key。 |
| 402 | API_BALANCE_INSUFFICIENT | 请检查请求;保留响应中的 traceId 以便排查。 |
| 403 | API_SPEND_REACTIVATION_REQUIRED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_BALANCE_SPEND_DISABLED | 请检查账户状态和权限后再试。 |
| 403 | STEP_UP_IDENTITY_RISK_COOLDOWN_ACTIVE | 请检查账户状态和权限后再试。 |
| 403 | API_KEY_BANNED | key 已封禁,请联系支持。 |
| 403 | API_SCOPE_FORBIDDEN | 此 key 无权调用该接口,请在控制台检查权限。 |
| 403 | API_KEY_CHANGED | key 已发生变化,请使用最新的 key。 |
| 403 | REALNAME_VERIFICATION_REQUIRED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_API_ACCESS_DISABLED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_LOGIN_DISABLED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_CLOSED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_CLOSING | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_PENDING_REGISTRATION | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_SUSPENDED | 请检查账户状态和权限后再试。 |
| 403 | ACCOUNT_STATE_INVALID | 请检查账户状态和权限后再试。 |
| 404 | API_NOT_FOUND | 请检查请求;保留响应中的 traceId 以便排查。 |
| 405 | API_METHOD_NOT_ALLOWED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 408 | API_REQUEST_ABORTED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 409 | API_RESERVATION_EXPIRED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 409 | API_SPEND_VERSION_CHANGED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 409 | WALLET_SPEND_LIMIT_EXCEEDED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 410 | API_UNAVAILABLE | 接口已下架,请查看目录中的已开放接口。 |
| 421 | API_HOST_INVALID | 请检查请求;保留响应中的 traceId 以便排查。 |
| 429 | API_RATE_LIMITED | 请求过于频繁,请按 Retry-After 等待后重试。 |
| 429 | API_FREE_QUOTA_EXHAUSTED | 今日免费次数已用完;可在控制台主动开通按量付费,或等待次日免费次数恢复。 |
| 429 | API_SITE_QUOTA_EXHAUSTED | 接口的全站日容量已满,请稍后再试。 |
| 429 | API_DAILY_SPEND_LIMIT_EXCEEDED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 429 | API_UPSTREAM_RATE_LIMITED | 请检查请求;保留响应中的 traceId 以便排查。 |
| 500 | INTERNAL_ERROR | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 500 | API_TELEMETRY_INVALID | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 500 | ACCOUNT_RESTRICTIONS_INVALID | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 502 | API_EXECUTION_FAILED | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 502 | API_INVALID_RESPONSE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 502 | API_RESPONSE_TOO_LARGE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 502 | API_UPSTREAM_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | API_BILLING_NOT_CONFIGURED | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | API_BILLING_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | WALLET_POLICY_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | WALLET_LEDGER_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | OPEN_API_DISABLED | 服务尚未开放或暂时停用,请稍后再试。 |
| 503 | API_LIMIT_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | API_QUOTA_UNAVAILABLE | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 503 | API_QUOTA_NOT_CONFIGURED | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |
| 504 | API_EXECUTION_TIMEOUT | 服务暂时未能完成调用;失败不计次,请保留 X-Request-Id 联系支持。 |