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.
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! | |
phrase | Boolean | No | false | |
case | Boolean | No | true | |
numeric | Integer | No | 0 | |
math | Boolean | No | false | |
minLength | Integer | No | 0 | |
maxLength | Integer | No | 0 | |
comment | String | No | Additional comments for workers like "enter red text". The result is not guaranteed and is totally up to the worker. | |
websiteURL | String | No | Optional parameter to distinguish source of image captchas in spending statistics. |
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
"clientKey":"YOUR_API_KEY_HERE",
"task":
{
"type":"ImageToTextTask",
"body":"BASE64_BODY_HERE__NO_NEWLINES__NO_EXTRA_TAGS__ONLY_CLEAN_BASE64",
"phrase":false,
"case":false,
"numeric":0,
"math":false,
"minLength":0,
"maxLength":0
},
"softId": 0
}' createTask
Property | Type | Purpose |
---|---|---|
text | String | Text from image captcha |
url | String | Web address where we'll store the captcha for the next 24 hours, after which it will be removed. |
{
"errorId":0,
"status":"ready",
"solution":
{
"text":"deditur",
"url":"http://5.22.17.33/1/147220556452507.jpg"
},
"cost":"0.000500"
}