Looking for an overview? Browse our product pages

reCAPTCHA v2 Accessibility Verification Interface

Human-in-the-Loop Requirement

This service is for accessibility testing and QA verification only. By using this API, you confirm: "I am NOT using this service for fully automated AI resolution in violation of the target service's 'No AI/Bot' clauses."

reCAPTCHA v2 offers checkbox ("I'm not a robot") and invisible verification modes. Both return a g-recaptcha-response token upon completion. MeshPrivacy provides accessibility interfaces for QA teams to verify captcha integration in their applications.

Token Details

PropertyValue
Token Fieldg-recaptcha-response
Token TTLApproximately 2 minutes
VerificationServer-side via Google API

Note: reCAPTCHA v2 tokens have a shorter TTL than v3 or hCaptcha. Submit tokens promptly.

Challenge Types

Checkbox Most Common

The classic "I'm not a robot" checkbox. May present image challenges if behavioral signals indicate risk. User clicks checkbox to initiate verification.

Invisible

Triggered programmatically on form submit or button click. No visible widget unless challenge is required. Uses data-size="invisible".

Integration Example

// Submit reCAPTCHA v2 task to MeshPrivacy (QA/Testing only)
const response = await fetch('https://api.meshprivacy.com/v1/tasks/submit', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': API_KEY
  },
  body: JSON.stringify({
    service: 'recaptcha_v2',
    url: 'https://target-site.com/',
    sitekey: '6Lc_xxxxxx...', // From page source data-sitekey
    invisible: false, // Set true for invisible reCAPTCHA
    proxy_config: 'http://user:pass@ip:port', // Your proxy
    user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36...',
    // Acknowledgment required for HITL services
    hitl_acknowledgment: true
  })
});

const { task_id } = await response.json();

// Poll for result
const result = await fetch(`https://api.meshprivacy.com/v1/tasks/result/${task_id}`, {
  headers: { 'X-API-Key': API_KEY }
});

const { token } = await result.json();
// Submit token as g-recaptcha-response field value
// IMPORTANT: Use within 2 minutes

FAQ

Why is the token TTL only 2 minutes?

Google designed reCAPTCHA v2 tokens with short TTL to prevent token harvesting and replay attacks. Plan your integration to submit tokens immediately after receiving them.

What's the difference between v2 and v3?

v2 is challenge-based (checkbox or image selection). v3 is score-based and invisible by default, returning a score from 0.0 to 1.0 without user interaction.

Where do I find the sitekey?

The sitekey is in the data-sitekey attribute on the .g-recaptcha div element or in the grecaptcha.render() function call.

Related Services