批量添加代理,单次最大支持添加20条代理
POST
/api/v1/proxy/add
参数 | 类型 | 必需 | 说明 |
---|---|---|---|
proxy_list | array | 是 | 代理信息,最大支持20条 |
ip_scan_channel | string | 否 | 代理检测渠道,支持:ip2location、ipapi |
参数 | 类型 | 必需 | 说明 |
---|---|---|---|
protocol | string | 是 | 协议,目前只支持socks5 |
host | string | 是 | host |
port | integer | 是 | 端口 |
user | string | 否 | 账号 |
password | string | 否 | 密码 |
name | string | 否 | 名称 |
{
"proxy_list": [
{
"protocol": "socks5",
"host": "host",
"port": "3000",
"user": "user",
"password": "pass",
"name": "name"
}
],
"ip_scan_channel": "ip2location"
}
{
"code": 200,
"data": {
"success": [
{
"index": 0, // 提交的数组索引
"id": "xx" // ID
}
],
"fail": [
{
"index": 1, // 提交的数组索引
"message": "xx" // 错误信息
}
]
},
"message": "Success"
}