Skip to main content
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

string
required
Browser session ID (UUID).

Body

string
Optional URL to navigate to before capturing.
boolean
default:"false"
When true, capture the full scrollable document height instead of just the viewport.
string
CSS selector of an element to capture. Clipped to the element’s bounding box.

Example Request

Response

Success Response (200)

string
Base64-encoded PNG bytes.
string
Effective URL after any redirects.
integer
Screenshot width in pixels.
integer
Screenshot height in pixels.
Example Response:

Error Responses