On this page

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:

Code
https://api.cyxkit.app/v1/datadome
  • HTTPS only.
  • Every endpoint is a POST with Content-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-Key header 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/seatgeek
  • datadome:solve: POST /v1/datadome/solve
  • datadome:vinted: POST /v1/datadome/vinted

Endpoints

Every endpoint answers the same object:

json
{
  "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 attempts if 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 tags when 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.

FieldTypeMeaning
sitestringrequiredThe host you are solving for, such as www.example.com.
keystringrequiredThe site's DataDome JS key, the ddjskey its challenge script is loaded with.
pathstringrequiredThe path of the page being loaded, such as /.
proxystringoptionalThe proxy the solve goes through, as http://__CYXKIT_REDACTED__:__CYXKIT_REDACTED__@host:port. Use your own egress whenever the site is sensitive to it.
refererstringoptionalThe Referer the page would have been loaded with.
tagsstringoptionalThe DataDome tags payload, when you already hold one for the page.
attemptsintoptionalHow many times to retry before giving up.
bash
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.

FieldTypeMeaning
proxystringoptionalThe proxy the solve goes through.
attemptsintoptionalHow many times to retry before giving up.
bash
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.

FieldTypeMeaning
proxystringoptionalThe proxy the solve goes through.
attemptsintoptionalHow many times to retry before giving up.
bash
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, 0 when it cost nothing, and X-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-Limit and X-RateLimit-Remaining come back only while your key has a per-minute limit, and X-Concurrency-Limit and X-Concurrency-Active only 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 carry X-Quota-Limit, X-Quota-Used and X-Quota-Reset.
  • Every answer carries X-Cyxkit-Request-Id. Quote it when you contact support.

Errors

An error is a JSON object:

json
{"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.

StatusErrorMeaning
401invalid_keyThe key is missing, unknown, disabled or revoked.
403subscription_inactiveA plan key's subscription is not active now. The body may name its subscriptionStatus and endsAt.
403scope_missingYour key does not hold this endpoint's scope. The body names the requiredScope and your key's scopes.
403solver_not_on_saleThis endpoint is not on sale right now. The body names its scope.
402insufficient_balanceYour balance does not cover this endpoint's price. The body carries availableMicros and priceMicros; there is no Retry-After. Add funds, then retry.
402quota_exhaustedA plan key's quota for this period is used up. There is no Retry-After.
429rate_limitedToo 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.
429concurrency_limitToo many requests at once, for a key that has a concurrency limit.
400bad_requestThe 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.
413body_too_largeThe request body is over 1 MiB.
502upstream_unavailableThe solver could not be reached.
503upstream_busy or database_unavailableThe solver is busy, or cyxkit could not check your key. Retry after Retry-After seconds.
504upstream_timeoutThe solver did not answer in time.

Requests refused before they reach the solver are never charged, and never counted against a quota.