Products
DataDome API
Last updated
DataDome challenge solving: slider, tags and interstitial, on any site DataDome protects.
Base URL
Every endpoint of this API is under:
https://api.cyxkit.app/v1/datadome- HTTPS only.
- Every endpoint is a
POSTwithContent-Type: application/json. - A request body is at most 1 MiB.
- Cross-origin requests (CORS) are allowed from any origin.
Authentication
- Send your API key in the
X-API-Keyheader on every request. Never put it in a URL, a query string or a request body. - A key is your client name, an underscore, then 46 characters. The 10 characters after the client name and underscore are the key's public id: support may ask you for it, and it is safe to share. The rest of the key is secret.
- Your key is on the API keys page of your cyxkit dashboard: reveal it there whenever you need it. If it leaks, rotate it there: you get a new key, and the old one stops working within seconds.
Scopes
Each endpoint needs one scope, and your key works on the endpoints of the scopes it holds. A balance key holds every scope on sale unless cyxkit staff narrowed it:
datadome:seatgeek:POST /v1/datadome/seatgeekdatadome:solve:POST /v1/datadome/solvedatadome:vinted:POST /v1/datadome/vinted
Endpoints
Every endpoint answers the same object:
{
"cookie": "datadome=afk842hrzbWaD3KLgTSM45r0...",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...",
"time": 384,
"attempts": 1,
"verified": false
}Send cookie back to the site as its Cookie header and userAgent as its User-Agent: the pair belongs together, and a cookie replayed under a different User-Agent is refused by DataDome. time is how long the solve took in milliseconds, attempts how many tries it needed, and verified says whether the solver confirmed the cookie against the site before answering.
An unknown field in a request body is refused, so send only the fields below.
Challenge types
DataDome puts one of three things in front of a page, and cyxkit clears all three. You do not tell the solver which one you are facing and there is no per-challenge endpoint or flag: it loads the page, sees what is served and answers the same object either way.
- Slider. The puzzle where a piece is dragged into place, served when DataDome wants a human gesture. It is the heaviest of the three, so it is the one most likely to want a second try — raise
attemptsif you see it fail. - Tags. The silent path, with nothing shown to a browser at all: the page runs DataDome's tags script and the verdict rides on the signals it reports. Send
tagswhen you already hold a payload for that page; leave it out and the solver builds one itself. - Interstitial. The full-page block shown before the content. It clears without a gesture once the right payload is posted.
Whichever it was, you get back one datadome cookie and the User-Agent it belongs to, and verified tells you whether the solver confirmed that pair against the site before answering.
POST /v1/datadome/solve
The general solver: you name the site, its DataDome JS key and the page, and it clears whatever challenge that page serves — slider, tags or interstitial. Scope datadome:solve.
| Field | Type | Meaning | |
|---|---|---|---|
site | string | required | The host you are solving for, such as www.example.com. |
key | string | required | The site's DataDome JS key, the ddjskey its challenge script is loaded with. |
path | string | required | The path of the page being loaded, such as /. |
proxy | string | optional | The proxy the solve goes through, as http://__CYXKIT_REDACTED__:__CYXKIT_REDACTED__@host:port. Use your own egress whenever the site is sensitive to it. |
referer | string | optional | The Referer the page would have been loaded with. |
tags | string | optional | The DataDome tags payload, when you already hold one for the page. |
attempts | int | optional | How many times to retry before giving up. |
curl -X POST https://api.cyxkit.app/v1/datadome/solve -H "X-API-Key: $CYXKIT_KEY" -H "Content-Type: application/json" -d '{
"site": "www.example.com",
"key": "YOUR_DATADOME_JS_KEY",
"path": "/",
"proxy": "http://__CYXKIT_REDACTED__:__CYXKIT_REDACTED__@proxy.example:8080"
}'POST /v1/datadome/seatgeek
The same solve with a flow tuned for SeatGeek, which needs no site details from you. Slider, tags and interstitial are all cleared here too. Scope datadome:seatgeek.
| Field | Type | Meaning | |
|---|---|---|---|
proxy | string | optional | The proxy the solve goes through. |
attempts | int | optional | How many times to retry before giving up. |
curl -X POST https://api.cyxkit.app/v1/datadome/seatgeek -H "X-API-Key: $CYXKIT_KEY" -H "Content-Type: application/json" -d '{"proxy": "http://__CYXKIT_REDACTED__:__CYXKIT_REDACTED__@proxy.example:8080"}'POST /v1/datadome/vinted
The same solve tuned for Vinted, clearing slider, tags and interstitial alike. Its cookie carries the site's companion cookies beside datadome, so send the string back whole. Scope datadome:vinted.
| Field | Type | Meaning | |
|---|---|---|---|
proxy | string | optional | The proxy the solve goes through. |
attempts | int | optional | How many times to retry before giving up. |
curl -X POST https://api.cyxkit.app/v1/datadome/vinted -H "X-API-Key: $CYXKIT_KEY" -H "Content-Type: application/json" -d '{"proxy": "http://__CYXKIT_REDACTED__:__CYXKIT_REDACTED__@proxy.example:8080"}'Billing
- Your account has a prepaid balance in US dollars, and one balance pays for every solver. Add funds on the Add funds page of your cyxkit dashboard, which also lists what each endpoint costs.
- A request is charged only when the solver succeeded. Its price is held when the request starts and charged when the answer proves success; a failed or refused request is given back in full, before its answer reaches you.
- Every answer carries
X-Charge-Micros, what this request cost,0when it cost nothing, andX-Balance-Micros, your available balance after it. Money is in micro-USD: 1 USD is 1000000. Requests still in flight move the balance too, so it is a reading, not a promise. - When your balance cannot cover the next request, the answer is
402 insufficient_balance. Add funds and retry; nothing is charged for the refusal. - Your statement, with every top-up, charge and adjustment, is on the Usage page.
Limits
- A pay-as-you-go key runs uncapped: nothing bounds how many requests you make a minute or how many you have in flight, and the only thing that stops a solve is a balance that no longer covers it. A key that belongs to a plan runs on that plan's per-minute, burst and concurrency figures and has a monthly quota as well. Staff can set a limit on one account, on request or to stop abuse.
X-RateLimit-LimitandX-RateLimit-Remainingcome back only while your key has a per-minute limit, andX-Concurrency-LimitandX-Concurrency-Activeonly while it has a concurrency limit, so an uncapped key is sent neither pair and has nothing to count down. A plan key's answers also carryX-Quota-Limit,X-Quota-UsedandX-Quota-Reset.- Every answer carries
X-Cyxkit-Request-Id. Quote it when you contact support.
Errors
An error is a JSON object:
{"error": "rate_limited", "status": 429, "retryAfter": 12}error is a stable code to branch on, and status repeats the HTTP status. Some errors add the fields named below.
| Status | Error | Meaning |
|---|---|---|
| 401 | invalid_key | The key is missing, unknown, disabled or revoked. |
| 403 | subscription_inactive | A plan key's subscription is not active now. The body may name its subscriptionStatus and endsAt. |
| 403 | scope_missing | Your key does not hold this endpoint's scope. The body names the requiredScope and your key's scopes. |
| 403 | solver_not_on_sale | This endpoint is not on sale right now. The body names its scope. |
| 402 | insufficient_balance | Your balance does not cover this endpoint's price. The body carries availableMicros and priceMicros; there is no Retry-After. Add funds, then retry. |
| 402 | quota_exhausted | A plan key's quota for this period is used up. There is no Retry-After. |
| 429 | rate_limited | Too many requests this minute, for a key that has a per-minute limit. Wait Retry-After seconds; retryAfter in the body is the same wait. |
| 429 | concurrency_limit | Too many requests at once, for a key that has a concurrency limit. |
| 400 | bad_request | The request is malformed. |
| 400, 404 or 413 | - | The solver refused the request as sent. Its own answer is passed through, and the request is not charged or counted. |
| 413 | body_too_large | The request body is over 1 MiB. |
| 502 | upstream_unavailable | The solver could not be reached. |
| 503 | upstream_busy or database_unavailable | The solver is busy, or cyxkit could not check your key. Retry after Retry-After seconds. |
| 504 | upstream_timeout | The solver did not answer in time. |
Requests refused before they reach the solver are never charged, and never counted against a quota.