认证方式
在请求头中携带 API 密钥,推荐使用 Bearer Token:
Authorization: Bearer wb_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
也支持以下方式(不推荐在生产环境使用 Query 传参):
X-API-Key: wb_live_xxx
?api_key=wb_live_xxx(仅 GET)
WHOIS 查询
GET POST ?endpoint=whois
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=whois" \
--data-urlencode "domain=example.com"
参数
| 参数 | 必填 | 说明 |
domain | 是 | 要查询的域名 |
lang | 否 | 界面语言,en 为英文时间格式 |
DNS 查询
GET POST ?endpoint=dns
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=dns" \
--data-urlencode "domain=example.com"
备案查询
GET POST ?endpoint=icp
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=icp" \
--data-urlencode "domain=example.com"
含义翻译
GET POST ?endpoint=translate
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=translate" \
--data-urlencode "domain=example.com"
我的 IP
GET ?endpoint=myip
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=myip"
域名价格
GET ?endpoint=pricing
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=pricing" \
--data-urlencode "domain=example.com"
价格排行
GET POST ?endpoint=price_ranking
curl -G "{{BASE}}/api/v1/index" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "endpoint=price_ranking" \
--data-urlencode "tld=com"
参数