Capture screenshots of any website with a single GET request. Custom viewport sizes, no headless browser setup — just pass a URL and get an image back.
| Param | Required | Description |
|---|---|---|
url | Required | The URL to capture (must be a valid http/https URL) |
width | Optional | Viewport width in pixels (default 1280) |
height | Optional | Viewport height in pixels (default 720) |
curl "https://api-snap.com/api/screenshot?url=https://example.com&width=1280" \
-H "Authorization: Bearer snp_your_key" -o screenshot.svgconst res = await fetch(
"https://api-snap.com/api/screenshot?url=https://github.com&width=1440",
{ headers: { Authorization: "Bearer snp_your_key" } }
);
const svg = await res.text();import requests
r = requests.get(
"https://api-snap.com/api/screenshot",
params={"url": "https://example.com", "width": 1280},
headers={"Authorization": "Bearer snp_your_key"},
)
with open("screenshot.svg", "w") as f:
f.write(r.text)Generate visual previews for links shared in your app, CMS, or chat
Track visual changes on competitor websites over time
Create rich thumbnails for blog posts and landing pages
Automated visual regression testing for your web applications
Show live previews of websites in portfolio or directory listings
Capture screenshots of UI states for docs and changelogs
No headless browsers to manage. Just an API call.
Get Your Free API Key