Developers / Integrations

Use Captora anywhere.

Copy-paste examples for the browser-automation tools and workflow builders you already use.

You never say which captcha it is: Captora recognises it, and sending the page's HTML helps with captchas added by JavaScript. Where the token goes depends on the website. The response field is usually g-recaptcha-response (reCAPTCHA), h-captcha-response (hCaptcha) or cf-turnstile-response (Turnstile). Inspect your page to confirm. Use these tools only on sites where you have permission. See our terms.

Selenium (Python)

Send the page you're on, solve, and fill the response field. Uses the Python SDK.

selenium_example.py
from selenium import webdriverfrom captora import Captora  # the Python SDK file from /sdks/pythoncaptora = Captora("YOUR_API_KEY")driver = webdriver.Chrome()driver.get("https://example.com/login")# Send the page you're on. Captora finds the captcha and solves it.# html=... lets it read captchas the page added with JavaScript.token = captora.solve_url(driver.current_url, html=driver.page_source)["token"]# Put the token where the page expects it, then submitdriver.execute_script(    "document.getElementById('g-recaptcha-response').value = arguments[0];", token)

Puppeteer (Node.js)

The same flow with Puppeteer and the JavaScript SDK.

puppeteer_example.js
import puppeteer from "puppeteer";import { Captora } from "./captora.js"; // the JavaScript SDK file from /sdks/javascriptconst captora = new Captora(process.env.CAPTORA_API_KEY);const browser = await puppeteer.launch();const page = await browser.newPage();await page.goto("https://example.com/login");// Send the page you're on. Captora finds the captcha and solves it.const { token } = await captora.solveUrl(page.url(), { html: await page.content() });await page.evaluate((t) => {  document.getElementById("g-recaptcha-response").value = t;}, token);await page.click("form button[type=submit]");

Playwright (Python)

The same idea with Playwright. Captora works out which captcha the page has.

playwright_example.py
from playwright.sync_api import sync_playwrightfrom captora import Captoracaptora = Captora("YOUR_API_KEY")with sync_playwright() as p:    browser = p.chromium.launch()    page = browser.new_page()    page.goto("https://example.com/login")    # Works for whichever captcha the page has (here it may be Cloudflare Turnstile)    token = captora.solve_url(page.url, html=page.content())["token"]    page.evaluate(        "t => document.querySelector('[name=cf-turnstile-response]').value = t", token    )    page.click("form button[type=submit]")

n8n and other workflow tools

No code needed. Use two HTTP Request nodes with a Wait node in between. The same idea works in Make, Zapier and similar tools.

1. Create the task

HTTP Request node
Method:  POSTURL:     https://api.captora.me/v1/solveHeader:  Authorization = Bearer YOUR_API_KEYBody (JSON):{  "websiteURL": "https://example.com/login"}

2. Wait 5 seconds, then fetch the result

HTTP Request node
Method:  GETURL:     https://api.captora.me/v1/tasks/{{ $json.taskId }}Header:  Authorization = Bearer YOUR_API_KEYIF  {{ $json.status }}  equals  completed  -> use {{ $json.result.token }} in the next nodeELSE (processing)  -> go back to the Wait node and check again

AI agents

Give an agent a captcha-solving tool by describing it as a function and calling the Captora client when the agent uses it. Works with any model that supports tool or function calling.

tool definition (JSON)
{  "name": "solve_captcha",  "description": "Solve the captcha on a web page. Give the page address (and, if you have it, the page HTML). Returns the token to submit with the form.",  "parameters": {    "type": "object",    "properties": {      "websiteURL": { "type": "string", "description": "Full URL of the page that shows the captcha" },      "html": { "type": "string", "description": "Optional: the page source, for pages that load the captcha with JavaScript" }    },    "required": ["websiteURL"]  }}
handler
// When the model calls solve_captcha, run the Captora client and return the tokenasync function solveCaptcha({ websiteURL, html }) {  const result = await captora.solveUrl(websiteURL, html ? { html } : {});  return { token: result.token };}

Anything else

Any tool that can make an HTTP request can use Captora. See the API docs, the SDKs for seven languages, and the drop-in compatibility if your software already supports another solver's API.

Build once.
Connect with flexibility.