Capture screenshots of any URL via REST API. Full page, custom viewport, dark mode support.
https://screenshot-proxy.vercel.appX-API-Key: your_key (header) or ?key=your_key (query)
Get your free key below
/api/screenshot
Capture a screenshot of a given URL. Returns binary image (PNG) or PDF.
url
string
yes
URL of the page to capture
width
int
no
Viewport width in pixels. Default: 1280
height
int
no
Viewport height in pixels. Default: 720
full_page
bool
no
Capture the full scrollable page. Default: false
format
string
no
Output format: png, pdf. Default: png
delay
int
no
Wait time in ms before capture. Default: 0
dark_mode
bool
no
Enable dark mode (prefers-color-scheme: dark). Default: false
X-File-Size — file size in bytesX-Screenshot-Width — screenshot width in pixelsX-Screenshot-Height — screenshot height in pixels
// 400 — Bad Request
{ "error": "Invalid URL or parameters" }
// 401 — Unauthorized
{ "error": "Invalid API key" }
// 429 — Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }
Get a free API key for 6 requests/day. No credit card required.
X-API-Key: your_key?key=your_keyStart free. Pay only when you need more.