Get reCAPTCHA and Turnstile tokens with Cap.Guru
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api2.cap.guru over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Test values (Edit Fields (Set)): sets 4 fields: type, sitekey, pageurl…
- Build Cap.Guru task (Code): runs custom JavaScript code
- Send task to Cap.Guru (HTTP Request): calls api2.cap.guru
- Check task was created (Code): runs custom JavaScript code
- Wait: waits 10 seconds
- Get result from Cap.Guru (HTTP Request): calls api2.cap.guru
- Check result (Code): runs custom JavaScript code
- Token ready? (If): checks a condition and branches into true / false
- Return token (Edit Fields (Set)): sets 2 fields: token, taskId
HTTP calls to: api2.cap.guru
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if
From the author
Quick overview This workflow generates reCAPTCHA v2/v3 or Cloudflare Turnstile solution tokens by creating a task in Cap.Guru via its API, polling for completion, and returning the solved token for use in protected form submissions. How it works 1. Runs…