🥹Funcaptcha
1. Create task
GET
| POST
https://api.mrccaptcha.com/captcha/FunCaptchaTokenTask?apikey=YOUR_API_KEY&sitekey=SITE_KEY
Body or Query param
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
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)
GET
https://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);
});
2. Get task result
GET
https://api.mrccaptcha.com/captcha/getresult?apikey=YOUR_API_KEY&taskId=TASK_ID
Query params
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
}
}
}
Last updated
Was this helpful?