Quick-Start Guide: Your First Screenshot in 5 Minutes

This guide walks you through everything you need to go from zero to capturing screenshots with SnapAPI. No prior experience required.

1

Get an API key

Head to the pricing page and pick a plan. You'll receive your API key immediately after signing up. Plans start at €9/month.

Want to try first? Use the free playground β€” no signup needed.

2

Take your first screenshot

Use curl to call the POST endpoint and capture a screenshot:

cURL
curl -X POST https://snapapi.eu/v1/screenshot \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"url": "https://example.com", "format": "png"}' \
  --output screenshot.png

That's it β€” you'll have a screenshot.png file on your machine.

3

Use the GET endpoint for embedding

SnapAPI supports GET requests, which means you can embed screenshots directly in <img> tags β€” no server-side code needed:

HTML
<img src="https://snapapi.eu/v1/screenshot?url=https://example.com&format=png&apiKey=YOUR_API_KEY"
     alt="Screenshot of example.com" />

This is perfect for dashboards, link previews, and documentation where you want live screenshots without any backend logic.

4

Use caching headers

SnapAPI includes built-in response caching. When you request the same URL multiple times, subsequent requests return the cached result instantly β€” saving you both time and credits.

Cache behavior is automatic. The Cache-Control headers in the response tell you the cache status.

5

Try the Node.js and Python SDKs

For deeper integrations, use the official SDKs:

Node.js
import { SnapAPI } from 'snapapi';

const client = new SnapAPI('YOUR_API_KEY');
const screenshot = await client.take({
  url: 'https://example.com',
  format: 'png',
  width: 1280,
  height: 720
});
Python
from snapapi import SnapAPI

client = SnapAPI("YOUR_API_KEY")
screenshot = client.take(
    url="https://example.com",
    format="png",
    width=1280,
    height=720
)

Ready to Build?

Get your API key and start capturing screenshots in production.

Get Your API Key β†’