Screenshot
Tools
Screenshot
Capture a PNG screenshot of the active page, full-page or element-scoped.
POST
Screenshot
Overview
Captures a PNG of the session’s active page and returns it base64-encoded. Supports viewport, full-page, and element-bounded capture via a CSS selector.Path Parameters
Browser session ID (UUID).
Body
Optional URL to navigate to before capturing.
When true, capture the full scrollable document height instead of just the viewport.
CSS selector of an element to capture. Clipped to the element’s bounding box.
Example Request
Response
Success Response (200)
Base64-encoded PNG bytes.
Effective URL after any redirects.
Screenshot width in pixels.
Screenshot height in pixels.
Error Responses
| Status | Description |
|---|---|
400 | Invalid body — bad selector or unreachable URL. |
401 | Unauthorized — invalid or missing API key. |
404 | Session not found, or selector matched no visible element. |
503 | The browser session is temporarily unreachable. |