How to use proxy
In some antibots and captcha (token) acquisition task scenarios, token authentication usually verifies the IP address generated by the token of bypass, at this time we allow users to set their own client IP address via the proxy
parameter to set their own client IP address.
WARNING
Usually the type field of the task carries the ProxyLess
suffix, that is, no proxy parameters are required, without the suffix but not the task type of image recognition requires proxy parameters, please read the task type documentation for details
Proxy supported
We support the following proxy types :SOCKS4, SOCKS5, HTTP, HTTPS, IP address or login password authentication. If you need to use an IP address authentication proxy, whitelist this IP address: 47.253.53.46
Proxy request parameters
We support two types of proxy
- Use
proxyType
proxyAddress
and other parameter mode, refer to the following - Use
proxy
parameter concatenation directly
{
"clientKey": "YOUR_API_KEY",
"task": {
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"type": "ReCaptchaV2Task",//Typically, task types that carry the ProxyLess do not require proxy
//You can send the proxy information with one of these proxy format, please read carefully
// proxy format 1
"proxyType": "https",// socks5 | http | https
"proxyAddress": "198.199.100.10",
"proxyPort": 3949,
"proxyLogin": "user",
"proxyPassword": "pass",
// proxy format 2
"proxy": "socks5:192.191.100.10:4780:user:pwd",
//or
"proxy": "198.199.100.10:4780:user:pwd", //You don't need to put the user:pwd if it's whitelisted IP proxy
}
}
The format of proxy parameters is supported as follows:
# Supports the socks5 protocol + authentication
socks5:192.191.100.10:4780:user:pwd
# Supports http + authentication
http:192.191.100.10:4780:user:pwd
# http is used by default
192.191.100.10:4780:user:pwd
# Use url dns
http://user:pwd@ip:port
# Use the url socks5
socks5://user:pwd@ip:port