> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapely.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to find a Sitekey

> Learn how to locate the sitekey for reCAPTCHA and Cloudflare Turnstile.

When submitting a CAPTCHA task to Scrapely, you must provide the `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 with `6L` and are 40 characters long.

### Method 1: Inspect the HTML

1. Go to the page with the CAPTCHA.
2. Right-click anywhere on the page and select **Inspect** (or press `F12` / `Ctrl+Shift+I`).
3. Press `Ctrl+F` (or `Cmd+F` on Mac) to open the search bar in the Elements tab.
4. Search for `data-sitekey`.
5. You should find an HTML element that looks like this:

```html theme={null}
<div class="g-recaptcha" data-sitekey="6LcQ3w4pAAAAABc123xyz_example_key_here"></div>
```

The value inside `data-sitekey` is your `websiteKey`.

### Method 2: Inspect Network Requests

If the `data-sitekey` attribute is hidden or injected dynamically:

1. Open the Developer Tools (`F12`).
2. Go to the **Network** tab.
3. Refresh the page.
4. Filter the requests by typing `anchor` or `reload` (for reCAPTCHA v2) or `reload?k=` (for reCAPTCHA v3).
5. Click on the request made to `www.google.com/recaptcha/api2/...`
6. 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=...`
7. The value after `k=` is your sitekey.

***

## Cloudflare Turnstile

Cloudflare Turnstile sitekeys usually start with `0x4AAAAAAA` or `1x0000000` or `2x0000000` or `3x0000000`.

### Method 1: Inspect the HTML

1. Go to the page with the CAPTCHA.
2. Open Developer Tools (`F12`) and go to the **Elements** tab.
3. Press `Ctrl+F` and search for `data-sitekey` or `cf-turnstile`.
4. You should find an element like this:

```html theme={null}
<div class="cf-turnstile" data-sitekey="0x4AAAAAAABc123xyz_example_key"></div>
```

The value inside `data-sitekey` is your `websiteKey`.

### Method 2: Inspect Network Requests

If the HTML element is dynamically injected:

1. Open Developer Tools (`F12`) and go to the **Network** tab.
2. Refresh the page.
3. Filter the requests by typing `challenge`.
4. Look for a request to `https://challenges.cloudflare.com/turnstile/v0/api.js?onload=...` or a POST request to `/turnstile/v0/siteverify`.
5. In the request URL or Payload, look for the `sitekey` or `cdata` parameters.
6. The sitekey will be a string starting with `0x4` (or `1x`, `2x`, `3x`).

<Info>
  Once you have found the `websiteKey`, you can pass it to the Scrapely API along with the `websiteURL` to solve the challenge.
</Info>
