Web Capture Service

Capture screenshots and PDFs from any webpage

API Usage

POST /api/capture
Headers:
  x-api-key: your-api-key
  Content-Type: application/json

Body:
{
  "url": "https://example.com",
  "type": "screenshot", // or "pdf"
  "options": {
    "waitForImages": true, // Auto-scroll to load lazy images
    "scrollDelay": 500, // Delay between scrolls in ms
    "screenshot": {
      "fullPage": true,
      "width": 1920,
      "height": 1080,
      "quality": 90 // for JPEG
    },
    "pdf": {
      "format": "A4",
      "landscape": false,
      "scale": 1,
      "margin": {
        "top": "1cm",
        "bottom": "1cm",
        "left": "1cm",
        "right": "1cm"
      }
    }
  }
}