支持单个查询 • 批量处理 • 网络检测
批量查询多个IP或域名
curl "https://your-domain.vercel.app/api/query?input=8.8.8.8" curl "https://your-domain.vercel.app/api/query?input=google.com"
{
"success": true,
"data": {
"input": "8.8.8.8",
"type": "ip",
"ip": "8.8.8.8",
"country_code": "US",
"country_name": "美国",
"continent_code": "NA",
"continent_name": "北美洲",
"status": "success"
},
"timestamp": "2024-01-01T00:00:00.000Z"
}
curl -X POST "https://your-domain.vercel.app/api/batch" \
-H "Content-Type: application/json" \
-d '{
"inputs": ["8.8.8.8", "google.com", "1.1.1.1", "github.com"],
"format": "json"
}'
input: 输入的IP地址或域名type: 输入类型(ip/domain/invalid)ip: 查询的IP地址resolved_ip: 域名解析后的IP地址country_code: 国家代码(ISO 3166-1 alpha-2)country_name: 国家名称(中文/英文)continent_code: 洲代码continent_name: 洲名称status: 查询状态(success/error/not_found)