MTCaptcha
Solve MTCaptcha with the mtcaptcha type: find the MTPublic site key and action, create the task, put the token in mtcaptcha-verifiedtoken.
Use the mtcaptcha type to get a verified token for an MTCaptcha widget. You send the page address and the site key. You get back the token that goes in the mtcaptcha-verifiedtoken form field.
Overview
MTCaptcha shows a short line of letters and numbers over a photo, with some characters inside a colored oval. When it is passed, the widget puts a verified token in the form, and the site checks that token with MTCaptcha.
type |
mtcaptcha |
| Needs a site key | Yes (MTPublic-…) |
| Optional extras | action, proxy |
| You get | solution.token: the verified token, v1(…) |
Before you start
- Create an API key in the dashboard under API keys (it starts with
drx_) and add funds. - Find the site key:
- Open the browser console on the page and type
mtcaptchaConfig.sitekey, or - open the page source and search for
MTPublic-.
- Open the browser console on the page and type
- Check for an action:
- Open the developer tools, go to Network, and reload the page.
- Filter for
getchallenge.jsonand look at itsactparameter. - If it is
$, the page sets no action. Anything else is the action to send.
- Note the page address. MTCaptcha checks that the page’s domain is allowed for the site key.
Request fields
| Field | Required | What to put |
|---|---|---|
type |
Yes | mtcaptcha |
website_url |
Yes | The full address of the page with the widget, starting with https://. |
website_key |
Yes | The site key, MTPublic-…. |
action |
No | The widget’s action (act), only if it is not $. |
proxy |
No | user:pass@host:port, or with a scheme like http:// or socks5://. |
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: signup-6620" \
-d '{
"type": "mtcaptcha",
"website_url": "https://example.com/signup",
"website_key": "MTPublic-xxxxxxxxx"
}'
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": "mtcaptcha",
"website_url": "https://example.com/signup",
"website_key": "MTPublic-xxxxxxxxx",
}).json()
while task["status"] in ("queued", "processing"):
task = requests.get(f"{API}/tasks/{task['id']}", params={"wait": 60},
headers=HEADERS, timeout=90).json()
if task["status"] == "solved":
form = {"email": "[email protected]", "mtcaptcha-verifiedtoken": task["solution"]["token"]}
requests.post("https://example.com/signup", 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: "mtcaptcha",
website_url: "https://example.com/signup",
website_key: "MTPublic-xxxxxxxxx",
}),
})).json();
while (task.status === "queued" || task.status === "processing") {
task = await (await fetch(`${API}/tasks/${task.id}?wait=60`, { headers })).json();
}
if (task.status === "solved") {
const body = new URLSearchParams({ "mtcaptcha-verifiedtoken": task.solution.token });
await fetch("https://example.com/signup", { method: "POST", body });
}
Get the result
MTCaptcha makes every visitor wait a few seconds before an answer counts, so a solve takes a little longer than a click captcha. Use ?wait=60 (0 to 120 seconds) to get the answer in one request.
curl -s -H "Authorization: Bearer $DRAXON_KEY" \
"https://draxon.one/api/captcha/v1/tasks/<id>?wait=60"
A solved task (cost fields left out):
{
"id": "c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"type": "mtcaptcha",
"status": "solved",
"website_host": "example.com",
"attempts": 1,
"created_at": "2026-10-31T10:00:00Z",
"completed_at": "2026-10-31T10:00:12Z",
"solution": {
"token": "v1(e892d5ff,8d46b596,MTPublic-xxxxxxxxx,87941a5c0c68...)"
},
"error": null
}
Use the answer
- Put
solution.tokenin the hiddenmtcaptcha-verifiedtokenfield and submit the form. - If the page sends the token another way, copy what the page does (watch the Network tab once).
- Use the token soon, on the same site. It expires after a short time and is meant for one form.
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 / 2Captcha createTask |
MtCaptchaTask, MtCaptchaTaskProxyless |
2Captcha in.php |
method=mt_captcha |
curl -s -X POST https://draxon.one/api/captcha/compat/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "'"$DRAXON_KEY"'",
"task": {
"type": "MtCaptchaTaskProxyless",
"websiteURL": "https://example.com/signup",
"websiteKey": "MTPublic-xxxxxxxxx"
}
}'
When getTaskResult says ready, read the token from solution.token. 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. | Send the MTPublic-… key. |
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 |
No answer was accepted in time, or MTCaptcha refused the request (for example a site key that does not belong to the page’s domain). | Check the site key and page address, then send a new task. |
provider_timeout |
It took too long. | Try again. With a lot of traffic from one address, add a rotating proxy. |
expired |
Not finished within about 3 minutes. | Try again. |
None of these cost anything. More codes are on the errors page.
Price and billing
Each solved MTCaptcha costs the price on the pricing page, also returned by GET /api/captcha/v1/families. Creating a task holds the amount. You are charged only when the task is solved. A failed or expired task releases the hold.
Related
- MTCaptcha solver: the short overview
- Solve a captcha: the general guide
- Compatible APIs
- Errors
- Webhooks