AI4CAP.COM
$0.01 per solve

reCAPTCHA v2

Standard reCAPTCHA v2 with "I'm not a robot" checkbox

Overview

reCAPTCHA v2 is Google's most common CAPTCHA type, featuring the familiar "I'm not a robot" checkbox. When clicked, it may present additional challenges like image selection tasks.

Request Parameters

ParameterTypeRequiredDescription
typestringYesMust be "recaptcha_v2"
websiteKeystringYesThe site key (data-sitekey parameter)
websiteUrlstringYesFull URL of the page with CAPTCHA
proxyobjectNoProxy configuration if required
userAgentstringNoBrowser user agent string

Code Examples

# Submit CAPTCHA task curl -X POST https://api.ai4cap.com/api/captcha/solve \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "type": "recaptcha_v2", "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", "websiteUrl": "https://example.com/page-with-captcha" }' # Response { "success": true, "taskId": "abc123def456" } # Get result curl -X GET https://api.ai4cap.com/api/captcha/result/abc123def456 \ -H "X-API-Key: YOUR_API_KEY" # Response when solved { "success": true, "status": "solved", "solution": { "gRecaptchaResponse": "03AGdBq24PBCbwiDRaS_MJ7..." }, "cost": 0.01, "solveTime": 12500 }

Response Format

{ "success": true, "status": "solved", "solution": { "gRecaptchaResponse": "03AGdBq24PBCbwiDRaS_MJ7..." // The token to submit }, "cost": 0.01, "solveTime": 12500 // Time in milliseconds }

Integration Tips

• The gRecaptchaResponse token should be submitted in your form as g-recaptcha-response

• Tokens are valid for 2 minutes after generation

• Always implement retry logic in case of temporary failures

• Consider using proxy if the target site has geographic restrictions