anycaptcha.com
Searchโ€ฆ
HCAPTCHA Grid base click
To solve the HCaptcha (Grid based click) - you must send us 9 pictures (base64) and challenge caption of the captcha.
The base64 of each image must be downloaded directly from hcaptcha's link (you can find 9 download links for these images in Elements in the browser's devtools) - Cropped images will not produce accurate results
The order of 9 images you upload will be understood by our system in the following way

1. CREATE TASK

Request

POST https://api.anycaptcha.com/createTask
name
type
required
description
clientKey
text
yes
client account key, can be found hereโ€‹
task.type
text
yes
HCaptchaClickTask
task.ChallengeCaption
text
yes
The challenge caption. E.g: Please click each image containing a car
task.ImageIndex1
text
yes
The base64 of image at position 1
task.ImageIndex2
text
yes
The base64 of image at position 2
task.ImageIndex3
text
yes
The base64 of image at position 3
task.ImageIndex4
text
yes
The base64 of image at position 4
task.ImageIndex5
text
yes
The base64 of image at position 5
task.ImageIndex6
text
yes
The base64 of image at position 6
task.ImageIndex7
text
yes
The base64 of image at position 7
task.ImageIndex8
text
yes
The base64 of image at position 8
task.ImageIndex9
text
yes
The base64 of image at position 9
POST /createTask HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
โ€‹
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "HCaptchaClickTask",
"ChallengeCaption": "Please click each image containing a car",
"ImageIndex1": "base64 of image 1",
"ImageIndex2": "base64 of image 2",
"ImageIndex3": "base64 of image 3",
"ImageIndex4": "base64 of image 4",
"ImageIndex5": "base64 of image 5",
"ImageIndex6": "base64 of image 6",
"ImageIndex7": "base64 of image 7",
"ImageIndex8": "base64 of image 8",
"ImageIndex9": "base64 of image 9"
}
}

Response

success
error
server will return errorId = 0 and taskId for success
{
"errorId": 0,
"taskId": 123456
}
server will return errorId > 0 and errorCode
{
"errorId": 1,
"errorCode": "ERROR_KEY_DOES_NOT_EXIST",
"errorDescription": "ERROR_KEY_DOES_NOT_EXIST"
}

2. GET TASK RESULT

Request

POST https://api.anycaptcha.com/getTaskResult
name
type
required
description
clientKey
text
yes
client account key, can be found hereโ€‹
taskId
number
yes
the taskId
POST /getTaskResult HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
โ€‹
{
"clientKey": "YOUR_API_KEY",
"taskId": 123456
}

Response

success
processing
error
{
"errorId": 0,
"status": "ready",
"solution": {
"ImageResult1": "CLICK",
"ImageResult2": "NONE",
"ImageResult3": "CLICK",
"ImageResult4": "CLICK",
"ImageResult5": "NONE",
"ImageResult6": "NONE",
"ImageResult7": "NONE",
"ImageResult8": "NONE",
"ImageResult9": "NONE"
}
}
{
"errorId": 0,
"status": "processing"
}
{
"errorId": 1,
"errorCode": "ERROR_CAPTCHA_UNSOLVABLE",
"errorDescription": "ERROR_CAPTCHA_UNSOLVABLE"
}
  • errorId = 0 and status = ready : Solved successfully, read result in solution
  • errorId = 0 and status = processing: The task is not ready yet, sleep 2s then remake
  • errorId > 0: error identifier. Error code and short description transferred in errorCode and errorDescription properties
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹
โ€‹