Snapshot a page

The snapshot action returns both the fully-rendered HTML and a screenshot of the page in one request - handy for archiving, audits, or diffing how a page changes over time.

snapshot.tsPOST/api/snapshot
await env.BROWSER.quickAction("snapshot", {
  url: "https://example.com",
})

No API tokens, no browser to install. The BROWSER binding talks to a real Chromium over Cloudflare's network.

Webpage URL
The snapshot will appear here