BnCaptcha Token Api
TIP
Create the task with the createTask method and get the result with the getTaskResult method.
Task’s type
BinanceCaptchaTask
Required user proxy
Create Task
Create a task with the createTask method.
Currently, CapSolver supports only clientType=web
platform
The CapSolver platform supports two types of challenges:slider
click
Task Object Structure
Filed | Type | Required | Description |
---|---|---|---|
type | String | Required | BinanceCaptchaTask |
websiteURL | String | Required | Address of a webpage with bncaptcha |
websiteKey | String | Required | bizId always be login |
validateId | String | Required | validateId bncaptcha validateId field |
proxy | String | Required | Learn Using proxies |
Example request
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "BinanceCaptchaTask",
"websiteURL": "https://www.xxx.com/login",
"websiteKey": "login",
//Find it in your browser
"validateId": "3621a4fef82f4ab4a00e8b07465761c5",
"proxy": "ip:port:user:pwd"
}
}
Example Response
{
"errorId": 0,
"errorCode": "",
"errorDescription": "",
// record this id
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}
Get Task Result
After you have the taskId, you need to submit the taskId to retrieve the solution. Response structure is explained in getTaskResult
Example Request
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY",
"taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}
Example Response
{
"errorId": 0,
"taskId": "cd1e7252-f78e-4e79-9ac4-3c3b00942d55",
"status": "ready",
"solution": {
"token": "captcha#4584ae4b263b4605955a6fb43d5909fa-arhq3tpn3sYyqFeAplgs9cKubeoBjWBrs7BEnIkiPZx8iEcz",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
}
}