FREE TIER — 200 CREDITS

Website Screenshot API

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.

Live Screenshot Demo

Captures from real browser
Click "Capture" to take a screenshot

Features

5 Viewport Presets

Desktop (1280x800), tablet (768x1024), mobile (375x667), 1080p (1920x1080), and 4K (3840x2160).

Full-Page Capture

Capture the entire scrollable page, not just the visible viewport. Perfect for long-form content and landing pages.

Dark Mode

Force dark color scheme via the prefers-color-scheme media query. Capture how sites look in dark mode.

PNG & JPEG

PNG for pixel-perfect quality, JPEG for smaller file sizes. Choose the format that fits your use case.

No Browser Setup

No Puppeteer, Playwright, or Chrome installation needed. Send a URL, get an image. The API handles everything.

GitHub Action

Automate screenshots in CI/CD with our open-source GitHub Action. Visual regression testing in your pipeline.

API Endpoints

MethodEndpointDescription
GET/api/screenshot?url={url}Capture screenshot (default: desktop, PNG)
GET/api/screenshot?url={url}&viewport=mobileMobile viewport screenshot
GET/api/screenshot?url={url}&fullPage=trueFull-page screenshot
GET/api/screenshot?url={url}&format=jpegJPEG format (smaller size)
GET/api/screenshot?url={url}&darkMode=trueDark mode screenshot

Code Examples

# 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)

Use Cases

OG Image Generation

Auto-generate Open Graph preview images for social sharing. Capture styled HTML pages as images for link previews.

Visual Regression Testing

Capture screenshots before and after deployments. Compare pixel-by-pixel to catch unintended visual changes.

Website Monitoring

Schedule periodic screenshots to monitor competitor sites, track design changes, or verify your own deployments.

PDF Reports

Capture web dashboards and embed them in PDF reports. Combine with our PDF generation API for end-to-end automation.

Frequently Asked Questions

Is the screenshot API free?
Yes. 200 free credits on signup. Each screenshot costs 2 credits (screenshots are more resource-intensive than data lookups). No credit card required.
What viewports are supported?
Desktop (1280x800), tablet (768x1024), mobile (375x667), 1080p (1920x1080), and 4K (3840x2160). You can also specify custom width and height parameters.
Can I capture full-page screenshots?
Yes. Set fullPage=true to capture the entire scrollable page. This works with all viewports and both PNG and JPEG formats.
Do I need Puppeteer or Chrome?
No. The API runs a headless browser on our servers. You send a URL and receive an image. Zero dependencies, zero setup.
Is there a GitHub Action?
Yes. Our open-source GitHub Action (OzorOwn/frostbyte-screenshot-action) automates screenshots in CI/CD pipelines with 5 viewport presets and artifact upload.

Get Your Free API Key

200 free credits. No Puppeteer. No Chrome. Just screenshots.

Get Started Free