Endpoint
Headers
| Header | Required | Description |
|---|---|---|
screenshotly-api-key | Yes | Your API key |
Content-Type | Yes | application/json |
Request body
The URL of the webpage to capture.
Output format. Options:
png, jpeg, webp.Viewport width in pixels.
Viewport height in pixels.
Capture the full scrollable page instead of just the viewport.
Image quality for JPEG and WebP (0-100). No effect on PNG.
Milliseconds to wait after page load before capturing.
Device pixel ratio. Use
2 for retina-quality screenshots.Emulate a mobile device.
Enable touch event support.
Use landscape orientation.
CSS selector to wait for before capturing. The capture starts once this element exists in the DOM.
Maximum time in milliseconds to wait for the page to load.
Array of cookie objects to set before loading the page. Each object requires
name, value, and domain.Key-value pairs to set in the page’s localStorage before capture.
Custom HTTP headers to send with the page request.
URL to receive a POST notification when the screenshot is ready.
Optional name for the screenshot.
Response
202 Accepted
The screenshot request was accepted and is being processed.Always
"processing" for a new request.Unique identifier for this screenshot job. Use this to check status via the GET endpoint.
Confirmation message.
Error responses
| Status | Description |
|---|---|
| 400 | Bad request — missing or invalid parameters |
| 401 | Unauthorized — invalid or missing API key |
| 403 | Forbidden — insufficient permissions |
| 429 | Too many requests — rate limit exceeded |
| 500 | Internal server error |

