CaptchaNo
[ AGENTS ]

Captcha solving for
n8n agents

An agent that meets a challenge has nothing in its toolset that can answer it, so it stalls or hallucinates its way around. Give it a solver as a tool and the block becomes one more call.

n8n · http request node
HTTP Request node
  Method:          POST
  URL:             https://api.captchano.com/v1/solve?wait=60
  Authentication:  Header Auth
                   Name:  Authorization
                   Value: Bearer cn-YOUR_API_KEY
  Send Body:       JSON
  Body:
  {
    "type": "turnstile",
    "sitekey": "{{ $json.sitekey }}",
    "url": "{{ $json.pageUrl }}"
  }

The node outputs { status, solution: { token, userAgent }, cost } —
pass {{ $json.solution.token }} to the next step.

Why agents need this specifically

A scraper that hits a challenge fails loudly and you fix it. An agent fails quietly: it reasons about the blocked page, invents a plausible next step, and reports progress it never made. The failure is worse because it is silent. A typed solver tool turns an ambiguous dead end into a deterministic result the agent can branch on.

What the tool returns

  • A token or cookie — depending on the challenge type. Session-graded systems return a cookie plus the header set used to earn it.
  • The user agent used, so the agent can replay it on submission.
  • The cost of the solve, so an agent operating under a budget can account for it rather than spending blind.

Keeping the loop bounded

Give the agent a solve budget per run. Every response reports its cost, so a supervisor can cut the loop when spend passes a threshold rather than discovering it on the invoice. At $0.00598 per solve a typical agent run costs a few cents or less, but an unbounded retry loop is still an unbounded retry loop.

Keep the tool call blocking

The examples call ?wait=60, so the tool returns a finished token in a single step. That matters more for agents than for scripts: a tool that returns "still solving" forces the model to reason about polling, which it does badly. If you need a longer ceiling, raise wait up to 120 seconds. Request shapes for every challenge type are in the API reference.

[ HOW IT FITS ]

How the solve fits into n8n

n8n's AI Agent node can call an HTTP Request tool. Point it at the solve endpoint and the agent can clear a captcha mid-workflow.

  1. 01
    Add an AI Agent node

    Connect a chat model and memory as usual.

  2. 02
    Add an HTTP Request tool

    POST to the API with ?wait=60 and Header Auth credentials.

  3. 03
    Describe the tool

    Tell the agent to call it with type, sitekey and url when a page shows a captcha.

  4. 04
    Use the token

    The agent passes the token to the tool that submits the form.

Getting the token into the page

The agent receives the token from the tool and passes it to the next node or tool that submits.

[ PITFALLS ]

Where integrations usually go wrong

Timeout

Raise the tool's timeout above the wait value.

Key exposure

Use n8n credentials so the key never appears in the prompt or the workflow export.

[ FAQ ]

n8n captcha FAQ

Is there a community node?

No, and none is needed. The HTTP Request tool covers the whole API.

Can I run it without an agent?

Yes. See the n8n integration guide for a plain workflow with one HTTP Request node.

Does it work on n8n cloud?

Yes. It is an ordinary outbound HTTPS request.

How do I see what the agent spent?

Each result includes the cost, and the dashboard lists every solve.

[ READ NEXT ]

Guides that help

Ready to build?

Start with a free 7-day trial of the Hobby plan, then pay per successful solve or keep the plan as your traffic grows. Cancel before the trial ends and you pay nothing.

See our plans
Are you an AI agent? See setup options →