免费代理 API
一个 GET 请求即可返回当前可用代理列表,无需密钥,无需注册。
接口地址
GET https://freeproxyhub.net/api/v1/proxies
请求参数
| 参数 | 取值 | 说明 |
|---|---|---|
protocol | http, https, socks4, socks5, all | 代理协议,不填则返回全部。 |
anonymity | elite, anonymous, transparent, all | 由我们的 judge 测得的匿名等级。 |
country | US, DE, BR… | 出口 IP 的 ISO 3166-1 两位国家代码。 |
format | json, txt, csv | 返回格式,默认 JSON。 |
limit | 1… | 返回代理的最大数量。 |
示例
curl "https://freeproxyhub.net/api/v1/proxies?protocol=socks5&anonymity=elite&format=txt"
curl "https://freeproxyhub.net/api/v1/proxies?country=US&limit=20"
JSON 返回示例
{
"updated": "2026-10-18T12:00:00Z",
"count": 1,
"proxies": [
{
"protocol": "socks5",
"ip": "203.0.113.10",
"port": 1080,
"anonymity": "elite",
"country": "US",
"latency_ms": 420,
"checked_at": "2026-10-18T11:59:30Z"
}
]
}
无需密钥。每个 IP 每分钟最多 60 次请求;数据每 30 秒更新一次,更频繁地请求没有意义。
直接下载
使用建议
- 至少缓存响应 30 秒,数据不会更频繁地变化。
- 使用
protocol、anonymity、country和limit只请求需要的数据。 - 轮换使用多个代理并在失败时重试:公开代理随时可能下线。
- 收到 HTTP 429 时请遵守
Retry-After。
常见问题
不需要。API 公开且免费,唯一的限制是每个 IP 每分钟 60 次请求。
API 提供与网站相同的数据,每 30 秒刷新一次。每个代理都带有最近一次检测成功的时间。