API Tutorials

How to Solve reCAPTCHA v3 Automatically Using API

reCAPTCHA v3 runs silently — no checkbox, no image grid. Instead, it assigns a score between 0.1 (bot) and 0.9 (human) based on user behavior. The site's backend checks this score and decides whether to allow or block the request.

CaptchaAI solves reCAPTCHA v3 by generating a valid token with an acceptable score (typically 0.3, which passes most site thresholds). The process is: extract the sitekey and action parameter from the page, submit them to the API, and use the returned token in your request.


What you need before you start

Requirement Details
CaptchaAI API key Get one at captchaai.com/api.php
Sitekey Found in api.js?render=SITEKEY or grecaptcha.execute()
Action Found in grecaptcha.execute(sitekey, {action: 'login'})
Page URL The full URL where reCAPTCHA v3 runs

Step 1: Find the sitekey

reCAPTCHA v3 sitekeys appear in:

// In the script tag:
// <script src="https://www.google.com/recaptcha/api.js?render=6LfZil0UAAAAADM1Dpz..."></script>

// In JavaScript code:
// grecaptcha.execute('6LfZil0UAAAAADM1Dpz...', {action: 'submit'})

// In the global config:
// ___grecaptcha_cfg.clients[0].Y.Y.sitekey

Step 2: Find the action parameter

The action describes what the user is doing. Search the page JavaScript for grecaptcha.execute:

// grecaptcha.execute('SITEKEY', {action: 'login'})    → action = "login"
// grecaptcha.execute('SITEKEY', {action: 'submit'})   → action = "submit"
// grecaptcha.execute('SITEKEY', {action: 'homepage'})  → action = "homepage"

If you cannot find the action, use "verify" as the default.

Step 3: Submit to CaptchaAI

import requests

response = requests.get("https://ocr.captchaai.com/in.php", params={
    "key": "YOUR_API_KEY",
    "method": "userrecaptcha",
    "version": "v3",
    "googlekey": "6LfZil0UAAAAADM1Dpzsw9q0F11-bmervx9g5fE",
    "action": "login",
    "pageurl": "https://example.com/login",
    "json": 1
})

data = response.json()
task_id = data["request"]
print(f"Task ID: {task_id}")

```javascript const params = new URLSearchParams({ key: "YOUR_API_KEY", method: "userrecaptcha", version: "v3", googlekey: "6LfZil0UAAAAADM1Dpzsw9q0F11-bmervx9g5fE", action: "login", pageurl: "https://example.com/login",

Discussions (0)

No comments yet.

Related Posts

Reference CAPTCHA Token Injection Methods Reference
Complete reference for injecting solved CAPTCHA tokens into web pages.

Complete reference for injecting solved CAPTCHA tokens into web pages. Covers re CAPTCHA, Turnstile, and Cloud...

Automation Python reCAPTCHA v2
Apr 08, 2026
Reference Browser Session Persistence for CAPTCHA Workflows
Manage browser sessions, cookies, and storage across CAPTCHA-solving runs to reduce repeat challenges and maintain authenticated state.

Manage browser sessions, cookies, and storage across CAPTCHA-solving runs to reduce repeat challenges and main...

Automation Python reCAPTCHA v2
Feb 24, 2026
Use Cases CAPTCHA Solving in Ticket Purchase Automation
How to handle CAPTCHAs on ticketing platforms Ticketmaster, AXS, and event sites using Captcha AI for automated purchasing workflows.

How to handle CAPTCHAs on ticketing platforms Ticketmaster, AXS, and event sites using Captcha AI for automate...

Automation Python reCAPTCHA v2
Feb 25, 2026
Tutorials Caching CAPTCHA Tokens for Reuse
Cache and reuse CAPTCHA tokens with Captcha AI to reduce API calls and costs.

Cache and reuse CAPTCHA tokens with Captcha AI to reduce API calls and costs. Covers token lifetimes, cache st...

Automation Python reCAPTCHA v2
Feb 15, 2026
Tutorials Browser Console CAPTCHA Detection: Finding Sitekeys and Parameters
Use browser Dev Tools to detect CAPTCHA types, extract sitekeys, and find parameters needed for Captcha AI API requests.

Use browser Dev Tools to detect CAPTCHA types, extract sitekeys, and find all parameters needed for Captcha AI...

Automation reCAPTCHA v2 Cloudflare Turnstile
Mar 25, 2026
Use Cases Multi-Step Checkout Automation with CAPTCHA Solving
Automate multi-step e-commerce checkout flows that include CAPTCHA challenges at cart, payment, or confirmation stages using Captcha AI.

Automate multi-step e-commerce checkout flows that include CAPTCHA challenges at cart, payment, or confirmatio...

Automation Python reCAPTCHA v2
Mar 21, 2026
Comparisons reCAPTCHA v2 vs v3 Explained
Compare re CAPTCHA v 2 and v 3 side by side.

Compare re CAPTCHA v 2 and v 3 side by side. Learn how each version works, their detection methods, and how to...

Automation reCAPTCHA v3 Migration
Mar 19, 2026
Comparisons Headless vs Headed Chrome for CAPTCHA Solving
Compare headless and headed Chrome for CAPTCHA automation — detection differences, performance trade-offs, and when to use each mode with Captcha AI.

Compare headless and headed Chrome for CAPTCHA automation — detection differences, performance trade-offs, and...

Automation Python reCAPTCHA v2
Mar 09, 2026
Comparisons GeeTest vs reCAPTCHA
Compare Gee Test and re CAPTCHA side by side.

Compare Gee Test and re CAPTCHA side by side. Learn about challenge types, detection methods, solving approach...

Automation Testing reCAPTCHA v3
Apr 01, 2026
API Tutorials CaptchaAI API Latency Optimization: Faster Solves
Reduce CAPTCHA solve latency with Captcha AI by optimizing poll intervals, connection pooling, prefetching, and proxy selection.

Reduce CAPTCHA solve latency with Captcha AI by optimizing poll intervals, connection pooling, prefetching, an...

Automation Python reCAPTCHA v2
Feb 27, 2026
API Tutorials How to Solve reCAPTCHA v2 Callback Using API
how to solve re CAPTCHA v 2 callback implementations using Captcha AI API.

Learn how to solve re CAPTCHA v 2 callback implementations using Captcha AI API. Detect the callback function,...

Automation reCAPTCHA v2 Webhooks
Mar 01, 2026
API Tutorials Solve GeeTest v3 CAPTCHA with Python and CaptchaAI
Step-by-step Python tutorial for solving Gee Test v 3 slide puzzle CAPTCHAs using the Captcha AI API.

Step-by-step Python tutorial for solving Gee Test v 3 slide puzzle CAPTCHAs using the Captcha AI API. Includes...

Automation Python Testing
Mar 23, 2026
API Tutorials Case-Sensitive CAPTCHA API Parameter Guide
How to use the regsense parameter for case-sensitive CAPTCHA solving with Captcha AI.

How to use the regsense parameter for case-sensitive CAPTCHA solving with Captcha AI. Covers when to use, comm...

Python Web Scraping Image OCR
Apr 09, 2026