Skip to main content
Are you experiencing issues obtaining the token?
Contact support

TenDI - Tencent captcha

Tencent captcha
$1.6 / 1000 tokens
99%
More on the topic in our blog
Attention!

This task will be performed using our proxy servers.

Request parameters

type<string>required

CustomTask


class<string>required

TenDI


websiteURL<string>required

The address of the main page where the captcha is solved.


websiteKey<string>required

captchaAppId. For example "websiteKey": "189123456" - is a unique parameter for your site. You can take it from an html page with a captcha or from traffic (see description below).


userAgent<string>optional

Browser User-Agent. Pass only the actual UA from Windows OS. Now this is version: userAgentPlaceholder


proxyType<string>optional

http - regular http/https proxy;
https - try this option only if "http" doesn't work (required for some custom proxies);
socks4 - socks4 proxy;
socks5 - socks5 proxy.


proxyAddress<string>optional

IPv4/IPv6 proxy IP address. Not allowed:

  • using of hostnames;
  • using transparent proxies (where you can see the client's IP);
  • using proxies on local machines.


proxyPort<integer>optional

Proxy port.


proxyLogin<string>optional

Proxy-server login.


proxyPassword<string>optional

Proxy-server password.

How to get websiteKey (captchaAppId)

Turn on the developer tools, go to the Network tab, activate the captcha and look at the requests. Some of them will contain the parameter value you need. In this case websiteKey=aid

Create task method

POST
https://api.capmonster.cloud/createTask

Request

{
"clientKey": "API_KEY",
"task": {
"type": "CustomTask",
"class": "TenDI",
"websiteURL": "https://domain.com",
"websiteKey": "189123456",
"userAgent": "userAgentPlaceholder"
}
}

Response

{
"errorId":0,
"taskId":407533072
}

Get task result method

Use the getTaskResult method to get the TenDI solution.

POST
https://api.capmonster.cloud/getTaskResult

Request

{
"clientKey":"API_KEY",
"taskId": 407533072
}

Response

{
"errorId":0,
"status":"ready",
"solution": {
"data": {
"randstr": "@EcL",
"ticket": "tr03lHUhdnuW3neJZu.....7LrIbs*"
},
"headers": {
"User-Agent": "userAgentPlaceholder"
}
}
}

Use SDK Library

# https://github.com/ZennoLab/capmonstercloud-client-python

import asyncio
from capmonstercloudclient import CapMonsterClient, ClientOptions
from capmonstercloudclient.requests import TenDiCustomTaskProxylessRequest

client_options = ClientOptions(api_key="your_api_key") # Replace with your CapMonster Cloud API key
cap_monster_client = CapMonsterClient(options=client_options)

ten_di_request = TenDiCustomTaskProxylessRequest(
websiteUrl="https://example.com", # URL with the captcha
websiteKey="189956587", # Replace with the website key for the captcha
userAgent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" # Use the current userAgent
)

async def solve_captcha():
return await cap_monster_client.solve_captcha(ten_di_request)

responses = asyncio.run(solve_captcha())
print(responses)