Binance - Binance captcha
- This task will be performed using our proxy servers.
- Use only to log in with your account.
Request parameters
- BinanceTaskProxyless (without proxy)
- BinanceTask (using proxy)
type
<string>requiredBinanceTaskProxyless
websiteURL
<string>requiredThe address of the main page where the captcha is solved.
websiteKey
<string>requiredA unique parameter for your website's section. The value of the parameter bizId
, bizType
, or bizCode
. It can be taken from the traffic (see the description below).
validateId
<string>requiredA dynamic key. The value of the parameter validateId
, securityId
, or securityCheckResponseValidateId
. It can be taken from the traffic (see the description below).
userAgent
<string>optionalThe browser's User-Agent. You can provide your own or specify the latest UA from Windows OS.: userAgentPlaceholder
type
<string>requiredBinanceTask
websiteURL
<string>requiredThe address of the main page where the captcha is solved.
websiteKey
<string>requiredA unique parameter for your website's section. The value of the parameter bizId
, bizType
, or bizCode
. It can be taken from the traffic (see the description below).
validateId
<string>requiredA dynamic key. The value of the parameter validateId
, securityId
, or securityCheckResponseValidateId
. It can be taken from the traffic (see the description below).
userAgent
<string>optionalThe browser's User-Agent. You can provide your own or specify the latest UA from Windows OS.: userAgentPlaceholder
proxyType
<string>requiredhttp - regular http/https proxy;
https - try this option only if "http" doesn't work (required for some custom proxies);
socks4 - socks4 proxy;
socks5 - socks5 proxy.
proxyAddress
<string>requiredIPv4/IPv6 proxy IP address. Not allowed:
- using of hostnames;
- using transparent proxies (where you can see the client's IP);
- using proxies on local machines.
proxyPort
<integer>requiredProxy port.
proxyLogin
<string>optionalProxy-server login.
proxyPassword
<string>optionalProxy-server password.
How to obtain websiteKey
and validateId
Enable Developer Tools, go to the Network tab, activate the CAPTCHA, and look at the requests. Some of them will contain the required parameter values. For example, the parameters:
bizCode: "CMC_register", securityId: "09295759baca4d4fbeae80d9ffeaefd8"
or
bizId: "CMC_register", securityCheckResponseValidateId: "09295759baca4d4fbeae80d9ffeaefd8"
or
bizType: "login", validateId: "ff965ea6216b46f3825fa827ecaf297f"
or
bizId: "login", securityCheckResponseValidateId: "ff965ea6216b46f3825fa827ecaf297f"
The necessary parameters to solve the captcha can be obtained by executing JavaScript:
let originalBCaptcha = window.BCaptcha;
let BCaptchaData;
Object.defineProperty(window, 'BCaptcha', {
get: function() {
return function(args) {
const BCaptcha = new originalBCaptcha(args);
let BCaptchaShow = BCaptcha.__proto__.show
BCaptcha.__proto__.show = function(args) {
BCaptchaData = args;
return 1;
};
return BCaptcha;
}
}
});
Then, you can retrieve the parameters, for example, like this BCaptchaData.securityCheckResponseValidateId
.
Create task method
- BinanceTaskProxyless (without proxy)
- BinanceTask (using proxy)
https://api.capmonster.cloud/createTask
Request
{
"clientKey": "API_KEY",
"task":
{
"type": "BinanceTaskProxyless",
"websiteURL": "https://binance.com/login",
"websiteKey": "login",
"validateId": "cb0bfefa598b4c3887661fde54ecd57b",
"userAgent": "userAgentPlaceholder"
}
}
Response
{
"errorId":0,
"taskId":407533072
}
https://api.capmonster.cloud/createTask
Request
{
"clientKey": "API_KEY",
"task":
{
"type": "BinanceTask",
"websiteURL": "https://binance.com/login",
"websiteKey": "login",
"validateId": "cb0bfefa598b4c3887661fde54ecd57b",
"userAgent": "userAgentPlaceholder",
"proxyType":"http",
"proxyAddress":"8.8.8.8",
"proxyPort":8080,
"proxyLogin":"proxyLoginHere",
"proxyPassword":"proxyPasswordHere"
}
}
Response
{
"errorId":0,
"taskId":407533072
}
Get task result method
Use the method getTaskResult to obtain the Binance solution.
https://api.capmonster.cloud/getTaskResult
Request
{
"clientKey":"API_KEY",
"taskId": 407533072
}
Response
{
"errorId":0,
"status":"ready",
"solution":
{
"token":"captcha#09ba4905a79f44f2a99e44f234439644-ioVA7neog7eRHCDAsC0MixpZvt5kc99maS943qIsquNP9D77",
"userAgent":"userAgentPlaceholder"
}
}