Image To Text
Normal Captcha is an image that contains distored but human-readable text. To solve the captcha user have to type the text from the image. look like the pictures below

POST
https://api.anycaptcha.com/createTask
name | type | required | description |
clientKey | text | yes | |
task.type | text | yes | ImageToTextTask |
task.body | text | yes | image as base64 encoded |
task.subType | text | no | It can have one of the following values: COMMON AMAZON MICROSOFT BIDV BOT FACEBOOK GARENA NGOCRONG VIETCOMBANK VINAPHONE |
POST /createTask HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ImageToTextTask",
"body": "image as base64 encoded"
}
}
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"
}
POST
https://api.anycaptcha.com/getTaskResult
name | type | required | description |
clientKey | text | yes | |
taskId | number | yes | the taskId |
POST /getTaskResult HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"taskId": 123456
}
success
processing
error
{
"errorId": 0,
"status": "ready",
"solution": {
"text": "GU6HAZ"
}
}
{
"errorId": 0,
"status": "processing"
}
{
"errorId": 1,
"errorCode": "ERROR_CAPTCHA_UNSOLVABLE",
"errorDescription": "ERROR_CAPTCHA_UNSOLVABLE"
}
errorId = 0
andstatus = ready
: Solved successfully, read result insolution.text
errorId = 0
andstatus = processing
: The task is not ready yet, sleep 2s then remakeerrorId > 0
: error identifier. Error code and short description transferred in errorCode and errorDescription properties
Last modified 1yr ago