reCAPTCHA
How to identify which reCAPTCHA version a site uses
Picking the wrong reCAPTCHA task type is the most common reason a token is refused. Five minutes with developer tools tells you exactly which variant a page runs.
Why the version matters
Google ships several widgets under the reCAPTCHA name, and they produce tokens that look alike but are not interchangeable. A token made for the v2 checkbox will not satisfy a server that expects a v3 score for a given action, and a free tier token will not pass an Enterprise assessment. Each variant has its own task type and, in some cases, its own extra fields. Settling the version first saves a lot of time later.
There are four variants you will meet in practice: the v2 checkbox, v2 invisible, v3 score, and Enterprise (which itself comes in checkbox and score flavours). The clues below separate them without guesswork.
Look at what the visitor sees
Start with the page itself, because it narrows the field quickly:
- A box saying "I'm not a robot". This is the v2 checkbox, free or Enterprise.
- A small badge in the bottom right corner, no box. This is either v2 invisible or v3. The badge looks identical in both, so you need the next checks.
- Nothing at all, but a notice in the form footer such as "This site is protected by reCAPTCHA". The badge has been hidden with CSS, which is allowed when the notice is shown. Again v2 invisible or v3.
- An image grid that appears after pressing a button. Usually v2 invisible deciding to challenge you. v3 never shows a challenge.
Read the script URL
Open developer tools, go to the Elements panel and search for recaptcha/ in script tags, or filter the Network panel by recaptcha. The library URL is the strongest single clue:
| Script URL | What it tells you |
|---|---|
api.js with no parameters, or ?onload=... | v2 (checkbox or invisible), rendered automatically |
api.js?render=explicit | v2, rendered by the site's own code |
api.js?render=6L... | v3, the value is the site key |
enterprise.js (any parameters) | Enterprise; the same rules then apply to render= |
The host can be www.google.com or www.recaptcha.net; the latter is the alternative domain for regions where Google is hard to reach. It does not change the version.
Inspect the anchor iframe
Every rendered v2 widget creates an iframe from /recaptcha/api2/anchor (or /recaptcha/enterprise/anchor). Its size parameter is decisive: size=normal or size=compact means a checkbox, and size=invisible means the invisible variant. v3 also creates an invisible anchor iframe for its badge, so combine this with the script URL: size=invisible plus a render=6L... script means v3.
Find how the page asks for a token
Search all scripts (Ctrl+Shift+F in Chrome) for grecaptcha. The calls you find complete the picture:
grecaptcha.execute(siteKey, { action: 'login' })with two arguments and an action: v3.grecaptcha.execute()with no arguments, or with a widget id number: v2 invisible.grecaptcha.getResponse()after a click: v2 checkbox, reading the token from the widget.grecaptcha.enterprise.in front of any of these: the Enterprise flavour of the same variant.
The action argument deserves a note. Its presence is what makes a page a v3 page in practice, and you will need its exact value for the task. The guide on how to find the reCAPTCHA v3 action name shows how to read it when it is built dynamically.
A one shot console check
This snippet prints a verdict based on the loaded scripts and iframes. It is a quick first opinion, not a replacement for reading the code, but it is right on most pages.
(() => {
const libs = [...document.scripts].map((s) => s.src).filter((u) => /recaptcha\/(api|enterprise)\.js/.test(u));
const frames = [...document.querySelectorAll('iframe[src*="/anchor"]')].map((f) => new URL(f.src));
const ent = libs.some((u) => u.includes('enterprise.js')) || frames.some((u) => u.pathname.includes('enterprise'));
const renderKey = libs.map((u) => new URL(u).searchParams.get('render')).find((v) => v && v !== 'explicit');
const sizes = frames.map((u) => u.searchParams.get('size'));
let verdict = 'no reCAPTCHA found yet';
if (renderKey) verdict = 'v3 (score), key ' + renderKey;
else if (sizes.includes('invisible')) verdict = 'v2 invisible';
else if (sizes.length) verdict = 'v2 checkbox';
console.log((ent ? 'Enterprise ' : '') + verdict, { libs, sizes });
})();
Run it after the form is visible, since some sites load the library only when a field gets focus. If a page uses both v3 (for analytics on every page) and a v2 checkbox (on login), the snippet reports v3; look at the sizes array as well, which will list the checkbox iframe.
Map the result to a task type
| Variant | Task type | Fields beyond URL and key |
|---|---|---|
| v2 checkbox | ReCaptchaV2TaskProxyLess | None |
| v2 invisible | ReCaptchaV2TaskProxyLess | isInvisible: true |
| v3 | ReCaptchaV3TaskProxyLess | pageAction |
| v2 Enterprise | ReCaptchaV2EnterpriseTaskProxyLess | enterprisePayload if the widget has an s value |
| v3 Enterprise | ReCaptchaV3EnterpriseTaskProxyLess | pageAction, enterprisePayload |
Each has a variant without the ProxyLess suffix that accepts your own proxy. Prices differ by variant: $0.56 per 1,000 for v2, $0.70 for v3, and more for Enterprise; you pay only when a task is solved.
Edge cases worth knowing
- Pages that switch variants. Some sites run v3 first and fall back to a v2 checkbox when the score is low. You may see a checkbox only on the second attempt. Handle both in your script.
- Widgets in iframes. Login forms embedded from another domain carry their own reCAPTCHA. Inspect the frame's document, not the parent page, and use the frame's URL as
websiteURL. - Lazy loading. The library may load only after a click or scroll. If nothing shows up, interact with the form and check again.
- Not reCAPTCHA at all. A
data-sitekeythat starts with0x4belongs to Cloudflare Turnstile. The Turnstile parameters guide covers that widget.
Once you know the variant, the matching guide takes it from there: invisible v2, v3 in Python or Enterprise.
Common questions
How can I tell v3 from invisible v2 when both show a badge?
Check the script URL. A render= value that looks like a site key means v3; plain api.js with an invisible anchor iframe means v2 invisible.
Does recaptcha.net instead of google.com mean a different version?
No. It is an alternative domain for the same library, used where google.com is hard to reach.
Can one page use two reCAPTCHA versions?
Yes. A site may load v3 on every page and show a v2 checkbox on login. Solve the one tied to the form you submit.
Is there a visual difference with Enterprise?
No. The widgets look the same; enterprise.js and grecaptcha.enterprise calls are what give it away.
What if the page has no reCAPTCHA script at all?
It may load later, after a field gets focus, or the page uses another CAPTCHA such as Turnstile.
Keep reading
- reCAPTCHAGoogle reCAPTCHA in all its forms: v2 checkbox, v2 invisible, v3 score and Enterprise, plus where the token ends up.
- Find the reCAPTCHA site keyFive dependable places to read a reCAPTCHA site key, from the data-sitekey attribute to the k parameter in network requests.
- Solve reCAPTCHA Enterprise v2 and v3Recognise enterprise.js, carry the s value in enterprisePayload, and match the v3 Enterprise action so the site gets a usable token.
- Which reCAPTCHA version am I dealing with?Read the script URL, the widget markup and the execute call to tell v2, invisible v2, v3 and Enterprise apart.