Generate pixel-perfect screenshots, Open Graph images, and PDFs with a single API call. Built for developers who ship fast.
curl -X POST https://api.snapapi.dev/v1/screenshot \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"viewport": { "width": 1280, "height": 720 },
"format": "png",
"full_page": false
}' \
--output screenshot.png
Enter any URL to see SnapAPI in action. No API key required for the demo.
A complete toolkit for rendering, capturing, and transforming web content at scale.
Full-page or viewport screenshots in PNG, JPEG, and WebP. Custom viewports, device emulation, and retina support. Renders JavaScript-heavy SPAs flawlessly.
Generate dynamic Open Graph images from templates or custom HTML. Perfect for social media cards, blog post previews, and link unfurling across platforms.
Convert any webpage to a clean PDF. Control page size, margins, headers, footers, and background printing. Ideal for invoices, reports, and documentation.
Automatic edge caching with configurable TTL. Repeated requests for the same URL return cached results instantly. Cache invalidation via API or dashboard.
Inject custom CSS before capture to hide cookie banners, remove ads, change fonts, or restyle any element. Full control over the rendered output.
Force dark mode via prefers-color-scheme emulation. Capture how your pages look in dark mode without modifying any code. Works with any site.
First-class support for every major language. Copy, paste, ship.
curl -X POST https://api.snapapi.dev/v1/screenshot \
-H "Authorization: Bearer sk_live_abc123" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"viewport": { "width": 1280, "height": 720 },
"format": "png",
"full_page": true,
"dark_mode": false,
"cache_ttl": 3600
}' \
--output screenshot.png
import requests
response = requests.post(
"https://api.snapapi.dev/v1/screenshot",
headers={
"Authorization": "Bearer sk_live_abc123",
"Content-Type": "application/json",
},
json={
"url": "https://example.com",
"viewport": {"width": 1280, "height": 720},
"format": "png",
"full_page": True,
},
)
with open("screenshot.png", "wb") as f:
f.write(response.content)
import { writeFileSync } from "node:fs";
const response = await fetch("https://api.snapapi.dev/v1/screenshot", {
method: "POST",
headers: {
"Authorization": "Bearer sk_live_abc123",
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com",
viewport: { width: 1280, height: 720 },
format: "png",
full_page: true,
}),
});
const buffer = Buffer.from(await response.arrayBuffer());
writeFileSync("screenshot.png", buffer);
<?php
$ch = curl_init('https://api.snapapi.dev/v1/screenshot');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer sk_live_abc123',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://example.com',
'viewport' => ['width' => 1280, 'height' => 720],
'format' => 'png',
'full_page' => true,
]),
]);
$image = curl_exec($ch);
curl_close($ch);
file_put_contents('screenshot.png', $image);
Start free. Scale as you grow. No hidden fees, no overages, no surprises.
Powered by @CryptoBot
From link previews to compliance archiving, SnapAPI powers capture workflows across industries.
Generate rich link preview thumbnails for your app's feed, chat, or content aggregator. Show users what they'll see before they click.
Auto-generate Open Graph and Twitter Card images for every blog post, product page, or landing page. Dynamic templates with custom branding.
Visual regression testing at scale. Capture baseline screenshots and diff against new deployments. Integrate with CI/CD pipelines via API.
Preserve point-in-time snapshots of web pages for compliance, legal discovery, or historical records. PDF and image formats with timestamps.
Monitor competitor pages visually. Track layout changes, A/B test variations, and SERP feature screenshots. Build SEO dashboards with live previews.
Enrich content management systems with auto-generated thumbnails, preview cards, and PDF exports. Seamless integration with any CMS or headless backend.
100 free screenshots every month. No credit card required. API key delivered instantly.
By signing up, you agree to our Terms of Service and Privacy Policy.