CaptchaFox
Solve CaptchaFox with the captchafox type: find the site key, create the task, use the token in captchafox-solution. Code, compatible names and fixes.
Use the captchafox type to get a response token for a CaptchaFox widget. You send the page address and the site key. You get the token that goes in the captchafox-solution form field.
Overview
CaptchaFox is a privacy-minded captcha, common on European sites. It shows a small box on a form and sometimes a slider puzzle. When it is passed, it puts a token in the form, and the site checks it with CaptchaFox when the form is sent.
type |
captchafox |
| Needs a site key | Yes |
| Optional extras | None needed |
| You get | solution.token |
Before you start
- Create an API key in the dashboard under API keys (starts with
drx_) and add funds. - Find the site key:
- Open the page and choose View page source. Search for
data-sitekeyon the CaptchaFox element. - If the widget is added by a script, open the developer tools, Network tab, reload, and look at the requests the page makes to CaptchaFox. The site key is in them.
- Open the page and choose View page source. Search for
- Find out how the page sends the token: most forms post a field named
captchafox-solution. Pass the captcha once by hand with the Network tab open to be sure.
Request fields
| Field | Required | What to put |
|---|---|---|
type |
Yes | captchafox |
website_url |
Yes | The full address of the page with the widget, starting with https://. |
website_key |
Yes | The CaptchaFox site key from the page. |
Other fields (rqdata, cdata, proxy, user_agent) are not needed for this type.
Create the task
curl
curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
-H "Authorization: Bearer $DRAXON_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: contact-2207" \
-d '{
"type": "captchafox",
"website_url": "https://example.com/contact",
"website_key": "sk_your_captchafox_site_key"
}'
Python
import os
import requests
API = "https://draxon.one/api/captcha/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DRAXON_KEY']}"}
task = requests.post(f"{API}/tasks", headers=HEADERS, timeout=30, json={
"type": "captchafox",
"website_url": "https://example.com/contact",
"website_key": "sk_your_captchafox_site_key",
}).json()
while task["status"] in ("queued", "processing"):
task = requests.get(f"{API}/tasks/{task['id']}", params={"wait": 30},
headers=HEADERS, timeout=60).json()
if task["status"] == "solved":
form = {"email": "[email protected]", "captchafox-solution": task["solution"]["token"]}
requests.post("https://example.com/contact", data=form, timeout=30)
else:
print("not solved:", task["error"])
Node.js
const API = "https://draxon.one/api/captcha/v1";
const headers = {
Authorization: `Bearer ${process.env.DRAXON_KEY}`,
"Content-Type": "application/json",
};
let task = await (await fetch(`${API}/tasks`, {
method: "POST",
headers,
body: JSON.stringify({
type: "captchafox",
website_url: "https://example.com/contact",
website_key: "sk_your_captchafox_site_key",
}),
})).json();
while (task.status === "queued" || task.status === "processing") {
task = await (await fetch(`${API}/tasks/${task.id}?wait=30`, { headers })).json();
}
if (task.status === "solved") {
const body = new URLSearchParams({ "captchafox-solution": task.solution.token });
await fetch("https://example.com/contact", { method: "POST", body });
}
Get the result
Use ?wait=30 (0 to 120 seconds) so one request waits for the answer.
curl -s -H "Authorization: Bearer $DRAXON_KEY" \
"https://draxon.one/api/captcha/v1/tasks/<id>?wait=30"
A solved task (cost fields left out):
{
"id": "2b7d4e91-0c6a-4f35-8e2d-1a9b8c7d6e50",
"type": "captchafox",
"status": "solved",
"website_host": "example.com",
"attempts": 1,
"created_at": "2026-10-30T10:00:00Z",
"completed_at": "2026-10-30T10:00:05Z",
"solution": {
"token": "eyJhbGciOiJIUzI1NiJ9.eyJzayI6..."
},
"error": null
}
Use the answer
- Put
solution.tokenin the form fieldcaptchafox-solutionand send the form. - Send it to the same site and page you gave as
website_url. - If the page sends the token in JSON or a header instead, copy what the page does.
- Use the token soon, and only once.
Compatible API names
Change your tool’s address to https://draxon.one/api/captcha/compat and use your DraxonCloud key as the client key.
| Service style | Name for this type |
|---|---|
CapSolver / Anti-Captcha createTask |
CaptchaFoxTask, CaptchaFoxTaskProxyless |
2Captcha in.php |
method=captchafox |
curl -s "https://draxon.one/api/captcha/compat/in.php?key=$DRAXON_KEY&method=captchafox&sitekey=sk_your_captchafox_site_key&pageurl=https://example.com/contact&json=1"
Then poll res.php?action=get&id=<id>&json=1 until it returns the token. With createTask, read solution.token from getTaskResult. See Compatible APIs.
Errors and fixes
When you create a task:
| Error | What it means | What to do |
|---|---|---|
422 validation_error on website_key |
The site key is missing. | Copy it from data-sitekey on the page. |
422 validation_error on website_url |
Not a full http(s):// address, or too long. |
Send the full page address. |
422 target_blocked |
This website is not served. | Pick a site you are allowed to automate. |
402 insufficient_balance / spend_cap_reached |
Not enough funds, or the key’s daily limit. | Add funds or raise the limit. |
When a task ends without a token:
error.code |
What it means | What to do |
|---|---|---|
solve_failed |
The captcha could not be passed, often because the site key or page is wrong. | Check both and send a new task. |
provider_timeout |
It took too long. | Try again. |
expired |
Not finished within about 3 minutes. | Try again. |
None of these cost anything. The site refuses the token? Check that the site key belongs to the page you submit on and that the token went into captchafox-solution. More codes on the errors page.
Price and billing
Each solved CaptchaFox costs the price on the pricing page, also in GET /api/captcha/v1/families. Creating a task holds the amount, a solved task is charged, a failed or expired one is released at no cost.
Related
- CaptchaFox solver: the short overview
- Solve a captcha: the general guide
- Compatible APIs
- Errors
- Webhooks