Cloudflare WAF
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
creating the task using the createTask
Task object
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
Use the getTaskResult method to get the task results.
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
}
Last updated