Website screenshots
Website screenshots for thumbnails, previews and social cards
Turn a URL into a preview image sized exactly for the surface it will appear in.
website screenshot api · request and resultPAGECAPTURE / 01
TypeScript
// A 1200×630 social card, ready to upload
const response = await fetch("https://api.pagecapture.dev/v1/take", {
method: "POST",
headers: {
"X-Access-Key": process.env.PAGECAPTURE_KEY!,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com/post/hello",
viewport_device: "og_image",
format: "webp",
block_cookie_banners: true,
cache: true,
cache_ttl: 86400,
}),
});
const card = Buffer.from(await response.arrayBuffer());Capture result
succeededhttps://example.com
Noma
Shop nowNEW COLLECTION
Objects for slower mornings.
Thoughtful essentials, made in small batches from natural materials.
Explore the collectionOur materials
No. 01 · Hinoki
PLANT-BASEDMADE IN SMALL BATCHESREFILLABLE
- Artifact
- PNG · 1440×900
- Billing
- 1 credit
- Engine
- stable
Social card preset
A 1200×630 device preset at 2× — the size every platform expects.
Banners removed
Consent overlays and chat widgets stripped before the shot, so the thumbnail shows the page.
Cache what repeats
A thumbnail regenerated on every page view is billed once per TTL, not once per view.
WebP and AVIF
Smaller files for the same preview, without a second processing step in your app.
Pricing
One credit per successful capture. Failures and cache hits are free.