Solve hCaptcha in n8n workflows.

n8n gets a browser through community nodes: n8n-nodes-playwright and n8n-nodes-puppeteer both run a script against a real page. Neither solves captchas. The workflow on this page uses one of them to read the hCaptcha sitekey, n8n's HTTP Request node to get a token from the NoneCap API, and the same browser node to put the token in the form and submit it. You can import it as a file. NoneCap is a captcha solver service that focuses on hCaptcha, and does not solve reCAPTCHA or Turnstile.

Install a browser node

Both packages are unverified community nodes from npm. n8n's GUI installation page installs them like this, as the instance owner or an admin:

  1. Go to Settings > Community Nodes and select Install.
  2. Enter n8n-nodes-playwright or n8n-nodes-puppeteer in Enter npm package name.
  3. Tick I understand the risks of installing unverified code from a public source and select Install.

That needs a self-hosted n8n: n8n's docs say community nodes from npm are not available on n8n Cloud. An instance in queue mode installs them from the command line instead, in ~/.n8n/nodes (manual installation).

  • n8n-nodes-playwright runs Chromium, Firefox or WebKit and copies Playwright's browsers into the package when n8n loads it. Its README asks for n8n 1.0 or later and about 1 GB of disk for the browsers.
  • n8n-nodes-puppeteer runs the Chrome that Puppeteer downloads, or a remote browser through its Browser WebSocket Endpoint option. Its README has a Docker setup with the libraries Chrome needs, and a Proxy Server option.

If the Playwright node says "Browser executable not found"

