What is reCAPTCHA v3 and how to recognise it
reCAPTCHA v3 is Google's invisible, score-based check. There is no checkbox and no image grid. A script observes the visit and, for each protected action, returns a score from 0.0 (very likely a bot) to 1.0 (very likely a human). The site's own server decides what each score means — v3 does not block anyone by itself — and a common pattern is to fall back to a v2 challenge when the score is low.

A standard v3 page usually loads api.js?render= followed by the site key and calls grecaptcha.execute with an action name when the visitor submits. If it loads enterprise.js and calls grecaptcha.enterprise.execute, use the separate reCAPTCHA v3 Enterprise guide.
The solve returns a token as gRecaptchaResponse. It is single-use and valid for about two minutes — reportedly a shorter window than a v2 token — and the action it was made for is embedded in it.
How to find the reCAPTCHA v3 site key and action
The site key is in the page's script URL (api.js?render=KEY), in the first argument of grecaptcha.execute('KEY', ...), in a data-sitekey attribute, or as the k parameter of the anchor request in the Network tab.

The action is the part that people miss. Open DevTools, press Ctrl+Shift+F and search for grecaptcha.execute: the value of action in the second argument (login, submit, register and so on) is your pageAction. If the call is buried in minified code, wrap window.grecaptcha.execute in the console before you trigger the protected action and log its arguments: the logged action is the one to send. Guessing the action is the main reason v3 solves fail, so find it first.
Enterprise-specific values such as a captured s belong to the Enterprise integration, not an assumption that every v3 page accepts the same inputs. Confirm the page's script and execute call before selecting a task.
minScore (0 to 1, default 0.7) is accepted but does not change a classic v3 solve. Google shows a token's score only to the site's server, so the solver cannot read it. The first execute on a page scores low, so the solver always runs a second one and returns that token. No setting guarantees a score: the site still decides what to do with it. On reCAPTCHA v3 Enterprise, minScore does pick how the solve runs.
Where the token goes
Send the token where the page would send its own: usually the g-recaptcha-response field of the form or the POST body of the protected request. Some pages use a suffixed field name, such as g-recaptcha-response-100000, so submit the form manually once with DevTools open and copy the exact field name from the Network tab. Other pages read the token from the hidden g-recaptcha-response textarea or pass it to a callback function.

