How to solve Cloudflare Turnstile

Sora Fujimoto
AI Solutions Architect
13-May-2023

Variants of Turnstile Supported by Capsolver

Turnstile/Challenge verification is an alternative to reCaptcha. Our system automatically handles all its forms:
- Manual
- Non-Interactive
- Invisible
Navigating the Cloudflare Turnstile
Prior to tackling Cloudflare, please familiarize yourself with the necessary preconditions and critical considerations:
Prerequisites:
- Capsolver Access Key
Key considerations to ensure validity:
- The
Tokenprovided by the getTaskResult method is the successfully solved captcha token.
For instructions on navigating the Cloudflare turnstile, refer to our guide. Certain parameters are essential while others are optional.
In this scenario, we will concentrate on the indispensable parameters. The task options for handling Cloudflare are:
AntiTurnstileTaskProxyLess: This task type utilizes our server's proxy.
We will employ AntiTurnstileTaskProxyLess as the site is protected by Cloudflare Turnstile.
Omission of any parameters or incorrect submissions might result in the token being rejected by the website. All the necessary parameters are illustrated in this image:

Step 1: Initiating a Task with Capsolver
Execute the createTask method to input the required data:
JSON
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
You will need to regularly query the getTaskResult API until the captcha is successfully solved.
Example of the required request:
json
POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey":"YOUR_API_KEY",
"taskId": "TASKID_OF_CREATETASK" //ID from the createTask method
}
Upon successful captcha resolution, you'll obtain a response akin to the following visual:

The acquired captcha token can be validated by submitting the token.
⚠️ Rejection of the token may suggest missing or incorrect details. Ensure it's not a cloudflare challenge 5s, which requires different parameters.
For guidance on resolving Cloudflare Challenge 5s IUAM, please visit this article: link
In summary, although it might appear challenging to navigate Cloudflare turnstile, with capsolver.com the process is streamlined and effective. Following the steps provided will allow you to effortlessly resolve 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

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

Ethan Collins
03-Dec-2025

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.

Ethan Collins
03-Dec-2025

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.

Aloísio Vítor
11-Nov-2025

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.

Rajinder Singh
10-Nov-2025

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

Ethan Collins
29-Oct-2025

How to Solve the Cloudflare 5s Challenge: A Technical Guide for Web Scraping
Learn how to solve the Cloudflare 5-second challenge using advanced CAPTCHA solver APIs. A step-by-step guide for developers on overcoming Cloudflare JavaScript and Managed Challenges with CapSolver for stable web scraping automation.

Anh Tuan
28-Oct-2025

