DataDome API Reference
This page shows the API Reference for our DataDome API.
The DataDome API covers the interstitial, slider and tags challenges documented below.
/interstitial and /slider take the challenge bundle as script or its sha256 as scriptHash, never both. Sending neither still works, but the payload is then built for a fixed bundle version that may not match the page, so always send one. A hash the API has not seen yet is answered with 422 script_required: repeat the request with script. See Script Hash.
Interstitial
Generates the payload for the DataDome interstitial challenge (the device-check page solved without a captcha). See the interstitial guide.
Solves the interstitial challenge. After getting this payload, make a POST request to https://geo.captcha-delivery.com/interstitial/ with it in the payload and you will receive the datadome cookie in the response. Set this cookie in your cookiejar, you have now successfully solved DataDome interstitial.
The Content-Type of the request body
Your API key for authentication
Your chrome UserAgent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/XXX.0.0.0 Safari/537.36The deviceLink you constructed
https://geo.captcha-delivery.com/interstitial/?initialCid=...The response body of the GET request to the deviceLink
<!DOCTYPE html> <html lang="en"> <head>The DataDome challenge bundle, which the challenge page loads with a script tag such as
The lowercase hex sha256 of the challenge bundle exactly as served (the UTF-8 bytes of the string you would send as script), 64 characters. Send it instead of script; sending both is rejected. If the API has not seen this bundle yet, it answers 422 script_required. Repeat the request with script.
^[0-9a-f]{64}$The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 or IPv6 address of your pc.
Your accept-language header
OK Interstitial solved successfully
The payload for POST request to /interstitial/
payload=...Bad Request Error occurred
Forbidden Authentication error
Script required. The API has not seen the script behind scriptHash yet (or its record expired), or the request is solved in a browser that needs the script itself. Not billed. Repeat the same request with script instead of scriptHash; the API stores it and the hash works for every client from then on.
{
"payload": "payload=...",
"headers": {
"sec-ch-ua": "\"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"154\", \"Google Chrome\";v=\"154\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-ch-ua-arch": "\"x86\"",
"sec-ch-ua-bitness": "\"64\"",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform-version": "\"19.0.0\"",
"sec-ch-ua-full-version": "\"154.0.7900.12\"",
"sec-ch-ua-full-version-list": "\"Not;A=Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"154.0.7900.12\", \"Google Chrome\";v=\"154.0.7900.12\"",
"sec-ch-ua-wow64": "?0",
"sec-ch-ua-form-factors": "\"Desktop\"",
"sec-ch-device-memory": "32",
"sec-ch-dpr": "1.5",
"sec-ch-viewport-width": "2560",
"sec-ch-viewport-height": "1271",
"device-memory": "32",
"dpr": "1.5",
"viewport-width": "2560",
"ect": "4g",
"rtt": "150",
"downlink": "10",
"sec-ch-prefers-color-scheme": "dark",
"sec-ch-prefers-reduced-motion": "no-preference",
"sec-ch-prefers-reduced-transparency": "no-preference"
}
}Slider
Solves the DataDome slider captcha from the challenge images and returns the check URL. See the slider guide.
Solves the captcha challenge. After getting this URL in the payload, make a GET request to it and you will receive the datadome cookie in the response. Set this cookie in your cookiejar, you have now successfully solved DataDome slider.
The Content-Type of the request body
Your API key for authentication
Your chrome UserAgent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/XXX.0.0.0 Safari/537.36The deviceLink you constructed
https://geo.captcha-delivery.com/captcha/?initialCid=...The parentUrl visible in the form fields
The response body of the GET request to the deviceLink
<!DOCTYPE html> <html lang="en"The DataDome challenge bundle, which the challenge page loads with a script tag such as
The lowercase hex sha256 of the challenge bundle exactly as served (the UTF-8 bytes of the string you would send as script), 64 characters. Send it instead of script; sending both is rejected. If the API has not seen this bundle yet, it answers 422 script_required. Repeat the request with script.
^[0-9a-f]{64}$The response body from the GET request to the .jpg image, base64 encoded.
The response body from the GET request to the .frag.png image, base64 encoded.
The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 or IPv6 address of your pc.
Your accept-language header
OK Captcha solved successfully
The URL for captcha verification
https://geo.captcha-delivery.com/captcha/check?cid=...Bad Request Error occurred
Forbidden Authentication error
Script required. The API has not seen the script behind scriptHash yet (or its record expired), or the request is solved in a browser that needs the script itself. Not billed. Repeat the same request with script instead of scriptHash; the API stores it and the hash works for every client from then on.
{
"payload": "https://geo.captcha-delivery.com/captcha/check?cid=...",
"headers": {
"sec-ch-ua": "\"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"154\", \"Google Chrome\";v=\"154\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-ch-ua-arch": "\"x86\"",
"sec-ch-ua-bitness": "\"64\"",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform-version": "\"19.0.0\"",
"sec-ch-ua-full-version": "\"154.0.7900.12\"",
"sec-ch-ua-full-version-list": "\"Not;A=Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"154.0.7900.12\", \"Google Chrome\";v=\"154.0.7900.12\"",
"sec-ch-ua-wow64": "?0",
"sec-ch-ua-form-factors": "\"Desktop\"",
"sec-ch-device-memory": "32",
"sec-ch-dpr": "1.5",
"sec-ch-viewport-width": "2560",
"sec-ch-viewport-height": "1271",
"device-memory": "32",
"dpr": "1.5",
"viewport-width": "2560",
"ect": "4g",
"rtt": "150",
"downlink": "10",
"sec-ch-prefers-color-scheme": "dark",
"sec-ch-prefers-reduced-motion": "no-preference",
"sec-ch-prefers-reduced-transparency": "no-preference"
}
}Tags
Generates the telemetry ("tags") payload you post to DataDome's collector to raise your session's trust score. See Tags.
Solves the tags challenge.
The Content-Type of the request body
Your API key for authentication
Your chrome UserAgent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/XXX.0.0.0 Safari/537.36sitekey, static for each site. parse it from the /js/ payload request from browser
Your current datadome cookie
The referer visible as the referer header in the payload POST
First time 'ch', second time 'le'
The IP that is used to post the sensor data to the target site. You can use /ip to get the IP from a connection. If you are not using proxies, this will be the IPv4 or IPv6 address of your pc.
Your accept-language header
The value you will find in the ddv form field
OK Interstitial solved successfully
The payload for POST request
jsData=...Bad Request Error occurred
Forbidden Authentication error
{
"payload": "jsData=...",
"headers": {
"sec-ch-ua": "\"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"154\", \"Google Chrome\";v=\"154\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-ch-ua-arch": "\"x86\"",
"sec-ch-ua-bitness": "\"64\"",
"sec-ch-ua-model": "\"\"",
"sec-ch-ua-platform-version": "\"19.0.0\"",
"sec-ch-ua-full-version": "\"154.0.7900.12\"",
"sec-ch-ua-full-version-list": "\"Not;A=Brand\";v=\"8.0.0.0\", \"Chromium\";v=\"154.0.7900.12\", \"Google Chrome\";v=\"154.0.7900.12\"",
"sec-ch-ua-wow64": "?0",
"sec-ch-ua-form-factors": "\"Desktop\"",
"sec-ch-device-memory": "32",
"sec-ch-dpr": "1.5",
"sec-ch-viewport-width": "2560",
"sec-ch-viewport-height": "1271",
"device-memory": "32",
"dpr": "1.5",
"viewport-width": "2560",
"ect": "4g",
"rtt": "150",
"downlink": "10",
"sec-ch-prefers-color-scheme": "dark",
"sec-ch-prefers-reduced-motion": "no-preference",
"sec-ch-prefers-reduced-transparency": "no-preference"
}
}Last updated

