Take a Screenshot

This page will help you get started with taking a screenshot.

Query Params
string
required

The URL of the page to capture. Prefix with https:// is optional.

string

Raw HTML to render instead of loading a URL.

string
enum
Defaults to json

Response format: 'json' returns metadata + base64, 'redirect' returns the image directly.

Allowed:
boolean
Defaults to true

Block popup dialogs on the page.

boolean
Defaults to true

Automatically dismiss cookie consent banners.

string
enum
Defaults to load

Navigation event to wait for: 'load', 'domcontentloaded', 'networkidle0', or 'networkidle2'.

Allowed:
string

CSS selector to wait for before capturing.

string

Emulate a specific device viewport. For example 'ipad_gen_6' (see Device List page).

int32
Defaults to 1280

Viewport width in pixels.

int32
Defaults to 720

Viewport height in pixels.

number
1 to 5

Device pixel ratio (1-5).

string

Markdown content to render instead of loading a URL.

int32
0 to 20000

Wait this many milliseconds after page load before capturing.

string
enum
Defaults to hide

Control text cursor visibility: 'hide' or 'initial'.

Allowed:
number
Defaults to 0

X coordinate of the clip region (pixels from left).

number
Defaults to 0

Y coordinate of the clip region (pixels from top).

number

Width of the clip region in pixels.

number

Height of the clip region in pixels.

boolean
Defaults to false

Capture the entire scrollable page instead of just the viewport.

boolean
Defaults to false

Scroll the page before capturing to trigger lazy-loaded content.

boolean
Defaults to false

Make the background transparent (PNG only).

string
enum
Defaults to device

Rendering scale: 'css' for 1x, 'device' for device pixel ratio.

Allowed:
string

Custom CSS to inject into the page before capture.

number

Maximum time in milliseconds to wait for the page to load.

string
enum
Defaults to jpeg

Image format for the screenshot.

Allowed:
int32
0 to 100
Defaults to 100

JPEG quality (0-100). Only applies when type is 'jpeg'.

Responses
200

Successful response

400

Bad request - invalid parameters

401

Unauthorized - invalid or missing API key

Language
Credentials
Query
Response
Click Try It! to start a request and see the response here!