Skip to Content
AnySolver logo
AnySolver
Token

TencentCaptchaTokenProxyLess

Solve a Tencent Captcha (TCaptcha) without providing a proxy and get the ticket and randstr to submit. With the schema, an example and provider prices.

TencentCaptchaTokenProxyLess solves a Tencent Captcha challenge from the provider's own network and returns the ticket and randstr that the site's backend verifies with Tencent. The CAPTCHA loads from TCaptcha.js and is common on Chinese websites.

If the site checks the address that submits the values, use TencentCaptchaToken with your proxy.

Find the parameters

appId is the first argument of new TencentCaptcha(appId, callback, options), the call that starts the CAPTCHA. Search the page source for TencentCaptcha(, or look for the TCaptcha.js request in the Network tab. It is your CaptchaAppId, a string of digits such as 190014885.

captchaScript is optional. It is the URL of the CAPTCHA script the page loads. When you leave it out, the provider uses https://turing.captcha.qcloud.com/TCaptcha.js. Send it only if the page loads the script from somewhere else.

Use the result

The solution has ticket, randstr and, when the provider reports them, appId and ret (0 means the CAPTCHA was passed). The site verifies the ticket and the random string together, so submit both.

The second argument of new TencentCaptcha(appId, callback, options) is the callback that normally receives the result and forwards it to the site backend. Where you can reach that callback, call it with the solution you received. Otherwise build the request to the backend yourself with the ticket and randstr values.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
2Captcha
$2.99
CapMonster
$1.60
SolveCaptcha
$1.45

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page where the CAPTCHA is displayed.

Example: https://www.example.com/

appId*
stringYes

The CaptchaAppId passed to new TencentCaptcha(appId, callback) in the page source.

Example: 190014885

captchaScript
stringNo

URL of the TCaptcha.js script the page loads. Defaults to https://turing.captcha.qcloud.com/TCaptcha.js when omitted.

Example: https://turing.captcha.qcloud.com/TCaptcha.js

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TencentCaptchaTokenProxyLess",
        "websiteURL": "https://www.example.com/",
        "appId": "190014885"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
ticket*
stringYes

The Tencent captcha ticket. Pass it, with randstr, to the TencentCaptcha callback or the site backend.

Example: tr0344YjJASGmJGtohyWS_y6tJKiqVPIdFgl87vWlVaQoueR8D6DH28go-i-VjeassM31SXO7D0*

randstr*
stringYes

Random string issued with the ticket; the site verifies both together.

Example: @KVN

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.

appId
stringNo

The CaptchaAppId the ticket was issued for.

Example: 190014885

ret
numberNo

Tencent result code; 0 means the captcha was passed.

Example: 0