所有 API 基于 HTTP 协议,返回 JSON 格式数据(部分接口支持 text 格式)。以下示例中的路径拼接当前访问域名即可使用。
获取代理列表,支持按协议、国家、状态筛选,支持 JSON 和纯文本格式输出。
| 参数 | 类型 | 默认 | 说明 |
|---|---|---|---|
| protocol | string | — | 筛选协议:http、https、socks4、socks5 |
| country | string | — | 筛选国家代码:CN、US、JP 等 |
| status | string | alive | 筛选状态:alive(可用)、dead(失效) |
| limit | integer | 50 | 返回条数上限(最大 500) |
| format | string | json | 输出格式:json(结构化数据)、text(ip:port)、standard(protocol://ip:port) |
{
"success": true,
"total": 10,
"proxies": [
{
"ip": "103.125.31.222",
"port": 80,
"protocol": "http",
"country": "BD",
"response_time": 0.316,
"last_checked": "2026-05-08 14:56:38",
"status": "alive",
"source": "free-proxy-list"
}
],
"query": {
"protocol": "http",
"country": null,
"status": "alive",
"limit": 10
}
}
获取免费公共代理池的实时统计数据:可用代理数、总数、平均响应时间、覆盖国家数。
| 字段 | 类型 | 说明 |
|---|---|---|
alive | integer | 可用代理数量 |
total | integer | 总代理数量 |
avg_response_time | float | 平均响应时间 (ms) |
countries | integer | 覆盖国家/地区数 |
{
"alive": 254,
"total": 460,
"avg_response_time": 3.74,
"countries": 42
}
导出可用代理为纯文本文件(自动下载),支持按协议和国家筛选。
| 参数 | 类型 | 说明 |
|---|---|---|
| protocol | string | 筛选协议(可选) |
| country | string | 筛选国家(可选) |
获取服务运行状态和最后刷新时间。
{
"status": "running",
"last_refresh": "2026-05-09 00:50"
}
获取可用的协议、国家、状态筛选选项。
{
"protocols": ["http", "https", "socks4", "socks5"],
"countries": ["CN", "US", "JP", ...],
"statuses": ["alive", "dead"]
}
获取单个代理的详细信息。
测试指定代理的连通性(异步,返回后等待几秒刷新可查看结果)。
快速测试代理(同步返回结果),按 IP 和端口测试。
| 参数 | 类型 | 说明 |
|---|---|---|
| ip | string | 代理 IP |
| port | integer | 代理端口 |
| protocol | string | 协议(默认 http) |
| proxy_id | integer | 可选,传入后自动更新数据库状态 |
触发一次完整的代理池刷新(抓取 → 验证 → 存储 → 清理)。此操作可能需要 1-3 分钟。
🌐 免费公共代理池 · 开放 API v1