API 参考
代理测试接口
通过选定的 BytesFlows 代理账号验证 Google、Cloudflare 和 IP 场景。
代理测试接口
该接口会使用你自己的 BytesFlows 代理账号执行 ip-detector 的 proxy test 流程。
接口信息
- URL:
/api/tools/proxy-test - 方法:
POST - 认证方式: 已登录的 Dashboard 会话
请求参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
account | string | 是 | 要消耗流量的代理账号 |
country | string | 否 | 可选国家代码 |
session_type | string | 否 | rotating 或 sticky |
duration | number | 否 | Sticky 会话时长,单位分钟 |
session_id | string | 否 | Sticky 会话标识 |
scenarios | string[] | 否 | 场景列表,例如 ["google_search","cloudflare_access"] |
返回说明
- 该路由只会测试用户自己选定的 BytesFlows 代理账号。
- 返回结构沿用
ip-detector的 proxy test 结果格式。 - 底层探测所产生的流量会从所选代理账号中消耗。
示例
{
"account": "acct-main",
"country": "US",
"session_type": "sticky",
"duration": 10,
"scenarios": ["google_search", "cloudflare_access", "ipify"]
}