Solve CAPTCHAs in n8n with DeathByCaptcha
An n8n workflow can scrape a page, fill a form and post the result to a database. Then the target shows a CAPTCHA and the workflow stops. You do not need a browser automation stack to get past it: DeathByCaptcha has an HTTP API, and n8n has an HTTP Request node.
This guide ships an importable workflow that solves a CAPTCHA and hands the token to the rest of your workflow.
The workflow
The example lives in the official Node.js client:
examples/n8n/deathbycaptcha-solve.workflow.json
In n8n, open Workflows → Import from File and pick that file. Nothing is installed and nothing is published to a registry: it is a workflow, not a community node.
The workflow has five steps:
- Build request (Code node): turns the input item and your environment
variables into the form body DeathByCaptcha expects, including the right
parameter key for the type (
token_paramsfor reCAPTCHA,turnstile_paramsfor Turnstile,waf_paramsfor Amazon WAF). - Upload CAPTCHA (HTTP Request):
POST https://api.dbcapi.me/api/captcha. - Wait 2s (Wait node).
- Get result (HTTP Request):
GET /captcha/{id}. - Solved? (If node): loops back to the wait while the response has no text.
Credentials
The account comes from the environment, never from the workflow JSON:
DBC_USERNAME=your_username
DBC_PASSWORD=your_password
# or
DBC_AUTHTOKEN=your_authtoken
Self-hosted n8n must be allowed to read environment variables in nodes:
N8N_BLOCK_ENV_ACCESS_IN_NODE=false
n8n Cloud does not expose environment variables to nodes, so this template does not run there as-is. On Cloud, proxy the call through a service you control or wait for a community node.
What to send and what you get
The input items decide what is solved:
{ "type": 4, "params": { "googlekey": "6Le...", "pageurl": "https://example.test/" } }
type: DeathByCaptcha type — 4 reCAPTCHA v2, 5 v3, 12 Turnstile, 16 Amazon WAF, 21 DataDome, 0 image.params: the parameters for that type.image_base64: the image for type 0.
The output is the DeathByCaptcha response:
{ "captcha": 123456789, "text": "03AOPBWq_...", "is_correct": true }
The token is in $json.text. The next node can POST it to your target, or a
Playwright/Puppeteer node can inject it into the page.
Why the wait and the loop
DeathByCaptcha does not answer synchronously: it uploads the challenge, works on it and exposes the result when it is ready. The Wait node plus the If loop is the polling step. Two seconds is a reasonable interval; the API is polled every one to three seconds by the official clients.
Things to know
- The loop runs until it solves or the execution times out. Set the n8n execution timeout to something sensible so a stuck challenge does not hold a worker forever.
- IP-bound tokens. Turnstile, Amazon WAF and DataDome tokens are only valid from the IP that solved them. If your browser and DeathByCaptcha do not share a proxy, the token will be rejected by the target site.
- The token is not printed. The workflow returns it as data; it does not log it.
- Image challenges need
image_base64in the input item; the workflow does not download images for you.
Next steps
- Workflow and reference implementation: https://github.com/deathbycaptcha/deathbycaptcha-api-client-nodejs
- Browser injection: the Playwright and Puppeteer examples in the same repository.
- API documentation: https://deathbycaptcha.com/api
- Agent metadata for code generators: https://github.com/deathbycaptcha/deathbycaptcha-agent-api-metadata

English
Spanish
Russian
Chinese
French
Hindi
Arabic
Bengali
Indonesian
Portuguese
com, 