本指南介绍如何重命名住宅代理列表、更改其轮换设置或删除列表。
每个请求都使用您账户后台中的个人 API 密钥(如何获取您的 API 密钥)。在下面的示例中,请将 YOUR_API_KEY 替换为您自己的密钥。
步骤 1 — 列出住宅代理列表
列出您的住宅代理列表,并复制要管理的列表的 id。
端点
GET https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/lists
响应
{
"status": "success",
"data": {
"items": [
{
"id": 561,
"title": "US Washington",
"login": "3c8aa1d4",
"password": "AZT62Dx3",
"whitelist": "",
"rotation": 60,
"geo": { "country": "US", "region": "Washington", "city": "Garfield", "isp": "FIRST-STEP" },
"export": { "ports": 10000, "ext": "txt" }
}
]
},
"errors": []
}
步骤 2 — 重命名列表
通过列表的 id 和新的 title 重命名列表。
端点
POST https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/list/rename
请求体
名称 | 类型 | 说明 |
id | 数字 | 列表 id。 |
title | 字符串 | 列表的新名称。 |
响应
{
"status": "success",
"data": {
"id": 561,
"title": "New name",
"login": "3c8aa1d4",
"password": "AZT62Dx3",
"whitelist": "",
"rotation": 60,
"geo": [ { "country": "US", "region": "Washington", "city": "Garfield", "isp": "FIRST-STEP" } ],
"export": { "ports": 10000, "ext": "txt" }
},
"errors": []
}
步骤 3 — 更改轮换
或者通过 id 更改列表的轮换设置。
端点
POST https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/list/rotation
请求体
名称 | 类型 | 说明 |
id | 数字 | 列表 id。 |
rotation | 数字 | 轮换: |
响应
{
"status": "success",
"data": {
"id": 561,
"title": "New name",
"login": "3c8aa1d4",
"password": "AZT62Dx3",
"whitelist": "",
"rotation": 121,
"geo": [ { "country": "US", "region": "Washington", "city": "Garfield", "isp": "FIRST-STEP" } ],
"export": { "ports": 10000, "ext": "txt" }
},
"errors": []
}
步骤 4 — 或删除列表
通过 id 删除列表。此操作不可撤销。
端点
DELETE https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/list/delete
请求体
名称 | 类型 | 说明 |
id | 数字 | 列表 id。 |
响应
{
"status": "success",
"data": "delete",
"errors": []
}
