CaptchaAI

How to Find the Parameters Needed to Solve reCAPTCHA with CaptchaAI

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.

🔍 What You Need to Solve reCAPTCHA

To solve a reCAPTCHA task using CaptchaAI, you’ll need three main parameters:

 1. Sitekey – The public site key of the reCAPTCHA

This is the value used by Google to render the reCAPTCHA challenge. CaptchaAI requires it under the parameter name: googlekey.

🔍 How to Find It:

  1. Open the web page where the CAPTCHA appears.

  2. Use Developer Tools (Right Click → Inspect, or press Ctrl+Shift+I).

  3. Look for data-sitekey.

You’ll find something like:

<div class="g-recaptcha" data-sitekey="6Lc_aAAAABBBCCCDDDEEEFFFGGG"></div>

2. Page URL – Where the CAPTCHA is hosted

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.

3. Action (Optional, reCAPTCHA v3 only)

For reCAPTCHA v3, Google uses an action string to indicate the type of interaction (e.g., "login", "checkout").

🔍 How to Find It:

  1. In DevTools, search for: grecaptcha.execute

  2. 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.


🚀 Submitting the Task to CaptchaAI

Make a form-encoded POST request to:

https://ocr.captchaai.com/in.php


Required Parameters:


Name

Description

key

✅ Your CaptchaAI API key

method

Set to userrecaptcha for reCAPTCHA

googlekey

The site key you found (data-sitekey)

pageurl

Full page URL where CAPTCHA is shown

version

Use v2 or v3 depending on the CAPTCHA type

action

(Optional) Only for v3 – e.g., login

json

(Optional) Set to 1 to get JSON reply


✅ Sample Request (reCAPTCHA v2):

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"

✅ Sample Request (reCAPTCHA v3):

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"


✅ Response Handling

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"

}



🧠 Pro Tips

  • 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.


🛡️ Legal & Ethical Reminder

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


✅ Conclusion

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.

Follow Us
Billing
Pricing
Partner Programs
Our Partners Partnership
Company
Software Directory Blogs

© 2021 - 2025. All Rights Reserved.