Required inputs
DataDomeCookie generates the datadome cookie value for a captured supported challenge. The challenge URL is required; supplying only the protected page cannot start a solve.
| Field | Required | Value |
|---|---|---|
type |
yes | DataDomeCookie |
websiteURL |
yes | The protected page that produced the block |
captchaUrl |
yes | The complete fresh /captcha/ or /interstitial/ challenge page URL |
userAgent |
yes | A supported browser User-Agent, reused on replay |
proxy |
yes | Your sticky proxy, with a stable exit IP |
cookies |
no | Current session cookies as a Cookie header string or NDJSON |
The DataDome API reference shows the current contract. captchaUrl maps to the native flow's challenge URL input; do not send the manager's internal key field yourself.
Capture the current challenge
- Open DevTools, Network, preserve the log and repeat the blocked request through your sticky proxy.
- Inspect the 403 response, its iframe or the challenge URL returned by the application. Copy the full
captcha-delivery.com/captcha/or/interstitial/URL, including every query parameter. - Read the protected site's cookies in Application, Cookies. When continuing that session, send its
datadomeand application cookies together incookies. - Keep the same exit IP and
userAgentfor the solve and the request that uses its result.
A block can expose var dd={...}, an iframe or JSON containing a challenge URL. Those are capture locations for your client; the solver does not discover them by loading websiteURL. Requests to c.js or i.js help identify challenge activity but neither script URL is a substitute for the challenge page URL.

For slider URLs, t=fe is the normal challenge path. t=bv means the proxy was blocked: change the proxy, open a fresh session and capture a new URL. A supplied t=bv URL is rejected before charging. Editing only that query flag does not repair the session.
Request and ready result
Send this shape to POST /createTask. The example URL, cookie and credentials are placeholders; replace them with one fresh captured session:
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "DataDomeCookie",
"websiteURL": "https://example.com/account",
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=FRESH_INITIAL_CID&cid=FRESH_CID&hash=SITE_HASH&t=fe",
"userAgent": "YOUR_SUPPORTED_USER_AGENT",
"proxy": "http://user:password@proxy.example.com:8080",
"cookies": "datadome=CURRENT_COOKIE; session=YOUR_SESSION"
}
}
Poll POST /getTaskResult with clientKey and the returned taskId. A ready response has this shape:
{
"errorId": 0,
"status": "ready",
"solution": {
"datadome": "<datadome-cookie-value>"
}
}
Set solution.datadome as the datadome cookie on the protected site's domain. Apply the entries of the optional solution.cookies name-to-value object as well, preserving the application's session cookies.
Replay and verify acceptance
Replay through the same proxy with the task's userAgent. A rotating proxy address is insufficient if its exit changes between requests.

The native flow can return a minted token even when its follow-up acceptance check fails, times out or cannot complete. Check the protected response and an application-specific success marker yourself. HTTP 200 alone can still contain a block page. A failed or timed-out task returns its original charge once; a ready token does not certify the application's unrelated access rules.
Examples in your language
The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints datadome. Fill captchaUrl from your capture. To continue an existing session, add cookies as a Cookie header string (the API also accepts NDJSON). Set the printed value as the datadome cookie, keep the application's other cookies, and check the protected page through the same proxy and User-Agent.
import { SurSolver } from 'sursolver';
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
const client = new SurSolver(API_KEY);
const { solution } = await client.solve({
type: 'DataDomeCookie',
websiteURL: 'https://example.com/login',
userAgent: USER_AGENT,
captchaUrl: 'https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe',
proxy: 'http://user:password@203.0.113.10:8000',
});
console.log(solution.datadome);
from sursolver import SurSolver
API_KEY = "YOUR_API_KEY"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": "DataDomeCookie",
"websiteURL": "https://example.com/login",
"userAgent": USER_AGENT,
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
"proxy": "http://user:password@203.0.113.10:8000",
}
)
print(result.solution["datadome"])
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": "DataDomeCookie",
"websiteURL": "https://example.com/login",
"userAgent": UserAgent,
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
"proxy": "http://user:password@203.0.113.10:8000",
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution["datadome"])
}
use serde_json::json;
use sursolver::Client;
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": "DataDomeCookie",
"websiteURL": "https://example.com/login",
"userAgent": USER_AGENT,
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
"proxy": "http://user:password@203.0.113.10:8000",
}))
.await?;
println!("{}", result.solution["datadome"]);
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => 'DataDomeCookie',
'websiteURL' => 'https://example.com/login',
'userAgent' => USER_AGENT,
'captchaUrl' => 'https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe',
'proxy' => 'http://user:password@203.0.113.10:8000',
]);
echo $result->solution['datadome'];
require "sursolver"
API_KEY = "YOUR_API_KEY"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => "DataDomeCookie",
"websiteURL" => "https://example.com/login",
"userAgent" => USER_AGENT,
"captchaUrl" => "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
"proxy" => "http://user:password@203.0.113.10:8000"
)
puts result.solution["datadome"]
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", "DataDomeCookie",
"websiteURL", "https://example.com/login",
"userAgent", USER_AGENT,
"captchaUrl", "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
"proxy", "http://user:password@203.0.113.10:8000"));
System.out.println(result.solution().get("datadome"));
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = "DataDomeCookie",
["websiteURL"] = "https://example.com/login",
["userAgent"] = UserAgent,
["captchaUrl"] = "https://geo.captcha-delivery.com/captcha/?initialCid=YOUR_CAPTURE&t=fe",
["proxy"] = "http://user:password@203.0.113.10:8000",
});
Console.WriteLine(result.Solution["datadome"]);
Troubleshooting
| Symptom | Check | Correction |
|---|---|---|
Missing captchaUrl |
Only the protected page was supplied | Capture and send the full current challenge page URL |
ERROR_INVALID_REQUEST for t=bv |
The proxy is blocked | Change proxy and capture a fresh session |
| Captured URL fails | CID, cookies or exit IP changed | Recapture URL and cookies together |
| A ready cookie still sees a block | Identity, cookie scope, session or another site rule differs | Replay in the captured context and inspect the application response |
datadomeCookie, websiteKey or key is rejected |
It is not this task's public input | Use captchaUrl and cookies |
The DataDome integration article explains how the block's fields relate to the captured URL.