跳转到主要内容

导出您的代理

通过 API 以 txt、csv 或自定义格式下载您的代理列表。

本指南将向您展示如何以 txt、csv 或自定义格式下载您的代理。

每个请求都使用您账户仪表板中的 个人 API 密钥 (如何获取您的 API 密钥)。在下面的示例中,将 YOUR_API_KEY 替换为您自己的密钥。要从您的账户余额中支付,请使用 paymentId = 1.

步骤 1 — 找到代理

注意您要导出的代理 类型 (如果需要特定的订单或列表)。

端点

GET https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/proxy/list/{type}

步骤 2 — 下载列表

导出 IP。选择格式 ext (txt/csv 或自定义模板)和端口协议 proto。对于 residential,请传递 listId;对于 subresident,请传递 package_key。对于 residential 和 subresident 代理,选择协议 protocol 和网关 host.

端点

GET https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/proxy/download/{type}

路径参数

名称

值

描述

type

ipv4

代理类型(ipv4、ipv6、mobile、isp、mix、mix_isp、resident、subresident)。

可选查询参数

名称

类型

描述

ext (可选)

字符串

格式: txt, csv, 或自定义模板如 %login%:%password%@%ip%:%port%.

proto (可选)

字符串

端口协议: https 或 socks5。不适用于 resident 和 subresident。

listId (可选)

整数

仅限 residential:列表 ID。没有它,将返回所有列表中的 IP。

maxLine (可选)

整数

仅限 residential:导出的最大行数。

protocol (可选)

字符串

residential 和 subresident: http 或 socks5。在 txt 中,方案作为前缀添加(例如 socks5://),在自定义模板中填充 %protocol%.

host (可选)

字符串

residential 和 subresident 网关: res.proxy-seller.com (欧洲,默认), us.res.proxy-seller.com (美国)或 asia.res.proxy-seller.com (亚洲)。

package_key (可选)

字符串

仅限 subresident:包密钥。

country (可选)

字符串

国家代码(alpha-3)。

ends (可选)

字符串

设置为 Y 以返回即将结束的代理。

示例

https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/proxy/download/ipv4?ext=txt&proto=https

响应是您选择格式的代理列表:

示例(residential)

https://proxy-seller.com/personal/api/v2/YOUR_API_KEY/proxy/download/resident?listId=561&protocol=socks5&host=us.res.proxy-seller.com

完整 API 参考

这是否解答了您的问题?