Glossary
pageAction (the reCAPTCHA action)
The action is a short label such as login or submit that a page attaches to a reCAPTCHA v3 or Enterprise token so the server can check what it was issued for.
Definition
In reCAPTCHA v3 and Enterprise, the page asks for a token with a call like grecaptcha.execute(siteKey, {action: 'login'}). The string in action is the action name. Google stores it inside the token and returns it during verification, so the site can confirm that a token presented at the login endpoint was really requested for a login, and not for a page view somewhere else.
In GateSolver tasks the same value goes in the pageAction field. The name comes from the solving industry's common task format; on the page itself it is simply the action.
Where to find it
Actions are set in JavaScript, so they are rarely visible in the HTML. These searches usually find them in a minute:
- Search all loaded scripts in developer tools (Ctrl+Shift+F in Chrome) for
execute(and read the object passed next to the site key. - Search for
action:near the wordgrecaptcha, since minified bundles often rename the variables around the call. - Watch the network tab for requests to
/recaptcha/api2/reloador/recaptcha/enterprise/reload; the request payload includes the action string in plain text among the encoded fields. - Set a breakpoint on
grecaptcha.executeand inspect the arguments when you trigger the form.
Sites often use one action per form, for example login, signup and password_reset. Some build names dynamically, like product_view_123; in those cases read the pattern, not one value.
Why a mismatched action fails
Verification returns both score and action. Google's own integration guide tells site owners to check that the returned action matches the expected one, and many do. When it does not match, the site treats the token as invalid regardless of the score. The symptom is confusing: the task succeeds, the token is fresh, the form request goes out correctly, and the server still answers with a generic error.
A missing action has a similar effect. If you leave pageAction out, the token is created with a default label that a strict site will not accept.
Using it in a task
import requests
v3_task = {"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://example.com/account/login", "websiteKey": "6Lc...",
"pageAction": "login"} # copied from grecaptcha.execute
job = requests.post("https://gatesolver.com/createTask",
json={"clientKey": "YOUR_API_KEY", "task": v3_task}).json()
print(job["taskId"])
Copy the string exactly, including case and underscores. Login and login are different actions. For Enterprise sites the field is identical, and the reCAPTCHA v3 Enterprise task also accepts an enterprisePayload when the site sends one.
Actions on reCAPTCHA v2
v2 widgets can carry an action too, though it is less common. If you see data-action on a v2 container, pass it in pageAction on the v2 task as well. When there is no action anywhere in the page code, leave the field out rather than guessing a name.
A quick checklist
Before blaming the solver for a rejected v3 token, confirm three things: the action string is identical to the one in execute, the token is used once and within two minutes, and the site key is the one used on that page. The step by step guide to finding the page action covers bundled and obfuscated scripts.
When the action changes over time
Front end teams rename actions during redesigns, and the old name silently stops working. If a v3 flow that used to pass starts failing with no other change, search the current scripts for execute( again before you change anything else. Keeping the action string in a config file per site, rather than hard coded next to the request, makes that update a one line change and lets you compare old and new values in version control.
Common questions
Is pageAction required for reCAPTCHA v3 tasks?
It is optional in the API, but most real sites check the action, so send it whenever the page defines one.
Is the action name case sensitive?
Yes. Copy it exactly as it appears in the execute call, including underscores and capital letters.
What if the page uses several actions?
Use the one tied to the request you are about to send; a search token and a login token are separate solves.
Can the action be read from the token?
Not by you. Only the site's verification reply shows the action, which is why it must be copied from the page code.
Does a wrong action cost more?
The price is the same, but the token will likely be refused by the site, so you pay for an answer you cannot use.
Keep reading
- Find the reCAPTCHA v3 action nameLocate the exact action string a page passes to grecaptcha.execute using script search, breakpoints or the outgoing request.
- reCAPTCHA v3 scoreThe 0.0 to 1.0 number behind reCAPTCHA v3, the thresholds sites pick, and why the decision happens on their server.
- Site keyThe public value a widget loads with, where it hides in HTML or scripts, and why token tasks require it.
- reCAPTCHA v3 solver$0.70 per 1,000 tasks, answers under 3 seconds.