DataDomeSliderCookie
Solve the DataDome slider puzzle through your proxy from a captured challenge page and get the cleared datadome cookie. With the schema, example and prices.
DataDomeSliderCookie solves the DataDome slider through your proxy and returns the datadome cookie to replay on the request that was blocked. DataDome serves the slider as a puzzle in which the visitor drags a piece into place.
Use this task when you capture the challenge page yourself and want the solve to run through your proxy. If you do not send a proxy, use DataDomeSliderCookieProxyLess.
Which DataDome task do I need?
The task depends on the challenge DataDome returned.
| What you see | Task |
|---|---|
A /captcha/ challenge URL, 'rt':'c' and c.js | DataDomeSliderCookie (this task), or DataDomeSliderCookieProxyLess without a proxy |
An /interstitial/ challenge URL, 'rt':'i' and i.js | DataDomeInterstitialCookie, or DataDomeInterstitialCookieProxyLess without a proxy |
The site loads the DataDome JS Tag (tags.js) and you need its datadome cookie | DataDomeTagsCookie |
Recognise a slider block
The block arrives as a 403 carrying a small HTML page with a dd object. Two markers identify the slider:
ddcontains'rt':'c'- the page loads
https://ct.captcha-delivery.com/c.js(note thec.js)
JSON and XHR endpoints skip the HTML and return the challenge inline as { "url": "https://geo.captcha-delivery.com/captcha/?..." }. A /captcha/ path means slider; /interstitial/ means the interstitial.
Build captchaUrl
captchaUrl is the full geo.captcha-delivery.com/captcha/ URL, not the c.js script URL. Use the URL returned by a JSON response or challenge iframe when one is present. Otherwise parse var dd from the blocked HTML and construct it. The current datadome cookie becomes cid, and the full blocked websiteURL becomes referer.
The t value in var dd must be fe. With t=bv, DataDome has banned the IP: change the IP and trigger the block again. This helper parses the normal DataDome block and builds the URL with proper percent-encoding:
function buildSliderUrl(html, datadomeCookie, websiteURL) {
const source = html.match(/var dd\s*=\s*({[\s\S]*?})\s*;?\s*<\/script>/)?.[1];
if (!source) throw new Error('DataDome var dd object not found');
const dd = JSON.parse(source.replaceAll("'", '"'));
if (dd.t === 'bv') throw new Error('DataDome blocked this IP; rotate the proxy');
if (dd.t !== 'fe') throw new Error(`Unexpected DataDome t value: ${dd.t}`);
const params = new URLSearchParams({
initialCid: dd.cid,
hash: dd.hsh,
cid: datadomeCookie,
t: dd.t,
referer: websiteURL,
s: dd.s,
e: dd.e,
dm: 'cd',
});
return `https://geo.captcha-delivery.com/captcha/?${params}`;
}GET that exact URL with the same proxy, cookies, User-Agent and browser-like headers used for websiteURL. Base64-encode the raw response bytes without changing the body and send them as challengePage:
const captchaUrl = buildSliderUrl(blockedHtml, datadomeCookie, websiteURL);
const challengeResponse = await httpClient.get(captchaUrl);
const challengePage = Buffer.from(challengeResponse.body).toString('base64');t=bv means the IP is banned
The t parameter must be fe. With t=bv, DataDome has banned the IP and solving the challenge does not clear it.
Change the IP and trigger the block again.
Send the proxy, cookie and User-Agent
task.proxyis required on this task type. Providers that use it solve from that address; some providers solve from the captured session and ignore it.- The proxy must keep one IP for the whole solve. See Keep the same IP for the whole solve.
- Put the blocked response's
datadomevalue in thecidparameter ofcaptchaUrland ininitCookies.datadome. Some providers read it from the URL and others from the cookie jar, so send both. - Send the same
userAgentfor the blocked request, thechallengePagefetch, the task and the cookie replay. Thedatadomecookie is tied to the session behindcid, so a different IP or User-Agent invalidates it. Providers accept different User-Agent lists: if a task is rejected for its User-Agent, check the provider's documentation. - Match your TLS fingerprint and header order to a real browser. A valid cookie on a mismatched client can still get a 403.
Use the cookie
Set solution.datadome as the datadome cookie on the protected domain and retry the blocked request through the same proxy with the same User-Agent. Some providers return the whole Set-Cookie line (datadome=…; Max-Age=…) instead of the value alone: take the value after datadome=. If the cookie is rejected, check that the proxy kept one IP for the whole solve, then that captchaUrl and websiteURL come from the request that was blocked.
Related tasks
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
CapSolver | $2.50 | |
2Captcha | $1.45 | |
CapMonster | $2.20 | |
RiskBypass | $2.00 | |
SolveCaptcha | $1.45 | |
Salamoonder | $2.76 | |
Solverify | $0.60 | |
VoidCaptcha | $2.00 |
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 protected page that returned the DataDome block. Use this exact URL as the Example: |
challengePage* | string | Yes | Base64-encoded raw response body from a GET to Example: |
userAgent* | string | Yes | User-Agent used to request the protected page and Example: |
initCookies* | object | Yes | Cookies from the blocked response, as a name → value map. Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
captchaUrl* | URL | Yes | Full Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "DataDomeSliderCookie",
"websiteURL": "https://www.pokemoncenter.com/",
"challengePage": "PCFET0NUWVBFIGh0bWw+...",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36",
"initCookies": {
"datadome": "noJuZstmvINksqOxaXWQogbPBd01y3VaH3r..."
},
"proxy": "http://user:pass@1.2.3.4:8080",
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMAlk-FmAyNOW8AUyTH_g%3D%3D&hash=5B45875B653A484CC79E57036CE9FC&cid=noJuZstmvINksqOxaXWQogbPBd01y3VaH3r-CZ4eqK4roZuelJMHVhO2rR0IySRieoAivkg74B4UpJ.xj.jVNB6-aLaW.Bwvik7__EncryD6COavwx8RmOqgZ7DK_3v&t=fe&referer=https%3A%2F%2Fwww.pokemoncenter.com%2F&s=9817&e=2b1d5a78107ded0dcdc8317aa879979ed5083a2b3a95b734dbe7871679e1403"
}
}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 |
|---|---|---|---|
datadome* | string | Yes | The solved Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
userAgent | string | No | User-Agent string used during solving. Example: |