Skip to content
On this page

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

FiledTypeRequiredDescription
typeStringRequiredBinanceCaptchaTask
websiteURLStringRequiredAddress of a webpage with bncaptcha
websiteKeyStringRequiredbizId always be login
validateIdStringRequiredvalidateId bncaptcha validateId field
proxyStringOptionalLearn Using proxies

Example request

txt
POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "BinanceCaptchaTask",
    "websiteURL": "https://www.binanace.com/login",
    "websiteKey": "login",
    //Find it in your browser
    "validateId": "3621a4fef82f4ab4a00e8b07465761c5",
    //required proxy
    "proxy": "ip:port:user:pwd"
  }
}

Example Response

json
{
  "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

txt
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
json
{
    "clientKey": "YOUR_API_KEY",
    "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Example Response

json
{
  "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"
  }
}