Ender Docs

reCaptcha v2 Solver

Solve Google reCaptcha v2 challenges including checkbox and invisible types.

Overview

Solve Google reCaptcha v2 challenges programmatically. Supports both checkbox ("I'm not a robot") and invisible reCaptcha types.

Endpoint

POST /v1/solvers/recaptcha_v2

Request

Body Parameters

ParameterTypeRequiredDescription
sitekeystringreCaptcha site key from the page
urlstringFull URL of the page with captcha

Finding the Sitekey

The sitekey can be found in the page source:

<div
  class="g-recaptcha"
  data-sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
></div>

Or in JavaScript:

grecaptcha.render("captcha", {
  sitekey: "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
});

Example Request

curl -X POST https://api.ender.black/v1/solvers/recaptcha_v2 \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sitekey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "url": "https://example.com/page"
  }'

Response

Success Response

{
  "success": true,
  "data": {
    "token": "03AGdBq24PBCbwiDRaS_MJ7Z..."
  }
}

Response Fields

FieldTypeDescription
tokenstringThe solved reCaptcha token

Using the Token

After receiving the token, submit it with your form:

<input type="hidden" name="g-recaptcha-response" value="TOKEN_HERE" />

Or in a POST request:

const formData = new FormData();
formData.append("g-recaptcha-response", token);
// ... add other form fields

Credit Cost

ResultCredits
Success1
Error0

Error Responses

Invalid Sitekey

{
  "success": false,
  "data": {
    "error": "Invalid sitekey"
  }
}

Solve Failed

{
  "success": false,
  "data": {
    "error": "Failed to solve captcha"
  }
}

Token Validity

reCaptcha tokens typically expire after 2 minutes. Use them immediately after receiving.

On this page