MacroRC Captcha
  • 💰Get Balance
  • 🖼️Image To Text
  • 🥹Funcaptcha
  • ☄️Migrate
  • Github
  • ⚛️Other
    • 🪙Instructions for getting Binance username
Powered by GitBook
On this page
  • 1. Create task
  • 2. Get task result

Was this helpful?

Image To Text

1. Create task

POST https://api.mrccaptcha.com/captcha/Recognition

Body

Name
Type
Description

apikey

string*

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);
});
import requests
import json

url = "https://api.mrccaptcha.com/captcha/Recognition"

payload = json.dumps({
  "apikey": "PKG.bjhfweb7rf236rfg7237rg4273uh3br273rg47",
  "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEU"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

class Program
{
    static async Task Main(string[] args)
    {
        var client = new HttpClient();

        var data = new
        {
            apikey = "PKG.bjhfweb7rf236rfg7237rg4273uh3br273rg47",
            image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEU"
        };

        var json = JsonConvert.SerializeObject(data);
        var content = new StringContent(json, Encoding.UTF8, "application/json");

        var request = new HttpRequestMessage
        {
            Method = HttpMethod.Post,
            RequestUri = new Uri("https://api.mrccaptcha.com/captcha/Recognition"),
            Content = content
        };

        try
        {
            var response = await client.SendAsync(request);
            response.EnsureSuccessStatusCode();

            var responseBody = await response.Content.ReadAsStringAsync();
            Console.WriteLine(responseBody);
        }
        catch (HttpRequestException e)
        {
            Console.WriteLine($"Request error: {e.Message}");
        }
    }
}

2. Get task result

GET https://api.mrccaptcha.com/captcha/getresult?apikey=YOUR_API_KEY&taskId=TASK_ID

Query params

Name
Type
Description

apikey

string*

taskId

string*

The task id from step 1

Response

{
  "Code": 0,
  "Status": "SUCCESS",
  "Data": "ksfeue"
}
{
  "Code": 0,
  "Status": "ERROR",
  "Message": "Error description",
  "Data": null
}
{
  "Code": 0,
  "Status": "PENDING",
  "Data": null
}
{
  "Code": 0,
  "Status": "PROCESSING",
  "Data": null
}
PreviousGet BalanceNextFuncaptcha

Last updated 9 months ago

Was this helpful?

Your Package API-Key, you can get it

Your Package API-Key, you can get it

🖼️
here
here