Use the user agent you sent in the task for the submission. The token is single-use and short-lived, so submit it as soon as it arrives. The site then verifies the token with Google and reads the score, the action and the hostname from the verification response.
Because v3 has nothing visible on the page, a plain HTTP client is often enough: request the token, then send it as the g-recaptcha-response field of the request the page would have made. A Playwright, Puppeteer or Selenium script is only needed when the page itself must run a callback.
Common mistakes
The biggest one is an action mismatch. pageAction must equal what the page passes to grecaptcha.execute, character for character; a token made for a different action is rejected even if its score is high. The second is the site's own score threshold: the site decides what score is good enough, and a token that falls short is rejected even though it verifies with Google.
IP reputation is reported to affect scores — datacenter and VPN addresses tend to score lower — which matters when you choose the proxy variant. If you use your own proxy and it authenticates by IP address, that IP has to be whitelisted with your proxy provider first. The proxyless task name is the default and is usually enough.
The remaining mistakes are about the page. A token that is older than about two minutes or already used is rejected as timeout-or-duplicate. An invisible v2 widget looks almost identical to v3, so confirm which one the page runs: userverify requests with the key appear only for invisible v2.
Solve it with SurSolver
Send the page URL, site key, actual action as pageAction and your browser userAgent to createTask with ReCaptchaV3TokenProxyLess, or ReCaptchaV3Token to solve through your own proxy. Poll getTaskResult until the status is ready; the solution carries gRecaptchaResponse. The standard v3 API reference contains the request example; Enterprise integrations use their own task names and guide.
Examples in your language
The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints gRecaptchaResponse. Add pageAction, the action of the page's grecaptcha.execute call. The Playwright tab runs the whole flow on the live page: it reads the site key and action, solves, fills the field and submits the form.
import { SurSolver, TaskType } from 'sursolver';
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
const client = new SurSolver(API_KEY);
const { solution } = await client.solve({
type: TaskType.ReCaptchaV3TokenProxyLess,
websiteURL: 'https://example.com/login',
websiteKey: '6Le...',
userAgent: USER_AGENT,
});
console.log(solution.gRecaptchaResponse);
from sursolver import SurSolver, TaskType
API_KEY = "YOUR_API_KEY"
USER_AGENT = (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
client = SurSolver(API_KEY)
result = client.solve(
{
"type": TaskType.ReCaptchaV3TokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "6Le...",
"userAgent": USER_AGENT,
}
)
print(result.solution["gRecaptchaResponse"])
package main
import (
"context"
"fmt"
"log"
sursolver "github.com/sursolver/sursolver-go"
)
const (
APIKey = "YOUR_API_KEY"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
)
func main() {
client, err := sursolver.New(APIKey)
if err != nil {
log.Fatal(err)
}
result, err := client.Solve(context.Background(), sursolver.Task{
"type": sursolver.TaskTypeReCaptchaV3TokenProxyLess,
"websiteURL": "https://example.com/login",
"websiteKey": "6Le...",
"userAgent": UserAgent,
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result.Solution["gRecaptchaResponse"])
}
use serde_json::json;
use sursolver::{Client, task_types};
const API_KEY: &str = "YOUR_API_KEY";
const USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
#[tokio::main]
async fn main() -> Result<(), sursolver::Error> {
let client = Client::new(API_KEY)?;
let result = client
.solve(&json!({
"type": task_types::RE_CAPTCHA_V3_TOKEN_PROXY_LESS,
"websiteURL": "https://example.com/login",
"websiteKey": "6Le...",
"userAgent": USER_AGENT,
}))
.await?;
println!("{}", result.solution["gRecaptchaResponse"]);
Ok(())
}
<?php
require __DIR__ . '/vendor/autoload.php';
use SurSolver\Client;
use SurSolver\TaskTypes;
const API_KEY = 'YOUR_API_KEY';
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
$client = new Client(API_KEY);
$result = $client->solve([
'type' => TaskTypes::RE_CAPTCHA_V3_TOKEN_PROXY_LESS,
'websiteURL' => 'https://example.com/login',
'websiteKey' => '6Le...',
'userAgent' => USER_AGENT,
]);
echo $result->solution['gRecaptchaResponse'];
require "sursolver"
API_KEY = "YOUR_API_KEY"
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
client = SurSolver::Client.new(API_KEY)
result = client.solve(
"type" => SurSolver::TaskTypes::RE_CAPTCHA_V3_TOKEN_PROXY_LESS,
"websiteURL" => "https://example.com/login",
"websiteKey" => "6Le...",
"userAgent" => USER_AGENT
)
puts result.solution["gRecaptchaResponse"]
import com.sursolver.SolveResult;
import com.sursolver.SurSolverClient;
import com.sursolver.TaskTypes;
import java.util.Map;
public class QuickStart {
static final String API_KEY = "YOUR_API_KEY";
static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
public static void main(String[] args) throws InterruptedException {
SurSolverClient client = SurSolverClient.create(API_KEY);
SolveResult result = client.solve(Map.of(
"type", TaskTypes.ReCaptchaV3TokenProxyLess,
"websiteURL", "https://example.com/login",
"websiteKey", "6Le...",
"userAgent", USER_AGENT));
System.out.println(result.solution().get("gRecaptchaResponse"));
}
}
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.ReCaptchaV3TokenProxyLess,
["websiteURL"] = "https://example.com/login",
["websiteKey"] = "6Le...",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["gRecaptchaResponse"]);
// recaptcha-v3-playwright.js - solve reCAPTCHA v3 on the live page and submit the form with the
// token.
// Install: npm install playwright && npx playwright install chromium
// Run: node recaptcha-v3-playwright.js
const { chromium } = require('playwright');
const { setTimeout: sleep } = require('node:timers/promises');
// Your SurSolver API key.
const CLIENT_KEY = 'sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// The page that renders the widget, with its path and query string.
const TARGET_URL = 'https://example.com/page';
// Optional, read from the page when empty: the render= value of the api.js or enterprise.js
// script URL.
const SITE_KEY = '';
// The action in the page's grecaptcha.execute(key, { action }) call.
const PAGE_ACTION = 'YOUR_PAGE_ACTION';
// Enterprise only: 0.3 or below answers fastest, higher runs a second execute.
const MIN_SCORE = undefined;
// The User-Agent the solve runs with; send the result with this same user agent.
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
// The control that submits the form.
const SUBMIT_SELECTOR = '.PASTE_SUBMIT_SELECTOR';
// A selector that matches only after the site accepted the result.
const SUCCESS_SELECTOR = '.PASTE_ACCEPTED_SELECTOR';
const API = 'https://api.sursolver.com';
const POLL_ATTEMPTS = 60;
// API errors are HTTP 200 with errorId 1; anything else is a transport failure.
async function call(path, body) {
const res = await fetch(`${API}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.errorId !== 0) throw new Error(`${data.errorCode}: ${data.errorDescription}`);
return data;
}
async function solve(task) {
const created = await call('/createTask', { clientKey: CLIENT_KEY, task });
for (let attempt = 0; attempt < POLL_ATTEMPTS; attempt += 1) {
const result = await call('/getTaskResult', {
clientKey: CLIENT_KEY,
taskId: created.taskId,
});
if (result.status === 'ready') return result.solution;
await sleep(3000);
}
throw new Error(`task ${created.taskId} was not ready in ${POLL_ATTEMPTS} polls`);
}
// Optional task fields are sent only when they have a value.
function withoutEmpty(fields) {
return Object.fromEntries(
Object.entries(fields).filter(([, value]) => value !== undefined && value !== ''),
);
}
// A value the page did not show must be pasted into its constant at the top.
function need(name, value) {
if (value === undefined || value === null || value === '') {
throw new Error(`Could not read ${name} from the page; fill in the ${name} constant.`);
}
return value;
}
// Opens the page once and reads what the solve needs from it.
async function readPage(browser) {
const page = await browser.newPage({ userAgent: USER_AGENT });
try {
await page.goto(TARGET_URL, {
waitUntil: 'domcontentloaded',
timeout: 45000,
});
// The widget is often added after the page loads; give it a moment to appear.
await page
.waitForFunction(
() =>
!!(() => {
const src = [...document.scripts]
.map((script) => script.src)
.find((url) => /recaptcha\/(api|enterprise)\.js\?.*render=/.test(url));
const key = src ? new URL(src).searchParams.get('render') : null;
const fallback = document.querySelector('[data-sitekey]')?.dataset.sitekey;
return key && key !== 'explicit' ? key : fallback;
})(),
undefined,
{ timeout: 10000 },
)
.catch(() => undefined);
const dom = await page.evaluate(() => ({
websiteKey: (() => {
const src = [...document.scripts]
.map((script) => script.src)
.find((url) => /recaptcha\/(api|enterprise)\.js\?.*render=/.test(url));
const key = src ? new URL(src).searchParams.get('render') : null;
const fallback = document.querySelector('[data-sitekey]')?.dataset.sitekey;
return key && key !== 'explicit' ? key : fallback;
})(),
}));
return {
pageUrl: page.url(),
...dom,
};
} finally {
await page.close();
}
}
async function main() {
const browser = await chromium.launch();
try {
const found = await readPage(browser);
const solution = await solve({
type: 'ReCaptchaV3TokenProxyLess',
websiteURL: found.pageUrl,
websiteKey: need('websiteKey', SITE_KEY || found.websiteKey),
pageAction: PAGE_ACTION,
userAgent: USER_AGENT,
...withoutEmpty({
minScore: MIN_SCORE,
}),
});
// Submit from a fresh session with the user agent the solve ran with.
const context = await browser.newContext({ userAgent: USER_AGENT });
const page = await context.newPage();
await page.goto(found.pageUrl);
// reCAPTCHA defines execute() a moment after the page loads.
await page.waitForFunction(
() => typeof window.grecaptcha?.execute === 'function',
undefined,
{ timeout: 15000 },
);
const applied = await page.evaluate(
({ token }) => {
const api = window.grecaptcha;
if (!api || typeof api.execute !== 'function') return false;
// The page now receives the solved token wherever it calls execute().
api.execute = () => Promise.resolve(token);
for (const field of document.querySelectorAll('[name="g-recaptcha-response"]')) {
field.value = token;
}
return true;
},
{ token: solution.gRecaptchaResponse },
);
if (!applied) {
throw new Error('The page has no reCAPTCHA API; check how it requests the token.');
}
await page.click(SUBMIT_SELECTOR);
await page.locator(SUCCESS_SELECTOR).first().waitFor({ timeout: 15000 });
console.log('The site accepted the token.');
} finally {
await browser.close();
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
For the score model, action hygiene and verifying the token on your own server, read the reCAPTCHA v3 score and action guide.