CaptchaFoxToken
Solve CaptchaFox CAPTCHAs through your proxy from the sitekey, your User-Agent and the API script URL. With the schema, an example and provider prices.
CaptchaFoxToken solves a CaptchaFox CAPTCHA through your proxy and returns the token. CaptchaFox is a CAPTCHA widget loaded from cdn.captchafox.com. The task takes the page URL, the sitekey, the User-Agent of your browser, the API script URL and your proxy. There is no proxyless variant.
Proxy
task.proxy is required on this task type, and the provider solves from that address. Send the proxy you use for your own requests to the site, and keep one IP for the whole solve: see Keep the same IP for the whole solve.
Find the parameters
websiteKeyis thekeyvalue of the CaptchaFox widget. It is in the page source, or in the network requests made while the page loads.userAgentis the User-Agent of the browser you use for the target site. It is required.apiServeris the URL of the CaptchaFox script the page loads. Usehttps://cdn.captchafox.com/api.jsfor the standard script. Some sites load a variant fromhttps://s.uicdn.com/mampkg/@mamdev/core.frontend.libs.captchafox/api.js, and the tokens from it start withMAM_. The two scripts return different tokens, so copy the one the page uses.
Use the token
Submit the solution token in the request that carries the CaptchaFox response. To find it, solve the CAPTCHA once in a browser with the DevTools Network tab open and read the request that follows. Send your later requests through the same proxy and with the same User-Agent.
If the site rejects the token, check that the proxy kept one IP for the whole solve, then that websiteKey and websiteURL come from the page that shows the widget.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $1.45 | |
CapCracker | $1.00 | |
RiskBypass | $1.00 | |
SolveCaptcha | $1.45 | |
SCTG | $0.40 | |
VoidCaptcha | $1.20 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
websiteKey* | string | Yes | The Example: |
userAgent* | string | Yes | User-Agent of the browser you use for the target site. Send your later requests to the site with the same value. Example: |
apiServer* | URL | Yes | CaptchaFox API script URL the target page loads. Use Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "CaptchaFoxToken",
"websiteURL": "https://example.com/page/with/captchafox",
"websiteKey": "sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"apiServer": "https://cdn.captchafox.com/api.js",
"proxy": "http://user:pass@1.2.3.4:8080"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |