🦀
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
  • Creating the task
  • Example request
  • Example response
  • Getting result
  • Example request
  • Example response
  1. Task types

Cloudflare WAF

PreviousError CodesNextCloudflare Turnstile

Last updated 2 months ago

Warning

  • Proxy is obligatory, use a static proxy or one that doesn't rotate too quick.

  • Please use our User-agent with cookies & headers returned by our API.

  • You must use a well maintained TLS library to request to your target website.

The task type is:

  • TurnstileTask

Creating the task

Task object

Key
Type
Optional?
Description

type

String

No

has to be "TurnstileTask" for cloudflare

subtask_type

String

No

has to be "cf_clearance" for this type

websiteURL

String

No

the target website address.

proxyType

String

No

input is http/socks5 only

proxyAddress

String

No

the proxy address

proxyPort

Integer

No

proxy port as int.

proxyLogin

String

No

proxy login

proxyPassword

String

No

proxy password

Example request

POST https://api.crabtcha.com/createTask
Host: api.crabtcha.com
Content-Type: application/json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "TurnstileTask",
    "websiteURL": "https://www.yourwebsite.com",
    "subtask_type": "cf_clearance",
    "proxyType": "http",
    "proxyAddress": "192.155.55.3",
    "proxyPort": 69,
    "proxyLogin" : "user",
    "proxyPassword" : "somepassword"
  }
}

Example response

{
  "taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca"
}

Getting result

Depending on several factors you will get task results from 2 seconds to 20 seconds.

such factors include:

  • Proxy speed

  • target website location

  • Server load

Example request

POST https://api.crabtcha.com/getTaskResult
Host: api.crabtcha.com
Content-Type: application/json
{
  "clientKey": "THE API KEY",
  "taskId": "df944101-64ac-468d-bc9f-41baecc3b8ca"
}

Example response

{
  "task": {
    "type": "TurnstileTask",
    "status": "SUCCESS",
    "solution": {
      "cookies": {
        "__cf_bm": "XXXX",
        "cf_clearance": "XXXXXXX"
      },
      "elapsed_ms": 7008
    },
    "websiteURL": "https://www.example.com/",
    "subtask_type": "cf_clearance"
  },
  "taskId": "96bbe282-fab2-4105-bf8f-599efca38caa",
  "errorId": 0
}

creating the task using the

Use the method to get the task results.

createTask
getTaskResult