Batch add proxies, supporting the addition of up to 20 proxies at a time.
POST
/api/v1/proxy/add
Parameter | Type | Required | Description |
---|---|---|---|
proxy_list | array | Yes | Proxy information, supporting up to 20 proxies. |
ip_scan_channel | string | No | Proxy detection channels, supporting: ip2location, ipapi |
Parameter | Type | Required | Description |
---|---|---|---|
protocol | string | Yes | Protocol, currently only socks5 is supported. |
host | string | Yes | Host |
port | integer | Yes | Port |
user | string | No | Account |
password | string | No | Password |
name | string | No | Name |
{
"proxy_list": [
{
"protocol": "socks5",
"host": "host",
"port": "3000",
"user": "user",
"password": "pass",
"name": "name"
}
],
"ip_scan_channel": "ip2location"
}
{
"code": 200,
"data": {
"success": [
{
"index": 0, // Submitted array index
"id": "xx" // ID
}
],
"fail": [
{
"index": 1, // Submitted array index
"message": "xx" // Error message
}
]
},
"message": "Success"
}