Get API Key

Vibe coding: llms.txt

The easiest way to integrate is with the official SDKs for Python and Node.js. In any other language, or if you prefer not to add a dependency, call the HTTP API directly. Current documentation:

Official SDKs: Python (captcha-solver-api) and Node.js (@captcha-solver-api/javascript-sdk). Their README files describe the classes and options of the current version, and the examples folders contain a script for every captcha type.

llms.txt provides a compact text reference. If it differs from these pages, check SDK installation and task parameters against the pages above.

Ready-to-paste prompt#

Copy the prompt for your language (or the HTTP API prompt if you do not use an SDK), replace the parts in square brackets with your captcha type and page, and send it to your AI assistant (Cursor, Claude Code, ChatGPT and others).

Python#

Read https://captcha-solver.com/llms.txt. If it differs from https://captcha-solver.com/en/docs/captcha-types, follow that page.
Use the official Python SDK captcha-solver-api (pip install captcha-solver-api). Take class names, options and examples for each captcha type from the README and the examples folder at https://github.com/captcha-solver-api/python-sdk.

Task: write a Python 3.9+ function that solves [captcha type, for example reCAPTCHA v2] on [page URL or short description of the page] and returns the solution fields for this type.

Requirements:
- Read the API key from the CAPTCHA_API_KEY environment variable; do not hardcode or log it.
- Use CaptchaClient as a context manager with polling_interval=5 and timeout=300.
- Handle ApiError, CaptchaTimeoutError and NetworkError.
- Do not automatically create another task after a timeout.
- If the solution has to be applied in a browser driven by Selenium, follow the matching example at https://github.com/captcha-solver-api/captcha-solver-selenium-python-examples.

JavaScript#

Read https://captcha-solver.com/llms.txt. If it differs from https://captcha-solver.com/en/docs/captcha-types, follow that page.
Use the official JavaScript SDK @captcha-solver-api/javascript-sdk (npm install @captcha-solver-api/javascript-sdk). Take class names, options and examples for each captcha type from the README and the examples folder at https://github.com/captcha-solver-api/javascript-sdk.

Task: write an async Node.js function that solves [captcha type, for example reCAPTCHA v2] on [page URL or short description of the page] and returns the solution fields for this type.

Requirements:
- Use ES module imports. Node.js 18+ is enough for the SDK; the Puppeteer examples below need Node.js 22.12+.
- Read the API key from process.env.CAPTCHA_API_KEY; do not hardcode or log it. Run this code only on the server, never in the browser.
- Create CaptchaClient with pollingInterval: 5000 and timeout: 300000 (both in milliseconds).
- Handle ApiError, TimeoutError and NetworkError.
- Do not automatically create another task after a timeout.
- If the solution has to be applied in a browser driven by Puppeteer or Playwright, follow the matching example at https://github.com/captcha-solver-api/captcha-solver-puppeteer-javascript-examples or https://github.com/captcha-solver-api/captcha-solver-playwright-javascript-examples.

HTTP API#

Read https://captcha-solver.com/llms.txt. If it differs from https://captcha-solver.com/en/docs/methods or https://captcha-solver.com/en/docs/captcha-types, follow those pages.
Do not use an SDK: call the HTTP API at https://api.captcha-solver.com directly with [language and HTTP library, for example PHP + Guzzle or Go + net/http].

Task: write a function that solves [captcha type, for example reCAPTCHA v2] on [page URL or short description of the page] and returns the solution fields for this type.

Requirements:
- Read the API key from the CAPTCHA_API_KEY environment variable; do not hardcode or log it.
- Create the task with POST /createTask, then call POST /getTaskResult: wait 5 seconds, then poll every 5 seconds while status is "processing", and give up after 300 seconds.
- Set a timeout on every HTTP request and handle network errors.
- Check errorId in every response; if it is not 0, raise an error with errorCode and errorDescription. Do not retry ERROR_ZERO_BALANCE.
- Do not automatically create another task after a timeout.

Examples on GitHub#

Each browser example opens a page, collects the captcha parameters, solves the task through the SDK, applies the solution and checks that the page accepted it.

Use these examples only on your own pages or on sites you are authorized to test.

Feedback from AI agents#

If you integrate the service with an AI agent (Claude Code, Cursor, Codex and similar) and the agent runs into a problem, it can send us a short feedback note: what you wanted to do, at which step the problem appeared, and what was unclear. This tells us where the docs need work. The agent finds out how to send it in llms.txt.

  • Sending is optional: llms.txt asks the agent to check with you first.
  • The agent includes your account email only if you agree: this helps us find the account with the problem. The agent must not send the API key, passwords or proxy credentials.
  • We store the IP address and User-Agent of the request with the note. Notes are kept for 90 days and then deleted automatically.
  • There is no reply to feedback. If you need an answer or help, write to support@captcha-solver.com.

The endpoint and fields are described in llms.txt, section "Feedback for AI agents".