NeuroCaptcha

GeeTestTaskProxylessV4

Parameters, request and response for GeeTest v4 without a proxy: the GeeTestTaskProxylessV4 task type.

On this page

GeeTest v4: the captcha created by initGeetest4({captchaId}); the page loads it from gcaptcha4.geetest.com. The task is solved from our IP addresses — no proxy needed.

Price$0.90 per 1000 tasks ($0.0009 per task), only for solved tasks — pricing
Proxynot needed
Queue in getQueueStats—
Also accepted asGeeTestV4TaskProxyless, GeeTestV4TaskProxyLess

Parameters#

Fields of the task object in createTask:

type
stringrequired
GeeTestTaskProxylessV4
websiteURL
stringrequired
Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
captchaId
stringrequired
GeeTest v4 captcha_id (captchaId of initGeetest4, the captcha_id parameter of gcaptcha4.geetest.com/load). Also accepted as initParameters.captcha_id or gt.
userAgent
string
User-Agent of the browser that will submit the token, up to 512 characters. It is returned in solution.userAgent.
cookies
string
Cookies of the target site for the solving browser: name=value; name2=value2, up to 8192 characters. Stored encrypted.

Request#

POST /createTask
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "GeeTestTaskProxylessV4",
    "websiteURL": "https://example.com/login",
    "captchaId": "e392e1d7fd421dc63325744d5a2b9c73"
  }
}

Complete example#

Create the task, poll every 2 seconds, print the solution:

import os
import time

import requests

API = "https://neurocaptcha.com"
KEY = os.environ["API_KEY"]


def call(method, payload):
    data = requests.post(f"{API}/{method}", json={"clientKey": KEY, **payload}, timeout=30).json()
    if data.get("errorId"):
        raise RuntimeError(f'{data["errorCode"]}: {data.get("errorDescription", "")}')
    return data


task = {
    "type": "GeeTestTaskProxylessV4",
    "websiteURL": "https://example.com/login",
    "captchaId": "e392e1d7fd421dc63325744d5a2b9c73",
}

# 1. create the task: its price is held, not charged
task_id = call("createTask", {"task": task})["taskId"]

# 2. poll every 2 s; a failed task raises with its error code and costs nothing
deadline = time.time() + 300
while time.time() < deadline:
    time.sleep(2)
    result = call("getTaskResult", {"taskId": task_id})
    if result["status"] == "ready":
        print(result["solution"])
        break
else:
    raise TimeoutError("the task was not solved in time")

Response#

getTaskResult once the task is solved:

getTaskResult
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "captcha_id": "e392e1d7fd421dc63325744d5a2b9c73",
    "lot_number": "7f8f5c3c0a4e4b5a9d…",
    "pass_token": "a1b2c3d4e5f6…",
    "gen_time": "1793370007",
    "captcha_output": "Ttq9xH4dTq…",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"
  },
  "cost": "0.000900",
  "ip": "198.51.100.7",
  "createTime": 1793370000,
  "endTime": 1793370007,
  "solveCount": 1
}

Tips#

  • Find captchaId in the initGeetest4 call or in the captcha_id parameter of the load request.
  • Send captcha_id, lot_number, pass_token, gen_time and captcha_output the way the page sends them after its own check.
  • GeeTestTask and GeeTestTaskProxyless with "version": 4 are accepted too and solved as v4.
  • If the site binds the answer to the IP address, switch to the type with your proxy.