KasadaTokenProxyLess
Pass the Kasada p.js URL and get x-kpsdk-cd, x-kpsdk-ct and x-kpsdk-st headers ready to replay. Shows the request schema, an example and provider prices.
KasadaTokenProxyLess takes the URL of a site's Kasada script and returns the x-kpsdk-cd, x-kpsdk-ct and x-kpsdk-st values to replay on the request Kasada blocked. Kasada blocks a request with a 429 whose body loads a script (ips.js) from a path like /149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/. The page itself loads a sibling script, p.js, from the same path.
The provider solves from its own network. If the target refuses a result solved from another IP, use KasadaCtBrowserToken with your proxy.
Which Kasada task do I need?
| What you want | Task |
|---|---|
You have the p.js URL and want headers to replay, solved from the provider network | KasadaTokenProxyLess (this task) |
| You want a real-browser solve, from the provider network | KasadaCtBrowserTokenProxyLess |
| You want a real-browser solve through your own proxy | KasadaCtBrowserToken |
You fetched ips.js and post /tl yourself, and want the ct, dt, im and v headers | KasadaPayloadProxyLess |
You fetched ips.js and post /tl yourself, and want the ct and dt headers | KasadaTlPayloadProxyLess |
You hold a session and its x-kpsdk-ct, x-kpsdk-st and x-kpsdk-fc, and want x-kpsdk-cd | KasadaCdToken |
You hold x-kpsdk-st and the User-Agent, and want x-kpsdk-cd | KasadaWorkTimeProxyLess |
Find pJsUrl
Open DevTools on the protected page, filter the Network tab for p.js, and copy its absolute URL, query string included:
https://www.nike.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.jsThe ips.js URL of a block page is accepted as well. Send the protected page as websiteURL. The path is the same on every request to that site, so you look it up once.
Replay the solution
Send xKpsdkCd as the x-kpsdk-cd header and xKpsdkCt as x-kpsdk-ct on the request that was blocked, together with the Kasada cookies your session already holds. Send the returned userAgent as the request's User-Agent when the solution has one, from a client whose TLS fingerprint matches the same Chrome version. xKpsdkR and xKpsdkCr are present only when the provider returns them. Create a new task for each protected request, because x-kpsdk-cd works once.
x-kpsdk-cd is single-use
The cd header is a proof-of-work for one request, and reusing it fails. Generate a new one for each protected
request. To keep a session and mint only the proof-of-work, use
KasadaWorkTimeProxyLess.
Responses from the protected endpoint can return a newer x-kpsdk-ct. Only the latest value works, so replace the stored one each time. Keep xKpsdkSt: it is the input for generating further x-kpsdk-cd values.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
Salamoonder | $2.40 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
pJsUrl* | URL | Yes | Absolute URL of the Kasada Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "KasadaTokenProxyLess",
"websiteURL": "https://www.nike.com/",
"pJsUrl": "https://www.nike.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
xKpsdkCd* | string | Yes |
Example: |
xKpsdkCt* | string | Yes |
Example: |
xKpsdkSt* | string | Yes |
Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
xKpsdkR | string | No |
Example: |
xKpsdkCr | string | No |
Example: |
userAgent | string | No | User-Agent string used during solving. Example: |