API鏈接
Last updated
Was this helpful?
Last updated
Was this helpful?
如果您尚未購買Thordata的無限代理套餐,您是無法使用端點產生器相關功能的。點擊此處立即前往購買。
請注意:使用API鏈接功能前需要將使用者IP加入IP白名單中。
1、Number:提取的IP數量
2、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
修改會話類型:
若需要調整會話類型,请修改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
117
Allowlist verification failed. Please add the requested IP [0.0.0.0] to the HTTP allowlist
未購買無限代理套餐
121
Your package has expire
無限代理套餐過期