Capture any website as PNG or JPEG with a single API call. Desktop, tablet, mobile viewports. Full-page screenshots. Dark mode. No Puppeteer or Chrome required.
Desktop (1280x800), tablet (768x1024), mobile (375x667), 1080p (1920x1080), and 4K (3840x2160).
Capture the entire scrollable page, not just the visible viewport. Perfect for long-form content and landing pages.
Force dark color scheme via the prefers-color-scheme media query. Capture how sites look in dark mode.
PNG for pixel-perfect quality, JPEG for smaller file sizes. Choose the format that fits your use case.
No Puppeteer, Playwright, or Chrome installation needed. Send a URL, get an image. The API handles everything.
Automate screenshots in CI/CD with our open-source GitHub Action. Visual regression testing in your pipeline.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/screenshot?url={url} | Capture screenshot (default: desktop, PNG) |
| GET | /api/screenshot?url={url}&viewport=mobile | Mobile viewport screenshot |
| GET | /api/screenshot?url={url}&fullPage=true | Full-page screenshot |
| GET | /api/screenshot?url={url}&format=jpeg | JPEG format (smaller size) |
| GET | /api/screenshot?url={url}&darkMode=true | Dark mode screenshot |
# Capture a website screenshot
curl "https://agent-gateway-kappa.vercel.app/api/screenshot?url=https://example.com" \
-H "Authorization: Bearer YOUR_API_KEY" \
--output screenshot.png
# Mobile viewport, full page
curl "https://agent-gateway-kappa.vercel.app/api/screenshot?url=https://example.com&viewport=mobile&fullPage=true" \
-H "Authorization: Bearer YOUR_API_KEY" \
--output mobile.png
const API_KEY = 'YOUR_API_KEY';
const BASE = 'https://agent-gateway-kappa.vercel.app';
// Capture screenshot and save
const url = encodeURIComponent('https://example.com');
const res = await fetch(
`${BASE}/api/screenshot?url=${url}&viewport=desktop`,
{ headers: { 'Authorization': `Bearer ${API_KEY}` } }
);
const blob = await res.blob();
// blob contains the PNG image
import requests
API_KEY = "YOUR_API_KEY"
BASE = "https://agent-gateway-kappa.vercel.app"
# Capture and save screenshot
r = requests.get(
f"{BASE}/api/screenshot",
params={"url": "https://example.com", "viewport": "desktop"},
headers={"Authorization": f"Bearer {API_KEY}"}
)
with open("screenshot.png", "wb") as f:
f.write(r.content)
Auto-generate Open Graph preview images for social sharing. Capture styled HTML pages as images for link previews.
Capture screenshots before and after deployments. Compare pixel-by-pixel to catch unintended visual changes.
Schedule periodic screenshots to monitor competitor sites, track design changes, or verify your own deployments.
Capture web dashboards and embed them in PDF reports. Combine with our PDF generation API for end-to-end automation.
fullPage=true to capture the entire scrollable page. This works with all viewports and both PNG and JPEG formats.OzorOwn/frostbyte-screenshot-action) automates screenshots in CI/CD pipelines with 5 viewport presets and artifact upload.