GeeTest v4
Solve GeeTest v4 with the geetest type: find the captcha_id, create the task, send pass_token, lot_number, gen_time and captcha_output.


Use the geetest type to pass a GeeTest v4 widget. You send the page address and the captcha_id. You get back the five values the site’s backend checks with GeeTest.
Overview
GeeTest v4 (Adaptive CAPTCHA, script gt4.js) either lets a visitor through with one click or shows a puzzle: slide a piece into a gap, click icons in order, Gobang or IconCrush. GeeTest picks the puzzle; the type and the price are the same for all of them. When it is passed, the widget gives the page captcha_id, lot_number, pass_token, gen_time and captcha_output, and the site validates all five together.
type |
geetest |
| Needs a site key | Yes: the captcha_id (32 hex characters) |
| Optional extras | proxy |
| You get | solution.token (pass_token), solution.captcha_id, solution.lot_number, solution.gen_time, solution.captcha_output |
GeeTest v3 (gt.js, a gt + challenge pair) is a different captcha and is not covered by this type.
Before you start
- Create an API key in the dashboard under API keys (it starts with
drx_) and add funds. - Find the
captcha_id:- Open the developer tools, go to Network, and reload the page.
- Filter for
loadand open the request togcaptcha4.geetest.com/load. - Its
captcha_idparameter is the value. Or search the page source forcaptchaId, the option passed toinitGeetest4.
- Pass the captcha once by hand with Network open and note where the page sends
lot_number,captcha_output,pass_tokenandgen_time. You will send ours the same way.
Request fields
| Field | Required | What to put |
|---|---|---|
type |
Yes | geetest |
website_url |
Yes | The full address of the page with the widget, starting with https://. |
website_key |
Yes | The captcha_id. |
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: login-8812" \
-d '{
"type": "geetest",
"website_url": "https://example.com/login",
"website_key": "e392e1d7fd421dc63325744d5a2b9c73"
}'
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": "geetest",
"website_url": "https://example.com/login",
"website_key": "e392e1d7fd421dc63325744d5a2b9c73",
}).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":
s = task["solution"]
form = {
"username": "you", "password": "...",
"lot_number": s["lot_number"], "captcha_output": s["captcha_output"],
"pass_token": s["token"], "gen_time": s["gen_time"],
}
requests.post("https://example.com/login", 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: "geetest",
website_url: "https://example.com/login",
website_key: "e392e1d7fd421dc63325744d5a2b9c73",
}),
})).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 s = task.solution;
const body = new URLSearchParams({
lot_number: s.lot_number, captcha_output: s.captcha_output,
pass_token: s.token, gen_time: s.gen_time,
});
await fetch("https://example.com/login", { method: "POST", body });
}
The field names in the form are only an example; use the names and the request the page itself uses.
Get the result
Most tasks finish in a few seconds; a slide or icon puzzle can take a little longer. 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": "geetest",
"status": "solved",
"website_host": "example.com",
"attempts": 1,
"created_at": "2026-10-31T10:00:00Z",
"completed_at": "2026-10-31T10:00:07Z",
"solution": {
"token": "9f2f7c0b8d1e4a6b...",
"captcha_id": "e392e1d7fd421dc63325744d5a2b9c73",
"lot_number": "7a3c1b6f0e2d4c5b8a9f0e1d2c3b4a59",
"gen_time": "1793440000",
"captcha_output": "Wnr3Zx1R5pS0..."
},
"error": null
}
Use the answer
- Send
lot_number,captcha_output,gen_timeandsolution.tokenaspass_tokenin the same request, with the same names, as the page does. Some pages also sendcaptcha_id. - All five belong to one solve. Never mix values from two tasks.
- Use them soon, once. They expire after a short time.
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 |
GeeTestV4Task, GeeTestV4TaskProxyless (websiteKey or captchaId) |
2Captcha in.php |
method=geetest_v4 with captcha_id and pageurl |
curl -s -X POST https://draxon.one/api/captcha/compat/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "'"$DRAXON_KEY"'",
"task": {
"type": "GeeTestV4TaskProxyless",
"websiteURL": "https://example.com/login",
"captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
}
}'
When getTaskResult says ready, solution holds pass_token, captcha_id, lot_number, gen_time and captcha_output. With 2Captcha’s res.php, request is that same five-field object (as JSON text after OK| without json=1). 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 captcha_id is missing. |
Send the captcha_id. |
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 an answer:
error.code |
What it means | What to do |
|---|---|---|
solve_failed |
GeeTest did not accept an answer in time, refused the captcha_id, or served a puzzle kind we do not handle yet. |
Check the captcha_id, 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 GeeTest 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
- GeeTest solver: the short overview
- Solve a captcha: the general guide
- Compatible APIs
- Errors
- Webhooks