API链接
Last updated
Was this helpful?
Last updated
Was this helpful?
如果您尚未购买Thordata的住宅代理套餐,您是无法使用端点生成器相关功能的。点击此处立即前往购买。
请注意:在使用API链接功能前需要将使用者IP添加至IP白名单中。
1、Number:提取的IP数量
2、Country/Region:提取的国家/地区
3、Session type:会话类型分为【Sticky session】和【Rotating session】
Sticky session:默认保持时间为10分钟,无法设定
Rotating session:当您每次请求时,都会获得新的IP
您也可以在API链接中直接修改相关参数进行配置
下面是修改参数配置说明
修改提取的IP数量:
若需要调整提取的IP数量,请修改number
参数。例如,提取15个IP时,将number
参数修改为number=15
https://get-ip.thordata.net/api?td-customer=Thor00000001&sesstype=1&number=15
&country=us
修改提取的国家/地区:
若需要调整提取的国家/地区,请修改country
参数。例如,提取美国的IP,将country
参数修改为country=us
https://get-ip.thordata.net/api?td-customer=Thor00000001&sesstype=1&number=15&country=us
点击此处查看支持的国家/地区列表及代码
修改会话类型:
如需要调整会话类型,请修改sessid
参数,1代表黏性会话、2代表轮换会话。例如,需要使用轮换会话,将sessid
参数修改为sessid=2
https://get-ip.thordata.net/api?td-customer=Thor00000001&sesstype=2
&number=15&country=us
错误码说明:
111
Please request again in 2 seconds
提取频率太快
118
Your account is abnormal, please contact customer service
账户名称不正确
114
The extracted IP is empty
没有符合条件的IP