Guide
Task(Token)
Cybersiara

CyberSiAra: solving CyberSiAra

Create the task with the [createTask](../api-createtask.md) method and get the result with

the getTaskResult method.

The task type types that we support:

  • AntiCyberSiAraTask this task type require your own proxies.
  • AntiCyberSiAraTaskProxyLess this task type don’t require your own proxies.

Create Task

Create a recognition task with the createTask method.

Task Object Structure

PropertiesTypeRequiredDescription
typeStringRequiredAntiCyberSiAraTask
AntiCyberSiAraTaskProxyLess
websiteURLStringRequiredthe current website home page url
SlideMasterUrlIdStringRequiredyou can get MasterUrlId param form api/CyberSiara/GetCyberSiara endpoint
userAgentStringRequiredbrowser userAgent,you need submit your userAgent
proxyStringOptionalLearn Using proxies

Example request

POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
 
{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "AntiCyberSiAraTaskProxyLess", //Required
        "websiteURL": "https://exaple.com/registration", //Required
        "SlideMasterUrlId":"zHRugggff3Ll86L9k2yQTJfSYwUnmLc7", // Required
        "userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67", //Required
        "proxy": "http:ip:port:user:pass" // socks5:ip:port:user:pass // Optional
    }
}

After you submit the task to us, you should receive in the response a ‘taskId’ if it’s successful. Please read errorCode: full list of errors if you didn’t receive the task id.

Example Response

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Getting Results

After you have the taskId, you need to submit the taskId to retrieve the solution. Response structure is explained in getTaskResult.

Depending on the system load, you will get the results within the interval of 5s to 30s

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": "646825ef-9547-4a29-9a05-50a6265f9d8a",
  "status": "ready",
  "solution": {
    "token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImNhbXBhaWduLnJ0bS5jb20iLCJuYmYiOjE2ODkxNTUwOTksImV4cCI6MTY4OTE1NTEyOSwiaWF0IjoxNjg5MTU1MDk5LCJpc3MiOiJmcTRLSmNLMlNXZnlYYkhDWHdaME56ZmJ5SUxld2JndSJ9.Pf6zJIynf2lyzpDgfvRGzWlutTMNILZqM-b-ccjNVMgvnjro_-ohokCr_g21iG22td_u5YZJSHrwjg-EM7KVLQ$NzEyMDI5OA=="
  }
}

Use SDK Request

# pip install --upgrade capsolver
# export CAPSOLVER_API_KEY='...'
 
import capsolver
 
# capsolver.api_key = "..."
solution = capsolver.solve({
    "type": "AntiCyberSiAraTaskProxyLess",
    "websiteURL": "https://example.com/registration",
    "SlideMasterUrlId": "zHRugggff3Ll86L9k2yQTJfSYwUnmLc7",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67",
})