🖼️Image To Text
1. Create task
POST
https://api.mrccaptcha.com/captcha/Recognition
Body
Name
Type
Description
image
string*
The captcha image as base64 encoded
Response
{
"Code": 0,
"TaskId": 1234,
"Message": "OK"
}
Code examples
const axios = require('axios');
let data = JSON.stringify({
"apikey": "PKG.bjhfweb7rf236rfg7237rg4273uh3br273rg47",
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEU"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.mrccaptcha.com/captcha/Recognition',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
2. Get task result
GET
https://api.mrccaptcha.com/captcha/getresult?apikey=YOUR_API_KEY&taskId=TASK_ID
Query params
Name
Type
Description
taskId
string*
The task id from step 1
Response
{
"Code": 0,
"Status": "SUCCESS",
"Data": "ksfeue"
}
Last updated
Was this helpful?