CaptchaFox
A token-based method for automatically solving CaptchaFox
captchas.
To solve a CaptchaFox
captcha, you must use a proxy and provide the User-Agent
value of your browser.
Attention: You must include the
proxy
parameters in your request. The proxy you provide will be used during captcha solving.
Attention: You must include the
User-Agent
header used when accessing the target website. We use it during captcha loading and solving. Always use aUser-Agent
from a modern browser.
Task Type
- CaptchaFoxTask – we will use the proxy you provide.
CaptchaFoxTask task type specification
Property | Type | Required | Description |
---|---|---|---|
type | String | Yes | Task type: CaptchaFoxTask |
websiteURL | String | Yes | The full URL of the target web page where the captcha is loaded. |
websiteKey | String | Yes | The value of the key parameter. It can be found in the page source code or captured in network requests during page loading. |
userAgent | String | Yes | The User-Agent of the browser that will be used by the worker to load the captcha. |
proxyType | String | Yes | Proxy type: http socks4 socks5 |
proxyAddress | String | Yes | Proxy IP address or hostname |
proxyPort | Integer | Yes | Proxy port |
proxyLogin | String | No | Proxy login used for authentication on the proxy server |
proxyPassword | String | No | Proxy password used for authentication on the proxy server |
Request example
Method: createTask
API endpoint: https://api.2captcha.com/createTask
CaptchaFoxTask
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "CaptchaFoxTask",
"websiteURL": "https://mysite.com/page/with/captcha-fox",
"websiteKey": "sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"proxyType": "http",
"proxyAddress": "1.2.3.4",
"proxyPort": "8080",
"proxyLogin": "proxyUser123",
"proxyPassword": "proxyPass456"
}
}
Response example
Method: getTaskResult
API endpoint: https://api.2captcha.com/getTaskResult
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "7828075fb55ecbd9146745ee6f2bec475b88076d36e23050f1fb28359ffca15d"
},
"cost": "0.00145",
"ip": "1.2.3.4",
"createTime": 1695214711,
"endTime": 1695214720,
"solveCount": 1
}