📸 Screenshot API
This API captures a screenshot of any web page using Puppeteer.
🔗 Endpoint
GET /screenshot
🧩 Query Parameters
- url (required) — The website URL to capture.
- x, y — Crop start coordinates (default: 0, 0).
- width, height — Crop size (default: 1920×1080).
- type — Image format (
jpeg or png, default: jpeg).
- quality — JPEG quality (1–100, default: 80).
📘 Example Usage
GET /screenshot?url=https://example.com&type=jpeg&quality=80&x=100&y=200&width=1200&height=800
💡 Notes
- Viewport is fixed to desktop mode (1920×1080).
- PNG ignores the
quality parameter.
- Always use a valid, fully qualified URL (e.g., https://example.com).