AI4CAP.COM
$0.016 per solve

reCAPTCHA Mobile

Mobile application reCAPTCHA integration

Overview

reCAPTCHA Mobile is specifically designed for iOS and Android applications. It provides seamless integration with mobile apps while maintaining the same security standards as web-based reCAPTCHA implementations.

Request Parameters

ParameterTypeRequiredDescription
typestringYesMust be "recaptcha_mobile"
websiteKeystringYesThe mobile app site key
packageNamestringYesApp package name (com.example.app)
actionstringNoAction name for v3-style mobile
apiDomainstringNoCustom API domain

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_mobile", "websiteKey": "6LfW6wATAAAAAHLqO2pb8bDBahxlMxNdo9g947u9", "packageName": "com.example.myapp", "action": "login" }' # Response { "success": true, "taskId": "mob789ghi012" } # Get result curl -X GET https://api.ai4cap.com/api/captcha/result/mob789ghi012 \ -H "X-API-Key: YOUR_API_KEY" # Response when solved { "success": true, "status": "solved", "solution": { "gRecaptchaResponse": "03AGdBq27PBCbw..." }, "cost": 0.016, "solveTime": 17500 }

Response Format

{ "success": true, "status": "solved", "solution": { "gRecaptchaResponse": "03AGdBq27PBCbw..." // The token for mobile verification }, "cost": 0.016, "solveTime": 17500 // Time in milliseconds }

Mobile Integration Guide

Android Integration

For Android apps, use the SafetyNet API:

// In your Android app SafetyNet.getClient(this).verifyWithRecaptcha(YOUR_SITE_KEY) .addOnSuccessListener { response -> // Send response.tokenResult to your server // Then use our API to verify }

iOS Integration

For iOS apps, use the reCAPTCHA SDK:

// In your iOS app let recaptchaClient = RecaptchaClient(siteKey: YOUR_SITE_KEY) recaptchaClient.execute(action: .login) { token, error in // Send token to your server // Then use our API to verify }

Important Notes

• Package name must match your app's actual package/bundle identifier

• Mobile tokens have similar expiration times to web tokens (1-2 minutes)

• The action parameter is optional but recommended for v3-style mobile

• Mobile CAPTCHAs may take slightly longer to solve due to additional verification

• Ensure your mobile app is properly registered in Google reCAPTCHA console