菜单

批量添加代理

使用说明

批量添加代理,单次最大支持添加20条代理

请求说明

POST /api/v1/proxy/add

请求参数

参数 类型 必需 说明
proxy_list array 代理信息,最大支持20条
ip_scan_channel string 代理检测渠道,支持:ip2location、ipapi

proxy_list参数

参数 类型 必需 说明
protocol string 协议,目前只支持socks5
host string host
port integer 端口
user string 账号
password string 密码
name string 名称

请求示例

json 复制代码
{
    "proxy_list": [
        {
            "protocol": "socks5",
            "host": "host",
            "port": "3000",
            "user": "user",
            "password": "pass",
            "name": "name"
        }
    ],
    "ip_scan_channel": "ip2location"
}

返回示例

json 复制代码
{
    "code": 200,
    "data": {
        "success": [
            {
                "index": 0, // 提交的数组索引
                "id": "xx" // ID
            }
        ],
        "fail": [
            {
                "index": 1, // 提交的数组索引
                "message": "xx" // 错误信息
            }
        ]
    },
    "message": "Success"
}
上一个
代理列表
下一个
批量删除代理
最近修改: 2025-03-07Powered by