Solve CAPTCHAs in n8n with DeathByCaptcha

Solve CAPTCHAs in n8n with DeathByCaptcha

Posted on 2026-11-23 | 3 min read | Category: no-code-tool | By DeathByCaptcha Engineering Team

No-Code Tools


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:

  1. 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_params for reCAPTCHA, turnstile_params for Turnstile, waf_params for Amazon WAF).
  2. Upload CAPTCHA (HTTP Request): POST https://api.dbcapi.me/api/captcha.
  3. Wait 2s (Wait node).
  4. Get result (HTTP Request): GET /captcha/{id}.
  5. 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_base64 in 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

Common pitfalls

  • Using a CAPTCHA solving service for illegitimate purposes instead of legitimate automation and testing.
  • Hard-coding credentials or API keys in client-side code that users can inspect.
  • Sending the wrong CAPTCHA type parameter, which returns incorrect or empty responses.
  • Failing to poll for the solution status and not handling timeouts gracefully.
  • Scaling automation without monitoring error rates, response times, and CAPTCHA type coverage.
DBC
Written by DeathByCaptcha Engineering Team
DeathByCaptcha engineers build and operate the CAPTCHA solving technology behind this site. Articles are written by our technical team and checked for accuracy before publishing.
Reviewed by DeathByCaptcha Editorial Team

Get your API key — start solving

Free to try · No credit card · Python, Node.js, Java, C# SDKs

Get your API key


Status: OK

Servers are fully operational with faster than average response time.
  • Average solving time
  • 8 seconds - Normal CAPTCHAs (1 min. ago)
  • 4 seconds - reCAPTCHA V2, V3 (1 min. ago)
  • 12 seconds - others (1 min. ago)
Chrome and Firefox logos
Browser extensions available

Updates

  1. Nov 19: RESOLVED - Crypto payments are now fully operational again through the Hekelet payment processor.
  2. May 13: Crypto payments got better! You can now purchase your CAPTCHAs using cryptocurrency through the Hekelet payment processor at https://deathbycaptcha.com/user-pay and receive an extra 20% FREE CAPTCHA credit with every package purchased this way.
  3. Apr 15: GitHub Updates: We’ve upgraded our libraries, expanded sample code, enhanced documentation, and added support for C++ and Go, making integration smoother than ever. Explore what’s new at github.com/deathbycaptcha!

  4. Previous updates…

Support

Our system is designed to be completely user-friendly and easy-to-use. Should you have any trouble with it, simply email us at DBC technical support emailcom, and a support agent will get back to you as soon as possible.

Live Support

Available Monday to Friday (10am to 4pm EST) Live support image. Link to live support page