Documentation Index
Fetch the complete documentation index at: https://docs.drain.lat/llms.txt
Use this file to discover all available pages before exploring further.
Screenshot
Base URL:https://drain.lat/api/v1/screenshot
All endpoints require the x-api-key header.
GET /
Take a screenshot of any public webpage and return it as a PNG image. Endpoint| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | - | Required. The full URL to screenshot (must be https://) |
width | number | 1280 | Viewport width in pixels (max 2560) |
height | number | 720 | Viewport height in pixels (max 1440) |
fullPage | boolean | false | Capture the full scrollable page instead of just the viewport |
image/png binary. Save it directly to a file or pipe it into an image viewer.
Examples
Default viewport (1280×720)Limitations
- Maximum resolution: 2560×1440
- Only public URLs are supported - pages behind login walls will capture the login screen
- JavaScript-heavy pages may not fully render if they take too long to load
- The endpoint returns an error if the target URL is unreachable or returns a non-2xx status
