Kasada
Create a task through sync api https://sync.ez-captcha.com/createSyncTask
, and get the result directly
If you obtain an invalid token, please contact us. It will usually work normally after we optimize it.
Task Type
Task Type | Description | Price | Price(USD) |
---|---|---|---|
KasadaTaskProxyless | Kasada solution | 25 POINTS | $2.5/1k |
KasadaWorkTimeTaskProxyless | KasadaWorkTime solution | 1 POINTS | $0.1/1k |
Usage
1. How to generate /tl Payload
Request target url and be blocked by 429 status code to get the response body with a URL to
/ips.js
.Do a GET request to the ips.js URL and store the response body, then it need to be sent to api later.
Make a POST request to API with the following form data:
Parameter | Type | Required | Description |
---|---|---|---|
clientKey | string | true | Your client key |
type | string | true | KasadaTaskProxyless |
ua | string | true | Your user-agent, please keep it consistent with the one your program uses. |
ipsContent | string | true | The response body from |
lang | string | true | The main language of your accept-language header in your request (only send the first language) |
bmsz | string | true | The |
domain | string | true | The domain you are generating for e.g |
Create Task
Example
POST https://sync.ez-captcha.com/createSyncTask
Content-Type: application/json
{
"clientKey": "YourClientKey",
"task": {
"type": "KasadaTaskProxyless",
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"ipsContent": "xxxx",
"lang": "en",
"bmsz": "xxxx",
"domain": "xxx.xxx.com"
}
}
Response Example
Get dt from response and use it as header
X_*****_Dt
on the/tl
postGet ct from response and use it as header
X_*****_Ct
on the/tl
postAPI will return a base64 encoded response. You need to decode this response to a byte array and then post it to
/tl
{
"errorId": 0,
"solution": {
"ct": "0rRUrDIrbJtVlXV38QPOg1vxJVyn7mGaaEyHb2b3ehOjQBGzi8OB9c42Sl5Tie4xctIT8lq1gRU8KW8IJs5E7GUd4MtNfwovogsGLqE8vHZ8rEogLWcIQQT7CHtOdZSVLRBPOU439Mh1FKsk8JqwCYJGvlTQ",
"dt": "118hy2kz01k4x3gz6s6y78",
"tl": "xxxxxxxxxxxxxxxxxxx"
},
"status": "ready"
}
* After request /tl
with these parameters, the header in the response will return a new ct (x-kpsdk-ct), which needs to be included in the next request for other URLs.
The response will also return st (x-kpsdk-st), which is used to generate the worktime below.
2. How to bypass WorkTime
After post payload generate by our api to /tl
, The x-*****-st
value will be returned in response headers, you can use it to generate the worktime headers
Parameter | Type | Required | Description |
---|---|---|---|
clientKey | string | true | Your client key |
type | string | true | KasadaWorkTimeTaskProxyless |
domain | string | true | The domain you are generating for e.g |
userAgent | string | true | Your user-agent, please keep it consistent with the one your program uses. |
st | string | true | The st value in response header of |
workTime | string | optional | you can pregenerate your header with providing this timestamp value |
Create Task
Example
POST https://sync.ez-captcha.com/createSyncTask
Content-Type: application/json
{
"clientKey": "YourClientKey",
"task": {
"type": "KasadaWorkTimeTaskProxyless",
"domain": "xxx.xxx.com",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"st": "1704442141209",
"workTime": "1704471401730"
}
}
Response Example
This API will return a json value of header x-****-cd