How to Use the Snapshot Site TypeScript SDK in Node.js Workflows

How to Use the Snapshot Site TypeScript SDK in Node.js Workflows

author

Snapshot Site Team

31 Mar 2026 - 01 Min read

If your product already runs on Node.js or TypeScript, the official Snapshot Site SDK is the shortest path from API key to production workflow.

Why use the SDK instead of raw fetch

The SDK gives teams a cleaner abstraction over:

  • screenshot requests
  • webpage analysis requests
  • visual diff requests

That means less wrapper code, fewer copy-pasted payloads, and a simpler path to reuse across scripts, cron jobs, workers, or app backends.

Install

pnpm add @snapshot-site/sdk

Minimal example

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,
});

Where it fits well

  • CI jobs that validate marketing pages before release
  • internal scripts that archive monitored URLs
  • product backends that need rendered screenshots on demand
  • tooling that mixes screenshot, analyze, and compare in one codebase

When this is the right integration

Use the TypeScript SDK when your engineering team wants full code-level control but does not want to maintain its own low-level API wrapper.

For the package, examples, and setup guide, see the dedicated page:

TypeScript SDK

Related Articles

How to Screenshot a Ghost CMS Blog in Node.js

How to Screenshot a Ghost CMS Blog in Node.js

A practical guide to capturing Ghost-powered blog pages from Node.js, including handling membership paywalls, theme changes, and full-length article captures....

- 02 Mins read

How to Screenshot a Squarespace Site in Node.js

How to Screenshot a Squarespace Site in Node.js

A practical guide to capturing Squarespace pages from Node.js, including handling parallax sections, cookie banners, and full-page marketing pages....

- 02 Mins read

How to Capture a Contentful-Powered Site in Node.js

How to Capture a Contentful-Powered Site in Node.js

A practical guide to capturing sites built on Contentful from Node.js, including timing around client-side content fetching and full-page article and landing-page captures....

- 02 Mins read

Subscribe to Snapshot Site API

Snapshot Site is a powerful API that allows you to capture full-page, high-resolution screenshots of any website with pixel-perfect accuracy.
Simply send a URL to the API to generate a complete snapshot — not just the visible area — covering entire web pages, scrolling content, landing pages, blogs, news articles, social media posts, videos, and more.
Designed for developers, designers, marketers, and journalists,
Snapshot Site makes it easy to integrate web page capture into your applications, workflows, and automation tools.

Subscribe Now
bg wave