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 '{
    "crawler": {
      "websiteURL": "https://example.com",
      "screenshot": true
    }
  }'

Request fields

FieldTypeDefaultDescription
screenshotbooleanfalseCapture a viewport screenshot.
screenshot_full_pagebooleanfalseCapture a full-page screenshot.
screenshot and screenshot_full_page cannot be used together in the same request.

Full page screenshot

curl -X POST https://api.scrapely.io/v2/tasks/create \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "crawler": {
      "websiteURL": "https://example.com",
      "screenshot_full_page": true
    }
  }'

Response

{
  "success": true,
  "task_id": "52989a12-a43c-4bf9-ba1d-8ab1e1509169",
  "status": "completed",
  "created_at": "2026-04-06T10:54:56.652354+00:00",
  "result": {
    "html": "",
    "text": "",
    "screenshot": "base64encodedstring...",
    "user_agent": "",
    "cookies": {},
    "metadata": {},
    "instructions": []
  },
  "completed_at": "2026-04-06T10:55:08.312452+00:00"
}
The screenshot is returned as a base64-encoded PNG string.