October 28, 2023
Solving reCAPTCHA with CaptchaAI requires a few key parameters—this guide shows you exactly how to find them. Learn to identify sitekeys, page URLs, and other essentials for seamless integration with CaptchaAI’s API.
If you're building bots, automation flows, or just trying to test form submissions protected by reCAPTCHA, you've probably realized this: knowing how to solve a reCAPTCHA isn’t enough — you also need to know what to send to the CAPTCHA-solving API.
That’s where this post comes in. We’re going to walk through the 3 key parameters required to solve reCAPTCHA v2 or v3 challenges using CaptchaAI, and more importantly — how to find them on any site.
Whether you're automating a login flow, signup page, or any form using reCAPTCHA, this guide will save you time and frustration.
To solve a reCAPTCHA task using CaptchaAI, you’ll need three main parameters:
This is the value used by Google to render the reCAPTCHA challenge. CaptchaAI requires it under the parameter name: googlekey.
Open the web page where the CAPTCHA appears.
Use Developer Tools (Right Click → Inspect, or press Ctrl+Shift+I).
Look for data-sitekey.
You’ll find something like:
<div class="g-recaptcha" data-sitekey="6Lc_aAAAABBBCCCDDDEEEFFFGGG"></div>
This is the full URL of the page that loads the reCAPTCHA widget.
Examples:
https://example.com/login
https://secure.example.org/signup
Note: If the CAPTCHA appears in an iframe, always use the URL of the parent page where the form is hosted, not the iframe src.
You’ll send this as the pageurl parameter.
For reCAPTCHA v3, Google uses an action string to indicate the type of interaction (e.g., "login", "checkout").
In DevTools, search for: grecaptcha.execute
You might see:
grecaptcha.execute('6Lc_aAAAABBB...', {action: 'checkout'})
➡️ Send the value (checkout) to CaptchaAI as the action parameter.
If unknown, use "homepage" as a default.
Make a form-encoded POST request to:
https://ocr.captchaai.com/in.php
curl -X POST https://ocr.captchaai.com/in.php \
-d "key=YOUR_API_KEY" \
-d "method=userrecaptcha" \
-d "googlekey=6Lc_aAAAABBBCCCDDDEEEFFFGGG" \
-d "pageurl=https://example.com/login" \
-d "version=v2" \
-d "json=1"
curl -X POST https://ocr.captchaai.com/in.php \
-d "key=YOUR_API_KEY" \
-d "method=userrecaptcha" \
-d "googlekey=6Lc_aAAAABBBCCCDDDEEEFFFGGG" \
-d "pageurl=https://example.com/login" \
-d "version=v3" \
-d "action=login" \
-d "json=1"
When polling the result, use:
https://ocr.captchaai.com/res.php?key=YOUR_API_KEY&action=get&id=CAPTCHA_ID&json=1
If status = 1, the request field will contain the token you can inject into the page.
If not ready, the response will show:
{
"status": 0,
"request": "CAPCHA_NOT_READY"
}
Always double-check that the sitekey matches the current URL.
The token you get usually expires in 90–120 seconds — submit your form quickly.
If the site uses a proxy iframe, open that URL separately and inspect it too.
Bypassing CAPTCHAs is a powerful tool — but use it responsibly. Make sure your automation respects the terms of service of any website you're working with.
CaptchaAI is best used for:
QA testing
Form submission automation
Bot development for ethical scraping
UX flow automation
Solving reCAPTCHA with CaptchaAI is only difficult if you don’t know what to look for. But now you do.
With just three parameters — sitekey, page URL, and optional action — you can integrate powerful CAPTCHA-solving directly into your automation stack.
🔗 Start solving CAPTCHAs today with CaptchaAI: https://captchaai.com
The 1st reCAPTCHA OCR Solver – Optimized for Savings.