Stale preview
Choose TTL from how long the product can tolerate a page change not being visible.
A preview is a lifecycle, not just a screenshot: fix the output size, reuse it across page views and refresh it on a TTL you choose.
No result yet
Complete the settings and run the tool. Images, PDFs, text, and video all preview in this panel.
curl --fail-with-body "https://api.pagecapture.dev/v1/take" \
-H "X-Access-Key: $PAGECAPTURE_KEY" \
-H "Content-Type: application/json" \
--data '{"url":"https://example.com","format":"webp","viewport_device":"og_image","image_width":600,"block_cookie_banners":true,"cache":true,"cache_ttl":86400}' \
-o capture.webpThe social-card viewport and output width are explicit parts of the request.
Repeated views reuse the artifact without spending another capture credit.
TTL states exactly how stale a preview may become before it is rendered again.
WebP is returned at the final width, avoiding a second resize pipeline.
The preview request fixes the viewport, output width and encoder.
A cache hit returns the existing artifact without consuming another credit.
After TTL expiry, the next request renders a new preview.
The screenshot call is only one part of a preview pipeline; cache invalidation and storage usually dominate it.
No default is supplied: we do not invent engineering-hour savings.
This is an editable scenario, not a savings claim. Only successful captures that miss cache are billable.
Written by PageCapture Engineering. Reviewed by PageCapture API maintainers. Last tested 2026-08-11.
cURL, TypeScript and Python executed against controlled fixtures; request contract and artifact format verified.