Blog
How to solve DataDome Captcha

How to solve DataDome Captcha

Logo of Capsolver

CapSolver Blogger

How to use capsolver

28-Aug-2023

How to solve DataDome Captcha

🤔 What is DataDome?

DataDome CAPTCHA is one of the tools that DataDome uses to differentiate between human users and bots. CAPTCHA, as mentioned before, stands for "Completely Automated Public Turing test to tell Computers and Humans Apart." It's a test designed to be easy for humans to pass but difficult for bots.

When DataDome's system detects suspicious activity that might suggest a bot, it can trigger a CAPTCHA challenge. The user must then successfully complete the CAPTCHA to prove they are human and not a bot.

A DataDome CAPTCHA challenge could look something like this representation:

In this representation, the user is presented with a CAPTCHA image and a slider button that the user must complete the puzzle. Upon successfully completing the CAPTCHA, the user can proceed to access the website. If they fail or if the CAPTCHA isn't completed, the system may deny access or present another CAPTCHA challenge.

In summary, DataDome is a comprehensive bot protection solution that uses AI and machine learning to identify and block harmful bot activities. Its CAPTCHA challenge is one of the tools it uses to verify whether a user is a human or a bot, helping to maintain the security and integrity of the websites it protects.

In this blog, we will focus on solving Datadome Captcha.

How to solve DataDome Captcha

👋 Before we start solving DataDome, there are some requeriments and points that we need to be aware that they are needed to know

🔒 Requeriments:

  • Capsolver Key
  • Proxy

🪄 Points to be aware that if you don't follow, solution will be invalid:

  • The query parameters of the captcha url are obtained dynamic. This mean that you can't send a static captcha url over and over.
    The query parameters are the bold words: https://geo.captcha-delivery.com/captcha/?initialCid=yourInitialCid&cid=yourCid&t=fe&referer=https%3A%2F%2Fantoinevastel.com%2Fbots%2Fdatadome&s=YourSParam&e=youreParam these are obtained in the first GET where you get the captcha
  • The query param t, need to have the value t=fe, if have t=bv, this mean the captchaUrl is banned and you can't submit us that.
  • Match the TLS of the chrome version, header and header order.
  • Match the proxy used for solve the captcha for interact with the page
  • User Agent must be obtained from the documentation

    Check the documentation to obtain the latest

Make sure that you understand all the points to make sure capsolver can solve the captcha correctly 🙄.

To solve datadome captcha you also need to understand our documentation: documentation.

If any parameter is missing, you will likely encounter issues with the token not being accepted by the website.

The first method that you need to use from the documentation is createTask, this method need the parameters of the picture.

Some parameters are required and some are optional. Depends where you want to solve DataDome Captcha
For this example, we will only use the required parameters. The task types for datadome are:

  • DatadomeSliderTask: This task type requires your own proxies.

For this example, we will use DatadomeSliderTask as the site uses datadome captcha.

After read this basic guide to understand how you should do it, you are ready for solve datadome 🤩
Let's start! 🫣

☀️ Step 1: Submit the information to capsolver

Use the method createTask for submit the information:

POST https://api.capsolver.com/createTask

{
"clientKey": "Your_API_KEY",
"task": {
"type": "DatadomeSliderTask",
"websiteURL": "https://antoinevastel.com/bots/datadome",
"captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=yourInitialCid&cid=yourCid&t=fe&referer=https%3A%2F%2Fantoinevastel.com%2Fbots%2Fdatadome&s=YourSParam&e=youreParam",
"proxy": "yourproxy",
"userAgent": "check documentation for get user agent that you must use"
  }
}

🎯 Step 2: Get the results

To verify the results, you'll need to continuously poll the getTaskResult API endpoint until the captcha is resolved.

Here's an example request:

POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json

{
    "clientKey":"YOUR_API_KEY",
    "taskId": "TASKID_OF_CREATETASK" //ID created by the createTask method
}

Once the captcha is successfully resolved, you'll receive a response similar to the one depicted in the following image:

The captcha token received can be verified by submitting the cookie datadome with the value of the response to the relevant site.

⚠️ If the token is rejected, it may indicate that some information is missing or incorrect.
Make sure your TLS is correct (TLS matching the user agent used, good headers, headers order) and the same proxy used for solve the captcha is being used.

In conclusion, while solving datadome captcha may seem a daunting task, capsolver.com makes the process swift and efficient. By following the steps outlined above, you can easily resolve datadome.

Capsolver Team 💜

More