跳转到主要内容
GET
生成自定义端点

查询参数

proxy_type
enum<string>
默认值:residential_proxies

代理服务类型。shared_proxies 是已弃用的按GB计费数据中心代理产品。

可用选项:
residential_proxies,
shared_proxies
auth_type
enum<string>
默认值:basic

代理身份验证方式。使用 whitelist 时,连接字符串中不包含凭据 (仅限住宅代理)。

可用选项:
basic,
whitelist
username
string

子用户用户名。当 auth_type 为 basic 或 proxy_type 为 shared_proxies 时必填。

password
string

子用户密码。当 auth_type 为 basic 或 proxy_type 为 shared_proxies 时必填。

session_type
enum<string>
默认值:sticky

sticky 在 session_time 分钟内保持同一IP,random 在每次请求时轮换IP。

可用选项:
sticky,
random
session_time
integer
默认值:10

固定会话时长(分钟)。用于使用 basic 身份验证的住宅代理固定会话。

必填范围: 1 <= x <= 1440
location
string
默认值:random

入口点位置,使用小写字母,空格替换为 _:random,或住宅代理入口点的位置代码, 例如国家Alpha-2代码(us)。对于专用于州或城市的入口点,代码也可以加上 state_ 或 city_ 前缀。

output_format
enum<string>
默认值:protocol:auth@endpoint

每个连接字符串的格式。

可用选项:
protocol:auth@endpoint,
endpoint:auth,
auth@endpoint
count
integer
默认值:10

返回的连接字符串数量。对于固定会话,count × page 不能超出 入口点的端口范围。

必填范围: x >= 1
page
integer
默认值:1

连接字符串的页码,与 count 一起使用。

必填范围: x >= 1
response_format
enum<string>
默认值:json

json 返回JSON数组。txt 每行返回一个连接字符串,以 line_break 分隔, html 以 <br> 分隔;两者均以 text/html 发送。

可用选项:
json,
txt,
html
line_break
enum<string>
默认值:\n

response_format=txt 时使用的分隔符,以转义序列形式书写(反斜杠后跟 n、r 或 t),而不是控制字符。

可用选项:
\n,
\r\n,
\r,
\t
domain
string
默认值:decodo.com

主机名中使用的域名,用于替换 decodo.com。使用 ip 可改为使用IP地址(见 ip) 代替主机名。

ip
string

代替主机名使用的IP地址。当 domain 为 ip 时必填。

响应

生成的连接字符串。