reCAPTCHA
How to find the reCAPTCHA v3 action name
reCAPTCHA v3 tokens carry an action label, and many sites refuse a token whose action is not the one they expect. Here is how to read the exact value from any page.
What the action is and why it matters
When a page asks reCAPTCHA v3 for a token, it passes a label describing what the visitor is doing: grecaptcha.execute(siteKey, { action: 'login' }). Google stores that label inside the token. When the site's server verifies the token, the response includes the action alongside the score, and Google's own integration guidance tells site owners to check that the action matches the one they expected for that endpoint.
For your task, that label is the pageAction field, described in the glossary entry on the page action. Send the wrong one, or none, and a careful site rejects the request even when the score is fine. The action is not secret; it is right there in the page's JavaScript. The work is in finding the right call when a page has several.
Search the loaded scripts
This is the fastest route and works on most sites:
- Open developer tools and press Ctrl+Shift+F (Cmd+Option+F on macOS) to search across all loaded sources.
- Search for
execute(together withaction, or simply forgrecaptcha. - Pretty print minified files with the
{}button so the call is readable. - Read the object passed as the second argument.
{action: "submit_contact"}means the action issubmit_contact.
Actions may contain only letters, digits, slashes and underscores, which helps when you search a bundle with a regular expression such as action\s*:\s*["'][A-Za-z0-9_/]+["']. Most pages have one or two calls, typically named after the feature: login, signup, search, checkout, contact or homepage.
When the action is built at run time
Bundled apps often pass a variable instead of a literal: execute(key, { action: actionName }), where actionName comes from a route table or component prop. Static search then shows the variable, not the value. Two techniques resolve it.
Pause on a breakpoint
Click the line number of the execute call in the Sources panel to set a breakpoint, then perform the action on the page. When execution pauses, hover the variable or read it in the Scope pane. A conditional breakpoint is not needed; the line only runs when a token is requested.
Log every call with a temporary wrapper
If you cannot find the call site at all, wrap the function from the console and let the page tell you. Paste this, then use the page normally:
(() => {
const ns = window.grecaptcha?.enterprise ?? window.grecaptcha;
if (!ns?.execute) return console.warn('grecaptcha not ready yet, try again after the page loads');
const real = ns.execute.bind(ns);
ns.execute = (key, opts) => {
console.info('[v3 action]', opts?.action, 'key', key, new Error().stack.split('\n')[2]?.trim());
return real(key, opts);
};
})();
Each call prints the action, the site key and the line that called it. The wrapper passes everything through to the real function, so the page keeps working. It disappears on the next reload. Note the Enterprise case: the snippet uses grecaptcha.enterprise when it exists, since that is where Enterprise pages keep execute.
Read it from the outgoing request
The action is also visible on the way out. In the Network panel, filter by reload and trigger the action. Google's reload request includes the action inside its encoded body; decoding that is tedious and not needed most of the time, but the timing is useful: the reload fires exactly when execute runs, so a breakpoint set on the XHR (Sources panel, XHR/fetch breakpoints, URL contains recaptcha) pauses with the calling code on the stack. Walk up the call stack to the site's function and read the action there.
Some sites also send the action to their own server next to the token, in a field like action or recaptchaAction, so the server can compare. If you see that in the request to the site's API, you have your answer and confirmation in one place.
Sites with several actions
A shop might use homepage on load, add_to_cart on the product page, and checkout on payment. Each request you automate needs a token with its own action. Write them down per endpoint in your configuration rather than hard coding one value, and solve a separate task per step. A token is single use anyway, so you would need a fresh one for each request regardless.
Using the action in a task
"task": {
"type": "ReCaptchaV3TaskProxyLess", "websiteURL": "https://store.example.org/cart",
"websiteKey": "6Lc_SCORE_WIDGET_KEY", "pageAction": "add_to_cart"
}
Copy the value exactly, including case and underscores. For Enterprise pages, the same field goes into the ReCaptchaV3EnterpriseTaskProxyLess task. The complete flows are in the guides for v3 in Python and v3 in Node.js; the Node.js approach reads the action from the page automatically, which removes this lookup entirely when you drive a browser.
Checks before you rely on it
- Confirm the action belongs to the request you automate, not to a background call made on page load.
- Re-check after site releases. A redesign can rename actions, and the first sign is a sudden run of refused requests.
- If no
executecall carries an action at all, the page is probably v2 invisible rather than v3; see how to identify the reCAPTCHA version.
The reCAPTCHA v3 page lists every task field and the current price, $0.70 per 1,000 solved tasks.
Common questions
Is pageAction case sensitive?
Treat it as exact. Copy the string as the page passes it, including case, underscores and slashes.
What happens if I send no action?
The token carries a default action, and sites that check the action may reject it even with a good score.
Can one page use several actions?
Yes. Each feature often has its own, such as homepage on load and checkout on payment. Solve a task per request with its own action.
Does v2 invisible use actions?
v2 accepts an optional action in some setups, but the strict action check is a v3 feature. If execute has no action, check whether the page is v2.
Is the temporary console wrapper safe to use?
Yes. It only logs and then calls the real function, and it disappears on reload.
Keep reading
- pageAction (reCAPTCHA action)The action label a page passes to grecaptcha.execute, how to locate it, and why a wrong label sinks good tokens.
- reCAPTCHA v3 solver$0.70 per 1,000 tasks, answers under 3 seconds.
- Solve reCAPTCHA v3 in Node.jsWrap grecaptcha.execute inside a Playwright page so the site receives a solved v3 token through its own code path.
- reCAPTCHA v3 scores explainedHow Google turns page signals into a v3 score, how sites act on it, and what a solver can and cannot influence.