Minimal screenshot example
Capture a page in a few lines with a single client instance.
import { SnapshotSiteClient } from "@snapshot-site/sdk";
const client = new SnapshotSiteClient({
apiKey: process.env.SNAPSHOT_SITE_API_KEY!,
});
const result = await client.screenshot({
url: "https://snapshot-site.com/pricing",
format: "png",
width: 1440,
fullSize: true,
hideCookie: true,
});
console.log(result.link);