CaptchaAI

How to Find the Sitekey from CAPTCHA Services

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:

  1. The sitekey
     

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


 

🤔 What is a Sitekey?

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.

🔧 Tools You Need

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)




 

🕵️‍♂️ How to Find the Sitekey – Step-by-Step

✅ Example: Google reCAPTCHA v2

 

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:

 

 

 

 


 

  1. The value inside data-sitekey is what you’ll need.
     

🛠️ Submit to CaptchaAI API

Once you have the sitekey and the page URL, you're ready to submit your request.

📤 Endpoint

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

 

✅ Required Parameters (Form-Encoded)

 

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

 

 

 

 

 

 

 

 

 

 

💻 Example in Python

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())

 

✅ Expected Response

On success:

{

  "status": 1,

  "request": "CAPTCHA_TASK_ID"

}

 

🔄 Get the Solved Result

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

 

📌 Sample Response When Ready:

json

{

  "status": 1,

  "request": "03AGdBq25v..."

}

 

If the CAPTCHA isn’t solved yet, you’ll get:

json

{

  "status": 0,

  "request": "CAPCHA_NOT_READY"

}

 

⚠️ Tips and Warnings

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

 

✅ Final Thoughts

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.

🔗 Start solving CAPTCHAs now

🧠 Why Use CaptchaAI?

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

💵 Pricing Overview

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

 

✅ Final Thoughts

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.

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

© 2021 - 2025. All Rights Reserved.