本指南将向您展示如何构建一个具有地理定位的住宅代理列表,并进行轮换。
每个请求都使用您在账户仪表板中的 个人 API 密钥 (如何获取您的 API 密钥)。在下面的示例中,将 YOUR_API_KEY 替换为您自己的密钥。
步骤 1 — 检查套餐
确认住宅套餐处于激活状态并且还有剩余流量。复制 package_key.
端点
GET https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/package
响应
{
"status": "success",
"data": {
"rotation": 3600,
"package_key": "064b9fcc7416d9e6f65f",
"is_active": true,
"tarif_id": "69e79e532c200df885906f8f",
"is_link_date": false,
"traffic_limit": "1073741824",
"traffic_usage": "0",
"traffic_left": "1073741824",
"traffic_usage_sub": "0",
"traffic_limit_sub": "0",
"traffic_left_sub": "0",
"expired_at": "2026-06-13 23:59:59",
"auto_renew": false
},
"errors": []
}
步骤 2 — 获取可用位置
下载可用的位置(国家/地区/城市/ISP),以便您知道要使用的确切地理值。响应是包含完整地理树的 JSON/ZIP 文件。
端点
GET https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/geo
响应
[
{
"code": "US",
"name": "United States",
"regions": [
{ "name": "Washington", "cities": [ { "name": "Garfield", "isps": [ "FIRST-STEP" ] } ] }
]
}
]
步骤 3 — 创建列表
创建一个列表,包括标题、地理对象(来自步骤 2)、导出设置和轮换值。
端点
POST https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/list/add
请求体
名称 | 类型 | 描述 |
title | String | 列表的名称。 |
whitelist (可选) | String | 用于授权的 IP。留空则使用登录名和密码进行授权。 |
geo | object | 包含 |
export | object | 对象: |
rotation | Number | 轮换: |
示例
https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/resident/list/add
响应
{
"status": "success",
"data": {
"id": 561,
"title": "US Washington Garfield FIRST-STEP",
"login": "3c8aa1d4",
"password": "AZT62Dx3",
"whitelist": "",
"rotation": 60,
"geo": [ { "country": "US", "region": "Washington", "city": "Garfield", "isp": "FIRST-STEP" } ],
"export": { "ports": 10000, "ext": "txt" }
},
"errors": []
}
步骤 4 — 检查新列表
列出您的住宅代理列表以确认其已创建,并获取连接详细信息。
端点
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": []
}
