February 17, 2023
Learn how to locate the sitekey required to solve reCAPTCHA, and other CAPTCHA types. This step-by-step guide helps developers identify and extract sitekeys from websites for seamless API integration.
To solve CAPTCHAs like reCAPTCHA with automation tools or CAPTCHA-solving services like CaptchaAI, you need two things:
The sitekey
The website URL where the CAPTCHA is embedded
This short guide will show you how to find the sitekey on any webpage and use it with CaptchaAI’s API to solve reCAPTCHA v2/v3 challenges.
A sitekey is a public identifier used by CAPTCHA services (like Google reCAPTCHA) to render a CAPTCHA on a web page. It tells the CAPTCHA API which site is making the request and how to serve the challenge.
CaptchaAI uses the sitekey to generate a valid token that you can submit in your automated request or form.
To find the sitekey, you’ll need:
A web browser (preferably Chrome or Firefox)
Built-in Developer Tools (press F12 or right-click → Inspect)
Basic HTML knowledge (optional)
Go to the Target Website
Visit the page where the reCAPTCHA appears.
Open Developer Tools
Right-click on the page and select Inspect
Or press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (Mac)
Search for the Sitekey
In the Elements tab, press Ctrl + F
Search for:
data-sitekey
Copy the Sitekey
You’ll find HTML like:
The value inside data-sitekey is what you’ll need.
Once you have the sitekey and the page URL, you're ready to submit your request.
https://ocr.captchaai.com/in.php
Parameter |
Description |
key |
Your CaptchaAI API key |
method |
Must be userrecaptcha |
googlekey |
The data-sitekey from the target site |
pageurl |
The full URL of the page with CAPTCHA |
json |
Set to 1 for JSON response |
import requests
payload = {
'key': 'your_captchaai_api_key',
'method': 'userrecaptcha',
'googlekey': '6Lc_aX0UAAAAABx12345678abcdEfghIjklmnop',
'pageurl': 'https://example.com/login',
'json': 1
}
response = requests.post('https://ocr.captchaai.com/in.php', data=payload)
print(response.json())
On success:
{
"status": 1,
"request": "CAPTCHA_TASK_ID"
}
Poll this endpoint after 15–20 seconds:
https://ocr.captchaai.com/res.php?key=your_captchaai_api_key&action=get&id=CAPTCHA_TASK_ID&json=1
json
{
"status": 1,
"request": "03AGdBq25v..."
}
If the CAPTCHA isn’t solved yet, you’ll get:
json
{
"status": 0,
"request": "CAPCHA_NOT_READY"
}
Some CAPTCHAs load dynamically — refresh the page or wait a few seconds if you don’t see the sitekey.
Some websites try to obfuscate the sitekey — look through JavaScript or iframe tags if needed.
Always ensure your use complies with the website’s terms of service.
Finding the sitekey is the first step in automating CAPTCHA solving with services like CaptchaAI. Once you have it, you're ready to solve reCAPTCHA challenges automatically using CaptchaAI’s simple API.
🧩 Supports 27,000+ CAPTCHA types
⚡ Fast solving (usually <10 seconds)
🔁 Unlimited solves with monthly plans
🧵 Multithreaded support (great for bots)
🧑💻 Easy-to-use REST API
No per-captcha surprises. CaptchaAI offers flat-rate plans:
Plan |
Threads |
Price |
Basic |
5 |
$15/month |
Standard |
15 |
$30/month |
Advanced |
50 |
$90/month |
Enterprise |
200+ |
$300+/month |
CaptchaAI takes the headache out of CAPTCHA solving. With just a few lines of code, you can automate any CAPTCHA encounter and keep your workflow efficient.
🚀 Start solving CAPTCHAs today at captchaai.com
The 1st reCAPTCHA OCR Solver – Optimized for Savings.