批量查询
POST
/api/lookup/batch批量查询域名WHOIS或IP状态(需认证),单次最多20条。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| targets | array | 必填 | 查询目标列表(域名或IP) |
| type | string | 必填 | 查询类型:whois / ip |
请求示例
bash
curl -X POST https://api.ogmiao.com/api/lookup/batch \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{"targets": ["zun.com", "baidu.com"], "type": "whois"}'响应示例
JSON
{
"total": 2,
"success": 2,
"results": { "...": "批量查询结果" },
"errors": { "...": "失败项及原因" }
}