No browser dependencies needed

Website Screenshot API

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.

Parameters

ParamRequiredDescription
urlRequiredThe URL to capture (must be a valid http/https URL)
widthOptionalViewport width in pixels (default 1280)
heightOptionalViewport height in pixels (default 720)

Code Examples

cURL

curl "https://api-snap.com/api/screenshot?url=https://example.com&width=1280" \
  -H "Authorization: Bearer snp_your_key" -o screenshot.svg

JavaScript

const 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();

Python

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)

Common Use Cases

Link previews

Generate visual previews for links shared in your app, CMS, or chat

Competitor monitoring

Track visual changes on competitor websites over time

Social sharing cards

Create rich thumbnails for blog posts and landing pages

Testing & QA

Automated visual regression testing for your web applications

Portfolio builders

Show live previews of websites in portfolio or directory listings

Documentation

Capture screenshots of UI states for docs and changelogs

Start Capturing Screenshots

No headless browsers to manage. Just an API call.

Get Your Free API Key