Explainers

GeeTest v4 CAPTCHA Changes and Solving Guide

GeeTest v4 brings significant changes in architecture, challenge types, and integration patterns compared to v3. This guide explains what changed, how to detect v4, and where CaptchaAI stands: it solves GeeTest v3. It does not solve GeeTest v4.


GeeTest v3 vs v4 — Key Differences

Feature GeeTest v3 GeeTest v4
Initialization gt + challenge from server captcha_id only
Challenge parameter Required from API call Generated client-side
Challenge types Slide, click Slide, click, icon select, space reasoning
Validation Server returns challenge Uses lot_number + pass_token
API endpoint api.geetest.com gcaptcha4.geetest.com
Difficulty scaling Fixed Adaptive risk scoring

Extracting GeeTest v4 Parameters

# extract_geetest_v4.py
import re
from selenium import webdriver


def extract_geetest_v4_params(url):
    """Extract GeeTest v4 captcha_id from a page."""
    driver = webdriver.Chrome()
    driver.get(url)

    page_source = driver.page_source

    # GeeTest v4 uses captcha_id instead of gt
    match = re.search(r'captcha_id["\']?\s*[:=]\s*["\']([a-f0-9]+)', page_source)
    captcha_id = match.group(1) if match else None

    # Check for v4-specific script
    is_v4 = "gcaptcha4" in page_source or "gt4.js" in page_source

    driver.quit()

    return {
        "captcha_id": captcha_id,
        "is_v4": is_v4,
        "pageurl": url,
    }


# Usage
params = extract_geetest_v4_params("https://example.com/login")
print(f"Captcha ID: {params['captcha_id']}")
print(f"Is v4: {params['is_v4']}")

Where CaptchaAI Fits

CaptchaAI solves GeeTest v3. It does not solve GeeTest v4. Its geetest method takes the v3 values (gt, a fresh challenge and pageurl) and returns challenge, validate and seccode. It has no v4 parameters, so don't send a v4 captcha_id as gt. Run the check above first: if the page loads gcaptcha4.geetest.com or gt4.js, it runs v4 and CaptchaAI can't solve it. If the page still runs v3, How to Solve GeeTest v3 Using API walks through the full flow.


How v4 Validation Differs

On a v3 page, a pass gives three values, geetest_challenge, geetest_validate and geetest_seccode, which the site's backend checks with GeeTest. On a v4 page, captchaObj.getValidate() returns four values instead: lot_number, captcha_output, pass_token and gen_time. The site's backend sends them to GeeTest's v4 /validate endpoint on gcaptcha4.geetest.com, with its captcha_id and a sign_token signed with its private key (GeeTest's v4 web API and server API docs). Code that reads or fills the three v3 fields has nothing to work with on a v4 page.


v4 Challenge Types

Slide Puzzle

The classic slide-to-match challenge. User drags a puzzle piece.

Click Selection

User clicks specific objects (e.g., "click all faces"). Uses icon recognition.

Space Reasoning

New in v4 — user arranges shapes in a spatial pattern. More complex than v3.

Icon Match

User matches icons shown in a sequence. Harder to automate manually.

Whichever of these a page shows, it's GeeTest v4, and CaptchaAI can't solve it. CaptchaAI solves GeeTest v3.


Troubleshooting

Issue Cause Fix
gt / challenge lookup finds nothing on a page that used to work The site moved to GeeTest v4, which has no server-issued challenge Check the page for gcaptcha4.geetest.com or gt4.js; CaptchaAI solves GeeTest v3 only
ERROR_WRONG_CAPTCHA_ID from CaptchaAI Invalid gt or challenge, such as a v4 captcha_id sent as gt Send the page's v3 gt and a fresh challenge for each request
captcha_id not found JavaScript-rendered Use Selenium to extract from rendered page

FAQ

How do I know if a site uses GeeTest v3 or v4?

Look for gcaptcha4.geetest.com or gt4.js in the page source for v4. If you see api.geetest.com and a challenge parameter, it's v3.

Is GeeTest v4 harder to solve than v3?

CaptchaAI solves GeeTest v3. It does not solve GeeTest v4, so there's no solve data to compare. For your code, the bigger change is structural: v4 has no server-issued challenge, and a pass returns four values instead of three, so a v3 integration can't simply be pointed at a v4 page.

What's the success rate for GeeTest v4?

There's no v4 rate to give. CaptchaAI solves GeeTest v3 with a high success rate. It does not solve GeeTest v4.



Solve GeeTest v3 — start with CaptchaAI. It does not solve GeeTest v4.

Comments are disabled for this article.