Snapshots API
Use X-API-Key header or ?apikey=. Public endpoints: /, /health, /docs, /openapi.json, /metrics.
Screenshot
curl -H "X-API-Key: TOKEN" \ "https://snap.tools.k4.pl/screenshot?url=https://example.com&format=webp&json=true"
Stored File
curl -H "X-API-Key: TOKEN" \ "https://snap.tools.k4.pl/screenshots/ID" -o shot.png
Batch
curl -X POST -H "X-API-Key: TOKEN" -H "Content-Type: application/json" \
-d '{"urls":["https://example.com"],"format":"png"}' \
"https://snap.tools.k4.pl/batch"Diff
curl -X POST -H "X-API-Key: TOKEN" -H "Content-Type: application/json" \
-d '{"beforeId":"ID1","afterId":"ID2"}' \
"https://snap.tools.k4.pl/diff"Parameters
width, height, viewportWidth, viewportHeight, isFullPage, isMobile, isDarkMode, deviceScaleFactor, format=png|jpeg|webp, quality, delay, timeout, cache=false, json=true, headers JSON, cookies JSON array.