Geetest v4 Captcha Solver
Solve GeeTest v4 challenges using the GeetestImage task type. Set gtv: 4 and provide the v4 captchaId. The question field determines the challenge mode.
Supported Modes
| Mode | question | Input | Response |
|---|---|---|---|
| Slide | slide | Background + slider (2 images) | [x, y] coordinates |
| Icon | icon | Main image + examples | Click coordinates |
| SVG Icon | geetest_svgicon:<prompt> | Main SVG + example image | Object index + geometry |
| Nine-Grid | nine | 9 grid images | Matching cell indices |
| Winlinze | winlinze | 25 grid images | Cell indices |
Create Task — Slide
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "GeetestImage",
"gtv": 4,
"question": "slide",
"queries": ["BASE64_BACKGROUND", "BASE64_SLIDER"],
"captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
}
}
Response
{
"code": 200,
"msg": "",
"answers": [142, 160]
}
Create Task — Icon Click
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "GeetestImage",
"gtv": 4,
"question": "icon",
"queries": ["BASE64_MAIN_IMAGE"],
"examples": ["BASE64_TARGET_1", "BASE64_TARGET_2"],
"captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
}
}
Create Task — SVG Icon
Use geetest_svgicon when GeeTest renders the challenge as SVG. Send the main SVG plus the example image and include the target count in the question text.
POST
/createTaskHostapi.captchasonic.com
Content-Typeapplication/json
{
"apiKey": "YOUR_API_KEY",
"task": {
"type": "GeetestImage",
"captchaId": "54088bb07d2df3c46b79f80300b0abbe",
"queries": ["main-image-svg-base64"],
"examples": ["example-png-base64"],
"question": "geetest_svgicon:Select 1 images with",
"websiteURL": "https://gt4.geetest.com/demov4/icon-popup-en.html"
}
}
SVG Icon Response
{
"code": 200,
"msg": "",
"answers": {
"objects": [0],
"cell": 0,
"col": 0,
"row": 0,
"cols": 2,
"rows": 2,
"x": 0.242,
"y": 0.24,
"viewbox_x": 72.5,
"viewbox_y": 62.5,
"frame": 2,
"loop_ms": 5864,
"visible_from_ms": 2446,
"visible_to_ms": 4193,
"score": 0.592
}
}
objectscontains the matching object index. Geometry fields give the normalized position, SVGviewBoxtranslation and grid dimensions; timing fields describe the animation frame in which the icon was visible.
Task Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | string | ✅ | GeetestImage or GeetestClassification |
gtv | integer | No | GeeTest version — 4 for v4 |
question | string | ✅ | slide, icon, nine, match, winlinze, or geetest_svgicon:<prompt> |
queries | string[] | ✅ | Base64-encoded images |
examples | string[] | Icon / SVG Icon | Target reference images |
captchaId | string | ✅ | GeeTest v4 captcha_id |
websiteURL | string | ✅ | Page containing the GeeTest challenge |
proxy | string | No | Proxy URL if needed |
API Playground
POST
Log in to auto-fill your API key
Payload
Response
Hit Send to see response
⌘ + Enter
Parameters
Error Codes
terminal