CAPSOLVER
Blog
Solve Cloudflare Turnstile

Solve Cloudflare Turnstile

Logo of CapSolver

Lucas Mitchell

Automation Engineer

21-May-2023

Deciphering Cloudflare Turnstile

Types of Turnstiles Handled by Capsolver

Turnstile/Challenge authentication serves as an alternative to reCaptcha, and our system is equipped to automatically manage every variant:

  • Manual
  • Non-Interactive
  • Invisible

Overcoming the Cloudflare Turnstile

Before addressing the Cloudflare Turnstile, it's important to prepare by understanding the necessary prerequisites and key considerations:

Prerequisites:

  • Capsolver Key

Essential Considerations for a Valid Solution:

  • The Token issued in the getTaskResult response is the captcha resolution token.

To navigate the Cloudflare turnstile effectively, please consult our guide. Certain parameters are mandatory, while others are optional. In this case, we're focusing on the required parameters only. The task type available for Cloudflare is:

  • AntiTurnstileTaskProxyLess: This task configuration utilizes our server's proxies.

We will opt for AntiTurnstileTaskProxyLess as the website employs a Cloudflare Turnstile.
Failure to provide complete parameters or incorrect submissions may result in the website rejecting the token. All necessary parameters are detailed in this diagram:

Diagram for Resolving Cloudflare Turnstile Captcha

Step 1: Initiating a Task with Capsolver

Deploy the createTask function to upload the required information:

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

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AntiTurnstileTaskProxyLess",
    "websiteURL": "https://www.yourwebsite.com",
    "websiteKey": "0x4XXXXXXXXXXXXXXXXX",
    "metadata": {
       "action": "login",  //optional
       "cdata": "0000-1111-2222-3333-example-cdata"  //optional
    }
  }
}

Step 2: Retrieving the Results

Continuously monitor the getTaskResult API endpoint to check when the captcha is resolved.

Example of the request needed:

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

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

Upon successful captcha resolution, the response will look similar to this:
Successfully Resolved Cloudflare Turnstile

The received captcha token should be validated by entering the token.

⚠️ A token rejection might suggest missing or inaccurate details. Verify that the setup does not pertain to the cloudflare challenge 5s, which would require different parameters.

For solutions to Cloudflare Challenge 5s IUAM, consult this blog: link

In summary, although tackling the cloudflare turnstile might seem challenging, capsolver.com simplifies and speeds up the process. Following the detailed steps provided will help you efficiently resolve any cloudflare issues.

Capsolver Team 💜

Compliance Disclaimer: The information provided on this blog is for informational purposes only. CapSolver is committed to compliance with all applicable laws and regulations. The use of the CapSolver network for illegal, fraudulent, or abusive activities is strictly prohibited and will be investigated. Our captcha-solving solutions enhance user experience while ensuring 100% compliance in helping solve captcha difficulties during public data crawling. We encourage responsible use of our services. For more information, please visit our Terms of Service and Privacy Policy.

More

Cloudflare Challenge vs Turnstile by CapSolver
Cloudflare Challenge vs Turnstile: Key Differences and How to Identify Them

nderstand the key differences between Cloudflare Challenge vs Turnstile and learn how to identify them for successful web automation. Get expert tips and a recommended solver.

Cloudflare
Logo of CapSolver

Lucas Mitchell

10-Dec-2025

How to Automate Cloudflare Challenge Solving in Selenium
How to Automate Cloudflare Challenge Solving in Selenium

Master the definitive strategy for Cloudflare Challenge Solving in Selenium. Use Undetected-Chromedriver, behavioral mimicry, and CapSolver's API for reliable web automation

Cloudflare
Logo of CapSolver

Ethan Collins

03-Dec-2025

How to solve Cloudflare Challenge with Node.JS
How to Solve Cloudflare Challenge with Node.js

A look at why Cloudflare blocks Node.js scrapers and how developers reliably get cf_clearance for data workflows.

Cloudflare
Logo of CapSolver

Ethan Collins

03-Dec-2025

 Top Cloudflare Challenge Solvers in 2026: Performance Rankings
Top Cloudflare Challenge Solvers in 2026: Performance Rankings

Discover the Top Cloudflare Challenge Solvers in 2026. We compare CapSolver's superior speed and 99%+ success rate against 5 smaller competitors. Learn why CapSolver is the best choice for web automation.

Cloudflare
Logo of CapSolver

Aloísio Vítor

11-Nov-2025

Solve Cloudflare with Python & Selenium
How to Solve Cloudflare Captcha with Python & Selenium

Struggling with Cloudflare Captcha? Learn how to tackle it using Python and Selenium! This guide breaks down what Cloudflare Captcha is and offers effective solutions for web scraping in 2024.

Cloudflare
Logo of CapSolver

Rajinder Singh

10-Nov-2025

How to Solve Cloudflare in 2026: The 6 Best Methods for Uninterrupted Automation
How to Solve Cloudflare in 2026: The 6 Best Methods for Uninterrupted Automation

Discover the 6 best methods to solve the Cloudflare Challenge 5s in 2026 for web scraping and automation. Includes detailed strategies, code examples, and a deep dive into the AI-powered CapSolver solution

Cloudflare
Logo of CapSolver

Ethan Collins

29-Oct-2025