Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

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

  1. Request target url and be blocked by 429 status code to get the response body with a URL to /ips.js.

  2. Do a GET request to the ips.js URL and store the response body, then it need to be sent to api later.

  3. 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 /ips.js

lang

string

true

The main language of your accept-language header in your request (only send the first language)

bmsc

string

true

The ak_bmsc or ak_bmsc_** cookie value

domain

string

true

The domain you are generating for e.g xx.xxxx.com

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",
        "bmsc": "xxxx",
        "domain": "xxx.xxx.com"
    }
}

Response Example

  • Get dt from response and use it as header X_*****_Dt on the /tl post

  • Get ct from response and use it as header X_*****_Ct on the /tl post

  • API 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"
}

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

KasadaTaskWorkTimeProxyless

st

string

true

The st value in response header of /tl post

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",
        "st": "1704442141209",
        "workTime": "1704471401730"
    }
}

Response Example

This API will return a json value of header x-****-cd

{
	"errorId": 0,
	"solution": {
		"payload": '{"workTime":1704481749062,"id":"698d9725a8b5ae681ca83d2a38ac9a9c","answers":[4,6],"duration":10.2,"d":-278,"st":1704442141582,"rst":1704442141862}'
	},
	"status": "ready"
}
  • No labels