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?

Funcaptcha

1. Create task

GET | POST https://api.mrccaptcha.com/captcha/FunCaptchaTokenTask?apikey=YOUR_API_KEY&sitekey=SITE_KEY

Body or Query param

Name
Type
Description

apikey

string*

sitekey

string*

The Funcaptcha public key of website

proxy

string*

Format host:port:login:password or host:port or protocol://host:port or protocol://login:password@host:port or login:password:host:port or login:password@host:port or ... . Some websites will verify that the submit IP and the resolution IP match, so in some cases, you need to pass an additional proxy. Note: For rotating proxies, you must use ones that support session or sticky session. Using proxies also consumes a lot of data for downloading captcha images, so you should consider the costs. We recommend using proxies in the EU/US regions to ensure connection speed.

datablob

string*

Blob of Funcaptcha challenge generated by your userAgent.

userAgent

string*

UserAgent of your browser (or app). See type of supported browsers in below to set your userAgent

Type of supported browsers

Device
Browsers
Support sitekey

android

["chrome", "edge"]

*

iphone

["chrome", "safari"]

*

ipad

["chrome", "safari"]

*

windows

["chrome", "edge"]

*

macos

["chrome", "edge", "safari"]

*

x-app-android

Only X (Twitter) sitekeys

API for get random userAgent (recommend to use)

GEThttps://api.mrccaptcha.com/captcha/random-useragent?device={device}&browser={browser}

Example: https://api.mrccaptcha.com/captcha/random-useragent?device=iphone&browser=safari

Response of create task api

{
  "Code": 0,
  "TaskId": 1234,
  "Message": "OK"
}

Code examples

const axios = require('axios');
let data = JSON.stringify({
  "apikey": "PKG.bjhfweb7rf236rfg7237rg4273uh3br273rg47",
  "sitekey": "00000000-0000-0000-0000-000000000000",
  "proxy": "27.26.25.24:1234:user:pass"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.mrccaptcha.com/captcha/FunCaptchaTokenTask',
  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/FunCaptchaTokenTask"

payload = json.dumps({
  "apikey": "PKG.bjhfweb7rf236rfg7237rg4273uh3br273rg47",
  "sitekey": "00000000-0000-0000-0000-000000000000",
  "proxy": "27.26.25.24:1234:user:pass"
})
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",
            sitekey = "00000000-0000-0000-0000-000000000000",
            proxy = "27.26.25.24:1234:user:pass"
        };

        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/FunCaptchaTokenTask"),
            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": {
      "Token": "4AHK_HuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
      "metadata": {
          "captchaId": "05878906-9abb-4d5a-9a45-27ec161286aa" || undefined
      }
  }
}
{
  "Code": 0,
  "Status": "ERROR",
  "Message": "Error description",
  "Data": null
}
{
  "Code": 0,
  "Status": "PENDING",
  "Data": null
}
{
  "Code": 0,
  "Status": "PROCESSING",
  "Data": null
}

PreviousImage To TextNextMigrate

Last updated 3 months ago

Was this helpful?

Your Package API-Key, you can get it

Your Package API-Key, you can get it

🥹
here
here