Skip to main content

Screenshot

Base URL: https://drain.lat/api/v1/screenshot
Take a screenshot of any public webpage and return it as a PNG image.
string
required
The full URL to screenshot. Must start with https://.
number
Viewport width in pixels. Max 2560. Default 1440.
number
Viewport height in pixels. Max 1440. Default 900.
boolean
Capture the full scrollable page instead of just the viewport. Default false.
string
Output format. png or jpeg. JPEG is faster and smaller. Default png.
Returns a raw image binary. Content type is image/png or image/jpeg depending on the format param.
Examples
Requests to localhost, 127.0.0.1, and private IP ranges are blocked. Only public URLs are supported.