websiteKey (often called the “sitekey”). This is a unique identifier the website owner gets from the CAPTCHA provider (Google, Cloudflare, etc.) to load the challenge on their page.
Finding this key is usually straightforward by inspecting the page’s HTML source code.
reCAPTCHA (v2 and v3)
Google’s reCAPTCHA sitekeys always start with6L and are 40 characters long.
Method 1: Inspect the HTML
- Go to the page with the CAPTCHA.
- Right-click anywhere on the page and select Inspect (or press
F12/Ctrl+Shift+I). - Press
Ctrl+F(orCmd+Fon Mac) to open the search bar in the Elements tab. - Search for
data-sitekey. - You should find an HTML element that looks like this:
data-sitekey is your websiteKey.
Method 2: Inspect Network Requests
If thedata-sitekey attribute is hidden or injected dynamically:
- Open the Developer Tools (
F12). - Go to the Network tab.
- Refresh the page.
- Filter the requests by typing
anchororreload(for reCAPTCHA v2) orreload?k=(for reCAPTCHA v3). - Click on the request made to
www.google.com/recaptcha/api2/... - Look at the request URL. You will see a parameter
k=.- Example:
https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LcQ3w4pAAAAABc123xyz_example_key_here&co=...
- Example:
- The value after
k=is your sitekey.
Cloudflare Turnstile
Cloudflare Turnstile sitekeys usually start with0x4AAAAAAA or 1x0000000 or 2x0000000 or 3x0000000.
Method 1: Inspect the HTML
- Go to the page with the CAPTCHA.
- Open Developer Tools (
F12) and go to the Elements tab. - Press
Ctrl+Fand search fordata-sitekeyorcf-turnstile. - You should find an element like this:
data-sitekey is your websiteKey.
Method 2: Inspect Network Requests
If the HTML element is dynamically injected:- Open Developer Tools (
F12) and go to the Network tab. - Refresh the page.
- Filter the requests by typing
challenge. - Look for a request to
https://challenges.cloudflare.com/turnstile/v0/api.js?onload=...or a POST request to/turnstile/v0/siteverify. - In the request URL or Payload, look for the
sitekeyorcdataparameters. - The sitekey will be a string starting with
0x4(or1x,2x,3x).
Once you have found the
websiteKey, you can pass it to the Scrapely API along with the websiteURL to solve the challenge.
