Screenshot any website
with one API call
Pixel-perfect screenshots powered by headless Chrome. Full-page captures, element selection, PDF export, dark mode, and more.
curl -X POST "https://snapapis.com/api/v1/screenshot/capture" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://github.com",
"width": 1280,
"height": 800,
"format": "png",
"full_page": false
}'
Everything you need
One endpoint, infinite possibilities
Full-Page Capture
Capture entire scrollable pages, not just the viewport. Perfect for long articles and landing pages.
Multiple Formats
Export as PNG, JPEG, WebP, or PDF. Control quality and compression to optimize file size.
Element Selector
Screenshot specific elements using CSS selectors. Capture just a chart, hero section, or any component.
Dark Mode
Force dark mode rendering with Chrome's built-in dark mode emulation. Great for design previews.
Retina / HiDPI
Render at 2x device pixel ratio for crystal-clear retina screenshots. Ideal for marketing assets.
Ad & Cookie Blocking
Automatically hide ads and cookie consent banners for clean, distraction-free screenshots.
API Parameters
Full control over every screenshot
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required |
The URL to screenshot |
format |
string | png |
png, jpeg, webp, pdf |
width |
int | 1280 |
Viewport width (320-3840) |
height |
int | 800 |
Viewport height (200-2160) |
full_page |
bool | false |
Capture full scrollable page |
quality |
int | 90 |
Image quality (1-100, jpeg/webp) |
delay |
int | 0 |
Wait ms before capture (0-10000) |
selector |
string | null |
CSS selector to capture |
dark_mode |
bool | false |
Force dark mode rendering |
retina |
bool | false |
2x device scale factor |
transparent |
bool | false |
Transparent background (PNG) |
hide_ads |
bool | false |
Hide common ad elements |
block_cookie_banners |
bool | false |
Hide cookie/GDPR banners |
user_agent |
string | null |
Custom User-Agent string |
headers |
object | null |
Custom HTTP headers |
clip |
object | null |
Crop region {x, y, width, height} |
Ready to capture?
Get your API key in seconds and start capturing pixel-perfect screenshots.