reCAPTCHA v2 solver API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
EverySolve's reCAPTCHA v2 API returns a token for your challenge workflow.reCAPTCHA v2 is the classic checkbox or invisible v2 widget loaded through api.js and configured with a site key. It returns gRecaptchaResponse for the target form. v3 is score-based and Enterprise loads enterprise.js with Enterprise-specific context.
Send POST https://api.everyinfra.com/api/v1/captcha with type set to recaptcha_v2. Put the parameters in the request body, at the same level as type. $1.11 per 1,000 successful solutions ($0.001111 per successful solve). Failed calls and empty results are not charged.
AI prompt
#Help me write a script that calls the EveryInfra "reCAPTCHA v2" API.
API contract:
- Request: POST https://api.everyinfra.com/api/v1/captcha with the header Authorization: Bearer <API Key>. Read the key from the EVERYINFRA_API_KEY environment variable; do not put it in the code.
- In the request body, set type to recaptcha_v2 and put the parameters next to it at the same level.
- Required parameters:
- website_url: The exact page where this challenge appears, including the relevant path rather than only the site home page.
- website_key: The public site or widget key copied from this exact target integration; it is not a secret key.
- Optional parameters:
- invisible: Whether the target widget uses its invisible mode; do not infer it from the absence of an image alone.
- data_s: The data-s value exposed by a reCAPTCHA v2 integration when that deployment uses it.
- page_action: The action string used by the target reCAPTCHA execution; preserve its exact case and spelling.
- api_domain: The API hostname used by the target widget when it differs from the standard domain. (allowed values: www.google.com / www.recaptcha.net)
- Example request body:
{
"type": "recaptcha_v2",
"website_url": "https://www.google.com/recaptcha/api2/demo",
"website_key": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
- Billing: $1.11 per 1,000 successful solutions ($0.001111 per successful solve). Failed calls and empty results are not charged.
- On 422, fix the parameters using the suggestions and allowed values in the error. On 429 or 503, wait for Retry-After and try again.
Before writing code, ask me how many items I need to process and what format to save the results in, then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
type | body | string | Yes | recaptcha_v2 | CAPTCHA type, fixed value. |
website_url | body | string | Yes | - | The exact page where this challenge appears, including the relevant path rather than only the site home page. |
website_key | body | string | Yes | - | The public site or widget key copied from this exact target integration; it is not a secret key. |
invisible | body | boolean | No | - | Whether the target widget uses its invisible mode; do not infer it from the absence of an image alone. |
data_s | body | string | No | - | The data-s value exposed by a reCAPTCHA v2 integration when that deployment uses it. |
page_action | body | string | No | - | The action string used by the target reCAPTCHA execution; preserve its exact case and spelling. |
api_domain | body | string (enum) | No | - | The API hostname used by the target widget when it differs from the standard domain.Allowed valueswww.google.comwww.recaptcha.net |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/captcha' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "recaptcha_v2",
"website_url": "https://www.google.com/recaptcha/api2/demo",
"website_key": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "type": "recaptcha_v2", "token": "0cAFcWeA7Rd5wv7e9bepF8irY4Nt34xis_Z2Odugx9vwI8EJaB0jsbNpD-1yWTjoq0UkbktWz-_aspPkwtcI5tHOUImrdjAs8UyXvoEm1fV8lMYjH7NLvRhk0cODJN1LBQax5TCIKxaUo4QCWd5uv6KyLQeKVvBqc63gfsJUrpPxOvR7SwgBRwX4BjeINjZoWmyx0rEE4cDLXtsYoEALwNLVOj3EB5w8vDKSFlUaC3HIVV5LCj7mX-9J2ydklexJSGSXGKf_35j9ESCHownOdjM1…", "solution": { "gRecaptchaResponse": "0cAFcWeA7Rd5wv7e9bepF8irY4Nt34xis_Z2Odugx9vwI8EJaB0jsbNpD-1yWTjoq0UkbktWz-_aspPkwtcI5tHOUImrdjAs8UyXvoEm1fV8lMYjH7NLvRhk0cODJN1LBQax5TCIKxaUo4QCWd5uv6KyLQeKVvBqc63gfsJUrpPxOvR7SwgBRwX4BjeINjZoWmyx0rEE4cDLXtsYoEALwNLVOj3EB5w8vDKSFlUaC3HIVV5LCj7mX-9J2ydklexJSGSXGKf_35j9ESCHownOdjM1…" }, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Where the reCAPTCHA v2 parameters come from
#Copy website_key from data-sitekey or the render call; invisible, data_s, page_action, and api_domain are optional only when present in that v2 integration.
Code to find these values on the page
<div class="g-recaptcha" data-sitekey="your_site_key"></div>How to recognize reCAPTCHA v2
#reCAPTCHA v2 is the classic checkbox or invisible v2 widget loaded through api.js and configured with a site key.
What makes reCAPTCHA v2 different
It returns gRecaptchaResponse for the target form. v3 is score-based and Enterprise loads enterprise.js with Enterprise-specific context.
How to use the reCAPTCHA v2 API
#The reCAPTCHA v2 API returns a token in gRecaptchaResponse. Its solution format is token. Submit the token in the field or verification request expected by the target workflow.
- 01Read GET /api/v1/captcha/types and select the
recaptcha_v2entry. - 02Send
type: "recaptcha_v2"and the required parameters to POST /api/v1/captcha. - 03Read a token from
gRecaptchaResponse. - 04Submit the token in the field or verification request expected by the target workflow.
Billing and availability EverySolve charges only when a solution is delivered successfully. An unsuccessful attempt is not charged, and any held amount goes back to your balance automatically. Read available and the price fields from GET /api/v1/captcha/types at request time rather than treating them as static page content.
reCAPTCHA v2 integration questions
#How can I identify reCAPTCHA v2 before choosing a type?
reCAPTCHA v2 is the classic checkbox or invisible v2 widget loaded through api.js and configured with a site key. Use recaptcha_v2 only after those signals match the target challenge.
Which target-page values belong in reCAPTCHA v2 requests?
Copy website_key from data-sitekey or the render call; invisible, data_s, page_action, and api_domain are optional only when present in that v2 integration. Provide website_url and website_key. Optional parameters are invisible, data_s, page_action, and api_domain.
What does reCAPTCHA v2 return, and what is easy to confuse it with?
The reCAPTCHA v2 API returns a token in gRecaptchaResponse. Its solution format is token. It returns gRecaptchaResponse for the target form. v3 is score-based and Enterprise loads enterprise.js with Enterprise-specific context.
Which external source explains the reCAPTCHA v2 integration?
Google documents v2 checkbox and invisible widget rendering. [Open the reCAPTCHA v2 reference](https://developers.google.com/recaptcha/docs/display). EverySolve-specific fields and live availability still come from the type catalog.
Reference for reCAPTCHA v2
#Related CAPTCHA types
#- hCaptcha
hcaptcha$4.58 per 1,000 successful solutions - reCAPTCHA image grid
recaptcha_grid$0.69 per 1,000 successful solutions - reCAPTCHA v2 Enterprise
recaptcha_v2_enterprise$1.53 per 1,000 successful solutions - reCAPTCHA v3
recaptcha_v3$1.39 per 1,000 successful solutions - reCAPTCHA v3 Enterprise
recaptcha_v3_enterprise$3.06 per 1,000 successful solutions - CaptchaFox
captchafox$1.53 per 1,000 successful solutions
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.