GeeTest task at a glance
GeeTestTokenProxyLess and GeeTestToken solve the GeeTest slide puzzle and return the verification fields the protected form or API expects. The version is chosen by the inputs you send, not by the task name.
| Field | v3 | v4 |
|---|---|---|
websiteURL |
required | required |
userAgent |
required | required |
gt |
required, 32 lowercase hex | do not send |
challenge |
required, fresh, 32 lowercase hex | do not send |
captchaId |
do not send | required, 32 lowercase hex |
proxy |
GeeTestToken only |
GeeTestToken only |
Send one input set per request. Custom API-host overrides, riskType and initParameters are not accepted. The GeeTest API reference lists the supported fields.
Identify GeeTest v3 or v4
v3 loads gt.js and calls initGeetest with a static gt key and a challenge that the site's server registers per page load. v4 loads gt4.js and calls initGeetest4 with a captchaId.

The solver handles v3 slide3 and v4 slide puzzles. A site can serve a different GeeTest challenge type to a visitor, and those types are outside this integration.
Result fields
| Version | solution fields |
Where they go |
|---|---|---|
| v3 | challenge, validate, seccode |
geetest_challenge, geetest_validate, geetest_seccode |
| v4 | captcha_id, lot_number, pass_token, gen_time, captcha_output |
the site's verification request, under the names its widget submits |
The values are already decoded; there is no JSON token to unpack. Keep them unchanged, submit every field of your version, and reuse the task's userAgent. No result returns a user agent.
Fresh v3 challenge
A v3 challenge identifies one verification attempt. Fetch it from the site's own register or init endpoint right before you create each task.

A task is charged when it is accepted, and a failed or timed-out task returns its original charge once. A solved credential can still be refused by the site's session or application checks.
The GeeTest v3 vs v4 guide walks through detection on a live page, the register request, a full request and replay example, and the rejection causes.
v3 request and response
Copy gt and a fresh challenge from the site's current register response. Send the following to POST /createTask; every value is illustrative:
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "GeeTestTokenProxyLess",
"websiteURL": "https://example.com/login",
"userAgent": "YOUR_SUPPORTED_USER_AGENT",
"gt": "0123456789abcdef0123456789abcdef",
"challenge": "abcdef0123456789abcdef0123456789"
}
}
Poll POST /getTaskResult with your clientKey and the returned taskId. A v3 ready result has this shape:
{
"errorId": 0,
"status": "ready",
"solution": {
"challenge": "<verified-challenge>",
"validate": "<verification-value>",
"seccode": "<verification-value>|jordan"
}
}
Submit all three values as geetest_challenge, geetest_validate and geetest_seccode to the same form session. Do not replace the returned challenge with a newly registered one.
v4 request and response
Read captchaId from initGeetest4 or its /load request. Do not include v3's gt or challenge:
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "GeeTestTokenProxyLess",
"websiteURL": "https://example.com/login",
"userAgent": "YOUR_SUPPORTED_USER_AGENT",
"captchaId": "0123456789abcdef0123456789abcdef"
}
}
The v4 ready result contains five separate strings:
{
"errorId": 0,
"status": "ready",
"solution": {
"captcha_id": "0123456789abcdef0123456789abcdef",
"lot_number": "<lot-number>",
"pass_token": "<pass-token>",
"gen_time": "<generation-time>",
"captcha_output": "<captcha-output>"
}
}
Send the complete five-field set through the site's verification request. Inspect an ordinary widget submission to determine whether the application expects form fields or a JSON wrapper. captchaId is a task input; captcha_id is a result field.
Examples in your language
The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints the whole solution. The tabs show a v3 task with gt and a fresh challenge; for v4 send captchaId instead of both. Post only a complete version-specific credential set, keep the page's current CSRF and session context, and adapt the submit transport when the site expects JSON instead of a form. For a v3 register endpoint that returns gt and challenge as JSON, fetch it in the session that submits the credential, so the registration cookies are retained.
import { SurSolver, TaskType } from 'sursolver';
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
const client = new SurSolver(API_KEY);
const { solution } = await client.solve({
type: TaskType.GeeTestTokenProxyLess,
websiteURL: 'https://example.com/login',
userAgent: USER_AGENT,
gt: '0123456789abcdef0123456789abcdef',
challenge: 'abcdef0123456789abcdef0123456789',
});
console.log(solution);
from sursolver import SurSolver, TaskType
API_KEY = "YOUR_API_KEY"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": TaskType.GeeTestTokenProxyLess,
"websiteURL": "https://example.com/login",
"userAgent": USER_AGENT,
"gt": "0123456789abcdef0123456789abcdef",
"challenge": "abcdef0123456789abcdef0123456789",
}
)
print(result.solution)
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": sursolver.TaskTypeGeeTestTokenProxyLess,
"websiteURL": "https://example.com/login",
"userAgent": UserAgent,
"gt": "0123456789abcdef0123456789abcdef",
"challenge": "abcdef0123456789abcdef0123456789",
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution)
}
use serde_json::json;
use sursolver::{Client, task_types};
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": task_types::GEE_TEST_TOKEN_PROXY_LESS,
"websiteURL": "https://example.com/login",
"userAgent": USER_AGENT,
"gt": "0123456789abcdef0123456789abcdef",
"challenge": "abcdef0123456789abcdef0123456789",
}))
.await?;
println!("{}", serde_json::Value::Object(result.solution));
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
use SurSolver\TaskTypes;
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => TaskTypes::GEE_TEST_TOKEN_PROXY_LESS,
'websiteURL' => 'https://example.com/login',
'userAgent' => USER_AGENT,
'gt' => '0123456789abcdef0123456789abcdef',
'challenge' => 'abcdef0123456789abcdef0123456789',
]);
echo json_encode($result->solution);
require "sursolver"
API_KEY = "YOUR_API_KEY"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => SurSolver::TaskTypes::GEE_TEST_TOKEN_PROXY_LESS,
"websiteURL" => "https://example.com/login",
"userAgent" => USER_AGENT,
"gt" => "0123456789abcdef0123456789abcdef",
"challenge" => "abcdef0123456789abcdef0123456789"
)
puts result.solution
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import com.sursolver.TaskTypes;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", TaskTypes.GeeTestTokenProxyLess,
"websiteURL", "https://example.com/login",
"userAgent", USER_AGENT,
"gt", "0123456789abcdef0123456789abcdef",
"challenge", "abcdef0123456789abcdef0123456789"));
System.out.println(result.solution());
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.GeeTestTokenProxyLess,
["websiteURL"] = "https://example.com/login",
["userAgent"] = UserAgent,
["gt"] = "0123456789abcdef0123456789abcdef",
["challenge"] = "abcdef0123456789abcdef0123456789",
});
Console.WriteLine(result.Solution);
Troubleshooting
| Symptom | Check | Correction |
|---|---|---|
| Request rejected before solving | Both versions were supplied, or a key is not 32 lowercase hex | Send exactly one input set |
| v3 verification is rejected | challenge came from an old register request or another session |
Register and solve immediately in the current session |
| v4 response is incomplete at the site | Only pass_token or a JSON token was submitted |
Submit all five decoded result fields |
| The widget serves another puzzle | A non-slide challenge was selected | That challenge type is outside this integration |
| Ready result is refused by the application | Session, User-Agent, proxy policy, field names or CSRF differ | Preserve the submitting session and inspect its normal verification payload |