Tencent
Solve Tencent captchas with the NoCaptchaAI API.
Loading…
Solve Tencent captchas with the NoCaptchaAI API.
Loading…
POST https://api.nocaptchaai.com/createTask
The task type is TencentClassification. The questionType field determines the sub-type.
curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"questionType": "tencent_grid",
"type": "TencentClassification",
"websiteURL": "https://example.com",
"images": ["base64-slice-0", "...", "base64-slice-5"],
"question": "Select all images containing ships"
}
}'
curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"questionType": "tencent_click",
"type": "TencentClassification",
"websiteURL": "https://example.com",
"images": ["base64-background-image"],
"examples": ["base64-answer-example-image"]
}
}'
curl -X POST https://api.nocaptchaai.com/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"questionType": "tencent_slide",
"type": "TencentClassification",
"websiteURL": "https://example.com",
"images": ["base64-background-image"],
"examples": ["base64-piece-image"]
}
}'
// Grid / Click — points + original size:
{
"errorId": 0,
"solution": {
"sol": [[120, 90], [310, 40]],
"size": [344, 344]
}
}
// Slide — drag target:
{ "errorId": 0, "solution": { "slide": [120, 45] } }
sol is a list of [x, y] points; size is [width, height] of the original image (used for scaling).slide[0] / slide[1] give the drag target; optional size is used for scaling.answers instead of solution (both are accepted).import requests
API_KEY = "YOUR_API_KEY"; BASE = "https://api.nocaptchaai.com"
res = requests.post(f"{BASE}/createTask", json={
"clientKey": API_KEY,
"task": {
"questionType": "tencent_grid",
"type": "TencentClassification",
"websiteURL": "https://example.com",
"images": ["base64-slice-0", "base64-slice-1", "..."],
"question": "Select all images containing ships"
}
}).json()
print(res)