Skip to main content
The simplest capture request only requires a URL.

Request

curl -X POST https://api.snapopa.com/capture \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Response

{
  "success": true,
  "error": null,
  "data": {
    "uuid": "abc123-def456",
    "fileUrl": "https://cdn.snapopa.com/abc123-def456.png",
    "fromCache": false,
    "tokenCost": 1,
    "fileSizeBytes": 245678,
    "processingTimeMs": 1234,
    "metadata": {
      "mimeType": "image/png",
      "width": 1920,
      "height": 1080,
      "createdAt": 1703001234
    }
  }
}

Default Settings

When you don’t specify options, these defaults are used:
OptionDefault
formatpng
viewport.width1920
viewport.height1080
isFullPagefalse
quality95
timeout30000
waitUntildomcontentloaded

Customize

Add options to customize the capture:
{
  "url": "https://example.com",
  "format": "webp",
  "viewport": {
    "width": 1280,
    "height": 720
  }
}

Next Steps