Cookie usage notification

This site uses cookies. Cookies remember you, so we can provide you with personalized services. Read our privacy policy.

Logo of «GitHub»
  • We support API for «PHP» language
  • We support API for «Python» language
  • We support API for «Go» language
  • We support API for «Ruby» language
  • We support API for «C#» language
  • We support API for «Java» language
  • We support API for «JavaScript» language

DataDome CAPTCHA

DataDome

Token-based method for automated solving of DataDome.

To solve the DataDome captcha, you must use a proxy.

Attention, you need to check the value of the parameter t in captchaUrl, the value of t must be equal to fe.
If t=bv, it means that your ip is banned by the captcha and you need to change the ip address.

Attention, you must monitor the quality of the proxy used. If your proxy is blocked by the DataDome you will receive errors ERR_PROXY_CONNECTION_FAILED or ERROR_CAPTCHA_UNSOLVABLE, in such cases you need to rotate the proxy. You can use redidential proxies provided by our serivce.

Attention, you should provide your User-Agent that was used to interact with target website, it will be used to load and solve the captcha. Always use User-Agents of modern browsers.

Task type

  • DataDomeSliderTask - we use your proxies

DataDomeSliderTask task type specification

Property Type Required Description
type String Yes Task type: DataDomeSliderTask
websiteURL String Yes The full URL of target web page where the captcha is loaded.
captchaUrl String Yes The value of the src parameter for the iframe element containing the captcha on the page.
userAgent String Yes User-Agent of your browser will be used to load the captcha.
proxyType String Yes Proxy type:
http
socks4
socks5
proxyAddress String Yes Proxy IP address or hostname
proxyPort Integer Yes Proxy port
proxyLogin String No Login for basic authentication on the proxy
proxyPassword String No Password for basic authentication on the proxy

Request example

Method: createTask
API endpoint: https://api.2captcha.com/createTask

DataDomeSliderTask

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "DataDomeSliderTask",
    "websiteURL": "https://www.pokemoncenter.com/",
    "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",
    "userAgent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.3",
    "proxyType":"http",
    "proxyAddress":"1.2.3.4",
    "proxyPort": "8080",
    "proxyLogin":"user23",
    "proxyPassword":"p4$$w0rd"
  }
}

Response example

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "cookie": "datadome=4ZXwCBlyHx9ktZhSnycMF...; Path=/; Secure; SameSite=Lax"
    },
    "cost": "0.00299",
    "ip": "1.2.3.4",
    "createTime": 1695214711,
    "endTime": 1695214720,
    "solveCount": 1
}