Website Screenshot API
Synchronous screenshot
The screenshot endpoint runs a browser session, executes JavaScript, and returns a base64-encoded image in a single synchronous request.
POST
Synchronous screenshot
Getting started
Base URL
Example request
image_base64 to obtain the raw JPEG or PNG bytes.
Render options
Therender object controls how the browser loads the page before the screenshot is taken. All fields are optional — when omitted, server defaults apply.
Convenience fields
These top-level fields are aliases merged intorender and actions for backward compatibility and simpler requests:
Example with flat fields:
Resource options
Theresources object controls which asset types the browser loads during capture. Blocking heavy assets speeds up requests when visual fidelity allows it.
Legacy GET endpoint
GET /v1/ returns raw image bytes (JPEG or PNG) instead of JSON. Pass parameters as query strings:
url, api_key, session_id, fingerprint, capture_full_page, width, height, delay, css_injection, user_agent, export_format.
Request parameters
String
required
The target URL to capture. Must be a public HTTP or HTTPS URL. Requests to localhost and private IP addresses are blocked by SSRF protection.
String
required
Your unique API key.
String
Optional session identifier to reuse browser state (cookies, local storage) across multiple requests.
String
Browser fingerprint preset. Supported values:
desktop_en_us, desktop_ru_ru, mobile_en_us.Object
Rendering and capture options for the browser session.
String
When to consider navigation finished. Values:
domcontentloaded, networkidle. Defaults to domcontentloaded.Integer
Maximum time in milliseconds to wait for page load. Defaults to 60000.
Integer
Additional delay in milliseconds after the page load event before capture.
Boolean
When
true, ignore TLS certificate errors for the target page.Boolean
When
true, capture the full scrollable page. Defaults to true.String
Output format:
jpeg or png. Defaults to jpeg.String
Custom User-Agent for the browser session.
Object
Viewport size with
width and height in pixels.Object
Resource loading controls.
Array
Resource types to block. Supported values:
images, fonts, media.Array
Ordered list of browser actions to perform before capture. Each action is an object with a
type field.String
required
Action type. Supported values:
wait, wait_for, click, type, scroll, inject_css.String
CSS selector for
wait_for, click, or type actions.String
Text to type for the
type action.String
CSS string for the
inject_css action.String
Scroll target for the
scroll action (e.g. bottom).Integer
Duration in milliseconds for the
wait action.Array
Cookies to inject before navigation. Each cookie object requires
name and value; optional fields: domain, path.Boolean
Convenience alias for
render.full_page.Integer
Convenience alias for
render.viewport.width.Integer
Convenience alias for
render.viewport.height.Integer
Delay in seconds before capture. Mapped to
render.post_load_wait_ms.String
CSS injected via an
inject_css action when not already present in actions.String
Convenience alias for
render.screenshot_format. Values: jpeg, png.Response parameters
The API response is returned in a universal and lightweight JSON format.Boolean
Whether the screenshot completed successfully.
String
Base64-encoded image data. Decode to obtain raw JPEG or PNG bytes.
String
MIME type of the image (
image/jpeg or image/png).Object
Metadata about the capture, including elapsed time in milliseconds.
Object
Error details when
ok is false.