🦀
Crabtcha Documentation
  • Main
    • Welcome to Crabtcha !
    • Get Started
    • Compliance and Abuse
  • API Guide
    • API reference
      • createTask : creating a task
      • getTaskResult : getting task result
      • getBalance : get account balance
    • Using proxies
    • Error Codes
  • Task types
    • Cloudflare WAF
    • Cloudflare Turnstile
  • API reference
    • Extras
      • Commonly used TLS libraries
      • User agent
Powered by GitBook
On this page
  • Example request
  • Example response
  1. API Guide
  2. API reference

createTask : creating a task

This is the task creation endpoint which you will submit through tasks to be solved by our servers.

PreviousAPI referenceNextgetTaskResult : getting task result

Last updated 4 months ago

When creating tasks you must specify the type and the subtask type if necessary,

please check the section in the documentation.

Example request


{
  "clientKey": "CRABKEYINHEREFOREXAMPLEPURPOSES012345",
  "task": {
    "type": "MainTaskType",
    "websiteURL": "http://crabtcha.com",
    "subtask_type": "SubtaskType",
    "proxyType": "http",
    "proxyAddress": "proxy_address",
    "proxyPort": "proxy_port",
    "proxyLogin": "proxy_login",
    "proxyPassword": "proxy_password"
  }
}

Request body table

Key
Type
Description

clientKey

String

Client account key

task

Object

Task object

Example response


{
    "taskId": "eb797a7d-18f9-4078-adb9-668ef81e4e56" // This will be used later
}

Response structure

Key
Type
Description

errorId

Integer

Error message:

  • 0 - no error

  • 1 - with error

errorCode

String

errorDescription

String

Error description

status

String

returns the status of the task

solution

Object

the task result, an object containing task relevant solution such as headers, cookies etc..

taskId

String

Id of the created task

After creating a task successfully you will be receiving its task id which will then be used to check through the route.

task types
getTaskResult