Bypass Cloudflare Turnstile for Web Scraping with 2captcha
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ## Bypass Cloudflare Turnstile for Web Scraping with n8n ### How It Works This workflow automatically solves Cloudflare Turnstile CAPTCHAs for legitimate web scraping and automation tasks. It extracts the Turnstile sitekey from target webpages, submits solving requests to [2captcha](https://2captcha.com/?from=26496602), and returns bypass tokens that can be used in automated form submissions or data collection workflows. ### Set Up Steps 1. [Create a 2captcha Account](https://2captcha.com/?from=26496602): Sign up and get your API clientKey for CAPTCHA solving. 2. Import the Workflow into n8n: Add the workflow to your n8n instance. 3. Configure Authentication: Set up custom HTTP authentication with your clientKey in the credential settings. 4. Test the Workflow: Run with the demo URL to verify Turnstile detection and solving works correctly. 5. Replace the sample destination_url with your target website and start automating! Setup should take just a few minutes with your API credentials ready. ### Getting Started Once configured, the workflow can extract sitekeys from any Turnstile-protected webpage and return solved tokens for seamless automation. The [API documentation](https://2captcha.com/api-docs/cloudflare-turnstile?from=26496602) provides additional technical details for advanced use cases. ### Customizing the Workflow The workflow targets a demo page for testing. To adapt it, simply update the destination_url variable with your target website. You can also modify the sitekey extraction logic for sites that implement Turnstile differently, or integrate this as a subworkflow into larger scraping operations. ### API Reference Uses the TurnstileTaskProxyless task type with REST-based HTTPS communication. Each solve costs approximately $0.002 USD and typically completes within 30-90 seconds depending on queue load.
- Platform
- n8n
- Category
- Data & Analytics
- Price
- $14.99
- Creator
- Ludwig
- set
- code
- noOp
- wait
- switch
- stickyNote
- httpRequest
- stopAndError
- manualTrigger
- puppeteer
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Data & Analytics workflows
- Generate AI viral videos with VEO 3 and upload to TikTok$14.99
- Generate a daily multi-asset market report with TwelveData, Groq and Google Sheets$14.99
- Build an OpenAI RAG system with document upload, semantic search and caching$24.99
- Automate Website Content Scraping and SEO Keyword Extraction with GPT-4o-mini and Airtable$14.99
- Process Contact Form Submissions with Validation and MongoDB Storage$14.99
- Add webhook data to a Google Sheet$2.99
More from Ludwig
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.