Skip to main content
GET
Take a screenshot

Overview

/screenshot opens a URL in a headless Chrome browser and captures a screenshot. The image is stored in cloud storage and a public URL is returned. You can configure:
  • Viewport size — width and height of the browser window
  • Full page — capture the entire scrollable content instead of just the viewport
  • Format — JPEG (smaller), PNG (lossless), or WebP (best compression)

Example requests

Example response

Format comparison

Parameter limits

Authorizations

X-API-Key
string
header
required

Your Prefetch API key. Obtain one from the dashboard.

Query Parameters

url
string
required

The website URL to process. https:// is prepended automatically if no protocol is provided.

Example:

"https://stripe.com"

width
integer
default:1440

Viewport width in pixels. Range: 320–2560. Default: 1440.

Required range: 320 <= x <= 2560
height
integer
default:900

Viewport height in pixels. Range: 240–5000. Default: 900.

Required range: 240 <= x <= 5000
format
enum<string>
default:jpeg

Image format. Default: jpeg.

Available options:
jpeg,
png,
webp
full_page
boolean
default:false

Capture full scrollable page height. Default: false.

Response

Screenshot result.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required