Skip to content
voidcaptcha

Task type

Tencent TCaptcha solver API

Tencent Cloud Captcha (TCaptcha) protects sign-up, login and SMS-code forms. We solve its slider puzzle, on the current TJNCaptcha-global.js edition and on the older TCaptcha-global.js one. Send the page URL, the numeric appId and your proxy, and you get back the ticket and randstr that the page passes to its own server, plus the User-Agent they were earned with. A residential proxy is required: Tencent refuses challenges answered from datacentre addresses. Icon-click and word-click challenges are not supported yet; if a site serves one, the task fails and is not charged.

Tip

Send task.type as TencentTask and the solution arrives in solution.ticket, with solution.randstr beside it.

Before you integrate

  1. The ticket is valid for five minutes and can be verified once.
  2. Use a residential proxy, and the same exit for the request that submits the ticket.
  3. If the site serves an icon-click or word-click challenge instead of a slider, the task fails with ERROR_CAPTCHA_UNSOLVABLE and costs nothing.

A site that will not solve is worth telling us about — coverage is per target as much as per type. The quickest route is Telegram (@VoidCaptchaSupport), where someone usually answers within minutes. You can also open a ticket from your dashboard or email [email protected]. Send the URL and the site key either way.

Warning

This type is in beta. It solves, but the success rate still moves between target sites, so no single figure is published yet. Failures are refunded exactly as they are everywhere else.
task.type
TencentTask
Median
57s
over 1,001 solves, 30d
Success
62.8%
Price / 1k
$1.20
$0.0012 each
Proxy
Required

Solve request#

Solving Tencent TCaptcha is a single synchronous call. You post one task object and the response carries the finished solution — no task id to store, nothing to poll for.

POSThttps://api.voidcaptcha.com/v1/getResult

The connection is held open for the whole solve, which for this type runs a median of 57s. Set a client timeout that covers it — the default socket timeout in most HTTP libraries is shorter than the work. If holding a connection that long does not suit your worker fleet, the same task goes to /v1/createTask and you collect it from /v1/checkTask instead.

When to use it#

  • Sign-up and login forms protected by the Tencent slider
  • SMS and email code requests behind Tencent Cloud Captcha
  • Regression tests of your own Tencent-protected pages

Task object structure#

These fields go inside task. The envelope around it — clientKey and the optional softId — is the same for every type and is described in the API reference.

PropertyTypeRequiredDescription
typestringRequiredLiteral "TencentTask". Matching is case-insensitive.
websiteURLstringRequiredThe page the captcha is on.e.g. https://example.com/signup
appIdstringRequiredThe numeric CaptchaAppId passed to new TencentCaptcha(...) on the page.e.g. 189918153
proxystringRequiredRequired. A residential exit; Tencent refuses datacentre addresses. Accepts host:port, host:port:user:pass, or a full http:// URL.e.g. proxy.example.com:9090:user:pass

Example payload#

The whole body, assembled from the table above — copy it formatted to read, or on one line to paste straight into a terminal or a REST client. The values are placeholders: swap the key for your own and the URL and site key for the page you are solving.

POSThttps://api.voidcaptcha.com/v1/getResult
{
  "clientKey": "void_a1b2c3d4e5f60718293a4b5c6d7e8f90",
  "task": {
    "type": "TencentTask",
    "websiteURL": "https://example.com/signup",
    "appId": "189918153",
    "proxy": "proxy.example.com:9090:user:pass"
  }
}

Example request#

The smallest thing that gets a token back, in your language. Python and Node.js use the official client (pip install voidcaptcha, npm install voidcaptcha); every other language makes the HTTP call its standard library already has. The complete version, with the key read from the environment and the error envelope checked, is in Sample code at the bottom of this page.

Language choice is remembered across the whole site, so switching here carries to every other sample in the docs.

# pip install voidcaptcha
from voidcaptcha import VoidCaptcha

client = VoidCaptcha("void_a1b2c3d4e5f60718293a4b5c6d7e8f90")

result = client.solve({
    "type": "TencentTask",
    "websiteURL": "https://example.com/signup",
    "appId": "189918153",
    "proxy": "proxy.example.com:9090:user:pass",
})

print(result["ticket"])

Example response#

A successful solve returns errorId: 0 and a solution object. The result is in solution.ticket; alongside it is the userAgent the solve ran under.

solution carries those and nothing else — the gateway copies the result field, anything extra this type returns, and userAgent across, and drops the rest of whatever the solver sent. Timing arrives at the top level as elapsedMs, present only when the duration is known, beside cost and your remaining balance. The figures below are illustrative: nothing here is a published median.

This type also returns solution.randstr. Submit it together with the ticket: Tencent rejects one without the other.

JSON
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "ticket": "tr03cZSJwqCg…",
    "randstr": "@eQF",
    "userAgent": "Mozilla/5.0 …"
  },
  "cost": "$0.0012",
  "balance": "$411.24",
  "elapsedMs": 4820
}

Send that userAgent on your downstream request as well — for the cookie-based types the result is bound to it and will be rejected under a different one.

Errors for this type#

The codes Tencent TCaptcha can return, on top of the shared authentication and billing set. Branch on errorCode, not on the HTTP status.

CodeHTTPMeaningRetry
ERROR_KEY_MISSING401No clientKey was supplied.Do not retry
ERROR_KEY_INVALID401The key does not exist or has been revoked.Do not retry
ERROR_KEY_SUSPENDED403The account attached to this key is suspended.Do not retry
ERROR_TYPE_NOT_ENABLED403This account is not enabled for the requested task type.Do not retry
ERROR_REQUIRED_FIELD400A field this task type requires was absent.Do not retry
ERROR_SITEKEY_INVALID400The site key was malformed, or does not belong to that URL.Do not retry
ERROR_PROXY_CONNECT200Your proxy refused the connection or timed out.Retry
ERROR_CAPTCHA_UNSOLVABLE200The challenge was served but could not be completed.Retry
ERROR_INSUFFICIENT_BALANCE402Your balance will not cover this solve.Do not retry
ERROR_THREAD_LIMIT429You have more solves in flight than your key permits.Retry with backoff
ERROR_RATE_LIMITED429Too many requests in a short window.Retry with backoff

Every code, with the fix for each, is on the error reference. A failed solve is never charged.

Sample code#

A complete file: key from the environment, task built, errors handled, result used. Python and Node.js use the official SDK (pip install voidcaptcha, npm install voidcaptcha); the other languages call the endpoint directly.

# pip install voidcaptcha
import sys

import voidcaptcha

# The key comes from the VOIDCAPTCHA_KEY environment variable. A key in a
# committed script is a key someone else is already spending.
client = voidcaptcha.VoidCaptcha()

try:
    result = client.solve({
        "type": "TencentTask",
        "websiteURL": "https://example.com/signup",
        "appId": "189918153",
        "proxy": "proxy.example.com:9090:user:pass",
    })
except voidcaptcha.SolveError as e:
    # The solve failed. It was not charged, and it is safe to retry.
    sys.exit(f"{e.code}: {e.description}")
except voidcaptcha.VoidCaptchaError as e:
    # Key, balance, limits or a bad request; e.retryable says if a retry helps.
    sys.exit(f"{e.code}: {e.description}")

print(result["ticket"])
# Carry the User-Agent downstream - the result was earned under it.
print(result.user_agent)
print(result.cost)

Last updated on 2 August 2026