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.
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.
Take your first screenshot
Use curl to call the POST endpoint and capture a screenshot:
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.
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:
<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.
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.
Try the Node.js and Python SDKs
For deeper integrations, use the official SDKs:
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 });
from snapapi import SnapAPI client = SnapAPI("YOUR_API_KEY") screenshot = client.take( url="https://example.com", format="png", width=1280, height=720 )
Dark Mode and Element Hiding
Take advantage of SnapAPI's newest features for cleaner, more professional screenshots:
Dark Mode Screenshots
Capture websites in dark mode by setting darkMode: true:
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", "darkMode": true}'
Hide Unwanted Elements
Remove cookie banners, popups, and ads using CSS selectors:
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", "hideSelectors": ["#cookie-banner", ".popup", ".ads"]}'
You can combine both features for clean dark mode screenshots without distractions.
Ready to Build?
Get your API key and start capturing screenshots in production.
Get Your API Key β