导出接口用于批量生成代理串。
POST /client/ip/dynamics/exportIp
| 参数名 | 必选 | 类型 | 说明 |
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
| Content-Type | 是 | string | application/json |
| 参数名 | 必选 | 类型 | 说明 |
| accountId | 是 | String | 动态账号ID |
| endpointHost | 是 | String | 接入点 Host |
| endpointPort | 是 | String | 接入点 Port |
| count | 是 | Integer | 导出数量(1-1000) |
| formatType | 是 | Integer | 0~3 |
| countryCode | 否 | String | 国家 |
| stateCode | 否 | String | 州/省 |
| cityCode | 否 | String | 城市 |
| sessionCode | 否 | String | 会话标识(可用于 sticky 类需求) |
| sessionTime | 否 | String | 会话时长 |
const response = await fetch('/client/ip/dynamics/exportIp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
accountId: '816222',
endpointHost: 'as.example.net',
endpointPort: '2333',
count: 3,
formatType: 3
})
})
const result = await response.json()
{
"msg": "操作成功",
"code": 200,
"data": [
"host:port:username:password"
]
}
| 参数名 | 类型 | 描述 |
| code | Integer | 业务状态码 |
| msg | String | 提示信息 |
| data | Array | 代理串列表(每项为字符串),格式与 formatType 一致(如 host:port:user:pass) |