ImageToTextTask : solve image captcha
Post an image body and receive text from it. Text can only contain digits, letters, special characters and a space. GIF animations are supported, up to 500kb. Custom captchas like "find a cat in this series of images and enter its number" are not supported.
Task object
Property | Type | Required | Default value | Purpose |
---|---|---|---|---|
type | String | Yes | ImageToTextTask | Defines the type of task. |
body | String | Yes | File body encoded in base64. Make sure to send it without line breaks. Do not include 'data:image/png,' or similar tags, only clean base64! |
Request example:
Address https://capkill.com/api/createTask
JSON with no errors
{
"clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
"task":
{
"type":"ImageToTextTask",
"body":"BASE64_BODY_HERE!"
}
}
Response example:
JSON with no errors
{
"errorId":0,
"taskId":53456
}
Get Result:
Use the getTaskResult method to get the captcha solution. Depending on the system load, you will receive an answer within an interval from 300ms to 6s
Property | Type | Description |
---|---|---|
text | String | Captcha answer |
Example:
JSON with no errors
{
"errorId":0,
"status":"ready",
"solution":
{
"text":"answer"
}
}