📚 API 文档
提供简单易用的 RESTful API 接口,支持单点、批量检测和域名解析。
📍 API 列表
检测单个目标:
GET /check?target=<IP:PORT>
批量检测目标:
GET /batch-check?targets=<target1,target2,...>
解析域名:
GET /resolve?domain=<DOMAIN>
查询IP信息:
GET /ip-info?ip=<IP>
💡 批量检测示例
你可以通过 targets 参数传递一个或多个由逗号分隔的IP或域名。
curl "https://ppip.neteasy0x00.eu.org/batch-check?targets=1.2.3.4:443,example.com:8443,[2001:db8::1]"
🔗 批量响应Json格式
响应是一个数组,每个元素对应一个你传入的目标及其检测结果。
[
{
"target": "example.com:8443",
"status": "resolved",
"results": [
{
"success": true,
"proxyIP": "93.184.216.34",
"portRemote": 8443,
"colo": "NRT",
"responseTime": 123,
"message": "第1次验证有效",
"timestamp": "...",
"ipInfo": {
"country": "美国",
"countryCode": "US",
"as": "AS15133 MCI Communications Services, Inc. d/b/a Verizon Business",
"query": "93.184.216.34"
}
}
]
},
{
"target": "1.2.3.4:443",
"status": "pending",
"results": [
{
"success": false,
"proxyIP": "1.2.3.4",
"portRemote": 443,
"message": "第3次: 读取响应超时",
"ipInfo": null
}
]
},
{
"target": "baddomain.example",
"status": "resolve_failed",
"message": "没有找到 A 或 AAAA 记录",
"results": []
}
]