PAGE PREVIEWS

Create consistent website thumbnails from live rendered pages

Turn authorized URLs into preview images for dashboards, content lists, bookmarks, and internal review tools. Capture a deliberate viewport and create display derivatives in your own image pipeline when several thumbnail sizes are needed.

One capture
Stable source image
Viewport
Preview composition
Derivative-ready
Application storage
Install:POST /api/v1/screenshot
Auth:SNAPSHOT_SITE_API_KEY
Get started for free
Website thumbnail workflow
Snapshot Site themed website thumbnail API illustration
Good fits
CMS and knowledge-base preview cards
Bookmark and research applications
Internal screenshot review queues
Customer dashboards displaying page identity

A thumbnail needs a composition policy

A thumbnail is not simply a full-page screenshot shown smaller. Choose a viewport and crop strategy that keeps the page identity legible at the final card size.

1

Source viewport

Select dimensions that consistently expose the page area your card should represent.

2

Readiness

Wait for hero media, fonts, and meaningful above-the-fold content.

3

Derivative creation

Capture one validated source and resize or crop it in application-owned image processing.

4

Freshness rule

Define when a preview expires or should be refreshed after a content change.

Implementation workflow

Build a reliable thumbnail job

1

Define the final card aspect ratio and meaningful page region

2

Capture an authorized page at a matching source viewport

3

Validate and import the returned image

4

Create derivatives and associate them with a refresh policy

Website thumbnail API example

cURL

Capture a thumbnail source image

The request captures a viewport rather than a full document because the final product is a preview card.

curl --fail-with-body --request POST \
  --url https://api.prod.ss.snapshot-site.com/api/v1/screenshot \
  --header "Content-Type: application/json" \
  --header "x-snapshotsiteapi-key: $SNAPSHOT_SITE_API_KEY" \
  --data '{
    "url": "https://example.com/article",
    "format": "webp",
    "width": 1200,
    "height": 800,
    "fullSize": false,
    "hideCookie": true,
    "delay": 1
  }'

Design the preview before the request

Thumbnail quality is determined by composition. A full document reduced into a small rectangle usually makes every section unreadable. Start from the card's aspect ratio and decide whether the hero, document header, product identity, or application state should be visible.

Choose a source viewport that supports that composition. If the same thumbnail appears in several UI sizes, create derivatives from one approved source rather than recapturing the page for every pixel dimension.

Separate capture from image processing

Snapshot Site renders the page and returns a requested output. Your application can then validate, store, crop, and resize that image using its established media pipeline. This separation keeps page rendering configuration independent from design-system card sizes.

Retain the original capture if reviewers may need context. A tiny derivative can hide a consent banner, failed widget, or incomplete hero that would be obvious in the source.

Define freshness and ownership

A thumbnail can update after publication, on a content event, after a time window, or when a user requests refresh. Record which policy created the current asset. Protect the endpoint from repeated refresh clicks and deduplicate equivalent jobs.

Keep the API key out of browser code. If a user submits a URL, authenticate the caller and enforce allowed protocol and destination rules. Stored thumbnails follow the permissions of their source and should not become public by accident.

Use the viewport API guide to select responsive state and Node.js save tutorial to import returned artifacts into application storage.

Website Thumbnail API FAQ

What is a website thumbnail API?

It renders a web URL and returns an image that an application can use as the source for a compact page preview.

Should a thumbnail use full-page capture?

Usually not. A preview card often works better from a consistent viewport that preserves recognizable above-the-fold composition.

Can the API return every card size I need?

Capture a suitable source image, then create exact card derivatives through image processing controlled by your application.

How often should thumbnails refresh?

Choose a policy based on content volatility, user expectations, quota, and storage. Event-driven refresh can be better than recapturing unchanged pages.

How do I avoid blank hero media?

Use a measured readiness rule and test pages with lazy images, web fonts, consent UI, and client-rendered content.

Can I generate thumbnails for arbitrary user URLs?

Apply destination and abuse policy before dispatch. Restrict schemes and hosts according to the product's actual use case.

What metadata should be stored?

Keep source identity, capture URL policy outcome, viewport, format, readiness, capture time, and thumbnail version.

Are screenshots safe to publish publicly?

Only when the source and product policy permit it. Private or authorized page previews require controlled storage and access.

Generate one useful preview source

Choose a final card layout first, then capture the page viewport that keeps its identity clear at reduced size.