Skip to main content
curl -X POST https://api.scrapely.io/v2/tasks/create \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "captcha": {
      "websiteURL": "https://example.com",
      "websiteKey": "6LcQ3w4pAAAAABc...",
      "type": "RecaptchaV2"
    },
    "options": {
      "invisible": false,
      "enterprise": false
    }
  }'

Request fields

captcha

FieldTypeRequiredDescription
websiteURLstringYesURL of the page with the CAPTCHA. Must start with http:// or https://. Max 254 chars.
websiteKeystringYesThe sitekey from the page. Min 10, max 200 chars.
typestringYesMust be "RecaptchaV2".

options

FieldTypeDefaultDescription
invisiblebooleanfalseSet to true for invisible reCAPTCHA v2.
enterprisebooleanfalseSet to true if the site uses reCAPTCHA Enterprise.

proxy (optional)

FieldTypeRequiredDescription
schemestringYesProxy scheme (e.g. http, socks5).
hoststringYesProxy host.
portintegerYesProxy port.
usernamestringNoProxy username.
passwordstringNoRequired if username is provided.

Response

{
  "success": true,
  "task_id": "52989a12-a43c-4bf9-ba1d-8ab1e1509169",
  "status": "completed",
  "created_at": "2026-04-06T10:54:56.652354+00:00",
  "result": {
    "solution": "03AGdBq24PBCbwiDRaS..."
  },
  "completed_at": "2026-04-06T10:55:08.312452+00:00"
}
The solution token is valid for approximately 2 minutes. Submit it to the target site immediately.