Skip to main content

代理子账号


请求地址(baseUrl): http://api.ipweb.cc:8004

1. 创建子账号

POST {baseUrl}/api/agent/childAccount/add

请求参数:

参数名是否必传类型说明
usernameString子账号(字母和数字2到12位)
pwdString子账号密码(字母和数字 4到12位)
limitFlowInteger流量限制M 小于0为不限制)默认-1

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
msgString描述

返回示例:

{
"code": 200,
"msg": "查询成功"
}

2. 修改子账号密码

POST {baseUrl}/api/agent/childAccount/updatePwd

请求参数:

参数名是否必传类型说明
usernameString子账号
pwdString子账号密码(字母和数字 4到12位)

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
msgString描述

返回示例:

{

"code": 200,

"msg": "操作成功"

}

3. 修改子账号流量限制

POST {baseUrl}/api/agent/childAccount/updateLimitFlow

请求参数:

参数名是否必传类型说明
usernameString子账号
limitFlowInteger流量限制M(小于0为不限制)默认-1

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
msgString描述

返回示例:

{

"code": 200,

"msg": "操作成功"

}

4. 修改子账号状态

POST {baseUrl}/api/agent/childAccount/updateStatus

请求参数:

参数名是否必传类型说明
usernameString子账号
statusInteger状态(0停用 1正常)

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
msgString描述

返回示例:

{

"code": 200,

"msg": "操作成功"

}

5. 获取子账号列表

POST {baseUrl}/api/agent/childAccount/users

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
dataArray
download_flowFloat下载流量M
upload_flowFloat上传流量M
limit_flowInteger流量限制M(小于0为不限制)
pwdString密码
usernameString用户名
statusInteger状态(0停用 1正常)

返回示例:

{
"msg": "操作成功",
"code": 200,
"data": [
{
"download_flow": 33.52092,
"upload_flow": 5.37097,
"limit_flow": -2,
"id": 1,
"pwd": "password22",
"username": "username11",
"status": 1
}
]
}

6. 获取用户

GET {baseUrl}/api/agent/account?country=us&time=5

请求参数:

参数名是否必传类型说明
countryString国家/地区 英文简称
timesIntegerip有效时长
repeatInteger1重复 0去重 默认1

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
dataJson
userNameString用户名
upload_flowString密码

返回示例:

{
"msg": "操作成功",
"code": 200,
"data": {
"passWord": "987654321a123456789",
"userName": "100951637280-ABCDEFG"
}
}

7. 批量获取用户

GET {baseUrl}/api/agent/account2?country=us&time=5&limit=3

请求参数:

参数名是否必传类型说明
countryString国家/地区 英文简称
timesIntegerip有效时长
limitInteger获取账号数量
repeatInteger1重复 0去重 默认1

返回结果:

参数名类型说明
codeInteger200表示成功,其他表示失败
dataArray格式: 用户名:密码

返回示例:

{
"msg": "操作成功",
"code": 200,
"data": [
"100951637280-AvKUhzlR:123456789a987654321",
"100951637280-wAfsZkSi:123456789a987654321",
"100951637280-nOO1SJQu:123456789a987654321"
]
}

8. 子账号格式定义

1、粘贴方式

账号(12位数字与字母)_custom_zone_us_st_[areaId]_city_[cityId]_sid_(8位数字)_time_(时长小于90分钟)


全球随机:
账号(12位数字与字母)_custom_zone_global_sid_(8位数字)_time_(时长小于90分钟)
洲随机:
账号(12位数字与字母)_custom_zone_asia_sid_(8位数字)_time_(时长小于90分钟)
账号(12位数字与字母)_custom_zone_europe_sid_(8位数字)_time_(时长小于90分钟)
账号(12位数字与字母)_custom_zone_africa_sid_(8位数字)_time_(时长小于90分钟)
账号(12位数字与字母)_custom_zone_america_sid_(8位数字)_time_(时长小于90分钟)

2、轮转

账号(12位数字与字母)_custom_zone_us_st_[areaId]_city_[cityId]
全球随机:
账号(12位数字与字母)_custom_zone_global
洲随机:
账号(12位数字与字母)_custom_zone_asia
账号(12位数字与字母)_custom_zone_europe
账号(12位数字与字母)_custom_zone_africa
账号(12位数字与字母)_custom_zone_america