跳转到主要内容
GET
/
v2
/
endpoints-custom
生成自定义端点
curl --request GET \
  --url https://api.decodo.com/v2/endpoints-custom
[
  "http://user-smith-sessionduration-1:<EMAIL_ADDRESS>:10000",
  "http://user-smith-sessionduration-1:<EMAIL_ADDRESS>:10001"
]

查询参数

proxy_type
enum<string>
默认值:residential_proxies

要为哪种代理类型生成路由

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

选择授权方式,可以是 basicwhitelist。默认为 basicwhitelist 仅在参数 proxyType 值为 residential_proxies 时有效。

可用选项:
basic,
whitelist
username
string

提供用于授权的用户名。如果参数 authType 值为 basic,则此参数为必填

password
string

提供用于授权的密码。如果参数 authType 值为 basic,则此参数为必填

session_type
enum<string>
默认值:sticky

选择会话类型。选择 sticky 用于粘性会话,或 random 用于轮换会话。默认值为 sticky

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

会话时间(分钟),范围为 1-1440(含)。如果参数 proxyType 值为 residential_proxiesauthType 值为 basicsessionType 值为 sticky,则此参数为必填。默认值为 10。

location
string
默认值:random

可用位置之一,小写,可以是国家 Alpha-2 代码、城市或州名。要获取可用位置,请查看"按类型获取端点"。默认为 random

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

输出格式类型。默认为 protocol:auth@endpoint

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

将生成并返回的路由数量。最小值为 1,最大值取决于参数 page 和特定位置。默认值为 10。

page
integer<int32>
默认值:1

路由页码(分页)。最小值为 1,最大值取决于参数 count 和特定位置。默认值为 1。

response_format
enum<string>
默认值:json

返回的响应类型。可以是 jsontxthtml。默认为 json

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

响应内容中使用的换行符。如果参数 responseType 值为 txt,则此参数为必填。默认为 \n

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

路由应使用的域名。默认为 dedoco.comip 用于使用 IP 地址代替域名。

ip
string

用于代替域名的 IP 地址。如果参数 domain 值为 ip,则此字段为必填

响应

200