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
| Property | Value |
|---|---|
| Token Field | g-recaptcha-response |
| Token TTL | Approximately 2 minutes |
| Verification | Server-side via Google API |
Note: reCAPTCHA v2 tokens have a shorter TTL than v3 or hCaptcha. Submit tokens promptly.
Challenge Types
The classic "I'm not a robot" checkbox. May present image challenges if behavioral signals indicate risk. User clicks checkbox to initiate verification.
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 minutesFAQ
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.
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.
The sitekey is in the data-sitekey attribute on the .g-recaptcha div element or in the grecaptcha.render() function call.
