Capture screenshots of pages behind login forms using cookies or basic auth. Handle authenticated page captures securely.
curl "https://snapapi.tech/v1/screenshot?url=https://example.com/dashboard&api_key=YOUR_KEY&cookies=session_id%3Dabc123" -o dashboard.pngimport requests
response = requests.get("https://snapapi.tech/v1/screenshot", params={
"url": "https://example.com/dashboard",
"api_key": "YOUR_KEY",
"cookies": "session_id=abc123; auth_token=xyz789"
})
with open("dashboard.png", "wb") as f:
f.write(response.content)const res = await fetch(
"https://snapapi.tech/v1/screenshot?" + new URLSearchParams({
url: "https://example.com/dashboard",
api_key: "YOUR_KEY",
cookies: "session_id=abc123; auth_token=xyz789"
})
);
require("fs").writeFileSync("dashboard.png", Buffer.from(await res.arrayBuffer()));