AI4CAP.COM

Getting Started

Learn how to integrate AI4CAP.COM into your application in just a few steps.

Step 1: Get Your API Key

  1. Sign up or log in to your AI4CAP.COM account
  2. Go to your Dashboard
  3. Navigate to "API Keys" section
  4. Click "Create New API Key"
  5. Copy your API key and keep it secure

Step 2: Submit a CAPTCHA

Send a POST request to /api/captcha/solve with your CAPTCHA details:

Required Headers:

X-API-Key: your-api-key-here Content-Type: application/json

Request Body:

{ "type": "recaptcha_v2", "sitekey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", "pageurl": "https://example.com" }

Response:

{ "success": true, "taskId": "task_123456789", "status": "processing" }

Step 3: Get the Result

Poll the result endpoint with your task ID until the CAPTCHA is solved:

Request:

GET /api/captcha/result/task_123456789

Response (when solved):

{ "success": true, "status": "solved", "solution": "03AGdBq24PBnbvKMn..." }

Complete Examples

# 1. Submit a CAPTCHA for solving
curl -X POST http://localhost:3000/api/captcha/solve \
  -H "X-API-Key: your-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "recaptcha_v2",
    "sitekey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
    "pageurl": "https://example.com"
  }'

# Response: {"success": true, "taskId": "task_123456789"}

# 2. Get the result
curl -X GET http://localhost:3000/api/captcha/result/task_123456789 \
  -H "X-API-Key: your-api-key-here"

# Response: {"success": true, "status": "solved", "solution": "03AGdBq24..."}

Supported CAPTCHA Types

recaptcha_v2 - Google reCAPTCHA v2

recaptcha_v3 - Google reCAPTCHA v3

hcaptcha - hCaptcha

funcaptcha - FunCaptcha (Arkose Labs)

geetest - GeeTest CAPTCHA

Best Practices

• Keep your API keys secure and never expose them in client-side code

• Implement proper error handling for failed requests

• Respect rate limits (100 requests per minute for solving)

• Poll results every 2-3 seconds to avoid excessive requests

• Use webhooks for high-volume applications