n8n-nodes-playwright 0.2.21, its latest release, looks for Chromium in the folder layout Playwright used up to version 1.56. Newer Playwright installs Chrome for Testing in differently named folders, and the node fails with "Browser executable not found" (issue #13 for Linux x64, #15 for macOS). It happened on our macOS test install too. What fixed it there: as the user n8n runs as, run npx playwright@1.56.1 install before you start n8n, so the browsers the node copies are in the layout it expects. The Puppeteer node has no such step.

The workflow

  1. Start: a Manual Trigger. Swap it for a Schedule or Webhook trigger when it works.
  2. Playwright: read sitekey: Run Custom Script. Opens the page and returns the sitekey, the URL and the browser's user agent.
  3. NoneCap: create solve: an HTTP Request node that sends those three fields to POST /v1/solves?wait=60.
  4. Still running?: an If node. While status is pending or solving, NoneCap: get solve asks GET /v1/solves/{id}?wait=60 and goes back to the If node.
  5. Playwright: inject and submit: Run Custom Script. Opens the page again, puts the token in h-captcha-response and submits the form.

The workflow opens the page twice because each Playwright or Puppeteer node starts its own browser and closes it when its script returns (both packages' code does this), so no page survives from one node to the next.

Import it

Download the workflow for the node you installed, then in n8n open the workflow menu (three dots) and choose Import from File, or Import from URL with the file's address:

Then create a Bearer Auth credential with your NoneCap API key as the token, select it in both NoneCap nodes, and change https://target.example/login in the first script to your page. The two NoneCap nodes amount to this request:

NoneCap: create solve
POST https://api.nonecap.com/v1/solves?wait=60
Authorization: Bearer <your NoneCap API key>
Body (JSON): {{ JSON.stringify($json) }}

The two scripts

The first browser node opens the page in a new browser context with the word Headless taken out of the user agent, reads the sitekey and returns the browser's user agent with it, so the solve request carries it as the API reference asks:

Playwright: read sitekey
const headless = await $page.evaluate(() => navigator.userAgent);
const ua = headless.replace("HeadlessChrome", "Chrome");
const page = await (await $browser.newContext({ userAgent: ua })).newPage();
await page.goto("https://target.example/login");
const sitekey = await page.$eval("[data-sitekey]", (el) => el.dataset.sitekey);
return [{ json: { type: "hcaptcha", sitekey, url: page.url(), user_agent: ua } }];

The last node stops if the solve did not succeed, opens the page with the same user agent, fills the response fields and clicks submit. It reads the user agent from the first node by its name, so rename both together. The click waits for a new page to load, so it expects a form that navigates when submitted; for a form that submits in the background, wait for whatever your page shows afterwards instead:

Playwright: inject and submit
const ua = $("Playwright: read sitekey").first().json.user_agent;
const page = await (await $browser.newContext({ userAgent: ua })).newPage();
if ($json.status !== "solved") {
  throw new Error(`NoneCap solve ${$json.status}: ${$json.error?.message}`);
}
await page.goto($json.url);
await page.evaluate((token) => {
  for (const name of ["h-captcha-response", "g-recaptcha-response"]) {
    const el = document.querySelector(`textarea[name="${name}"]`);
    if (el) el.value = token;
  }
}, $json.token);
await Promise.all([page.waitForNavigation(), page.click("[type=submit]")]);
const text = await page.evaluate(() => document.body.innerText);
return [{ json: { url: page.url(), user_agent: ua, text } }];

If the site rejects the token, make sure the browser's user agent matches the solve's returned user_agent, which the last node receives as $json.user_agent: some sites refuse a token submitted by a different browser version.

The Puppeteer file has the same scripts with different first lines. The Puppeteer node gives every page a fixed Chrome 73 user agent unless you set one (it is in the package's source), so its scripts set the browser's own:

Puppeteer: read sitekey
const ua = (await $browser.userAgent()).replace("HeadlessChrome", "Chrome");
const page = $page;
await page.setUserAgent(ua);

And the first lines of its last node:

Puppeteer: inject and submit
const ua = $("Puppeteer: read sitekey").first().json.user_agent;
const page = $page;
await page.setUserAgent(ua);

Things to know

  • wait=60 holds each request open for up to 60 seconds (the API allows 1 to 90) and returns as soon as the solve finishes; the If loop only goes round when a solve takes longer than that.
  • If the browser node uses a proxy, add proxy: "http://user:pass@host:port" to the object the read script returns (that object is the create-solve body), so the token is solved from the same address the browser submits it from.
  • For an invisible widget, call its data-callback with the token after filling the fields; the Playwright guide shows how.
  • Tokens expire within minutes of issue, so keep the last node right after the solve.
  • A failed solve is never charged, and the last node stops with the solve's error message.

Use it where you're allowed to

NoneCap's terms rule out fraud, credential stuffing, spam and unauthorised access, and leave it to you to check the terms of the sites your workflows visit.

Last updated November 2026.

Frequently asked

Is there a Playwright node for n8n?
Yes, as the community package n8n-nodes-playwright. It has Navigate, Get Text, Click Element, Fill Form, Take Screenshot and Run Custom Script operations in Chromium, Firefox or WebKit. Install it under Settings, Community Nodes on a self-hosted n8n.
Is there a Puppeteer node for n8n?
Yes, as the community package n8n-nodes-puppeteer. It gets page content, PDFs and screenshots, and runs custom Puppeteer scripts, in a Chrome it downloads or in a remote browser you point it at. Install it under Settings, Community Nodes on a self-hosted n8n.
Can n8n solve hCaptcha?
Not by itself, and neither browser node solves captchas. The workflow on this page reads the sitekey with the browser node, gets a token from the NoneCap API with n8n's HTTP Request node, and submits the form with the token in h-captcha-response.
Does this work on n8n Cloud?
The browser part does not. n8n's docs say community nodes installed from npm are only available on self-hosted n8n, and verified community nodes may not have run-time dependencies, which both browser packages have. On n8n Cloud the HTTP Request node can still get a token from the API, for a form you then submit over HTTP yourself.
Does NoneCap solve reCAPTCHA or Cloudflare Turnstile?
No. NoneCap solves hCaptcha only: image grids, drag puzzles and point-on-image challenges. For reCAPTCHA or Turnstile you need a different solver.

Start solving hCaptcha in minutes.

1,300 free credits on signup. Pay per solve, credits never expire, failed solves never charged.