// AI Platform Drift
Browser Run /snapshot endpoint adds PDF, links, scrape, and JSON formats
Cloudflare developer changelog · published 2026-11-19 20:40 UTC
WHAT CHANGEDCloudflare Browser Run's /snapshot endpoint now accepts four additional format values: pdf, links, scrape, and json. Previously /snapshot returned only HTML, screenshots, Markdown, and accessibility tree. The json format incurs Workers AI usage charges. Formats are captured in a fixed order regardless of array order, with PDF printed last. The actionTimeout budget (60s default, 120s max) now covers navigation, captures, retries, and AI requests. Requests must specify at least two distinct formats.
WHY IT MATTERSWorkflows that previously required multiple page loads to capture different formats (such as a PDF plus structured data) can now complete in a single request, reducing latency and Browser Run invocations. The json format adds Workers AI costs that were not present before. The fixed capture order and shared timeout budget change how multi-format requests behave under time pressure.
WHAT TO DOReview existing /snapshot calls. If you currently make separate requests for PDFs, links, scraped elements, or JSON extraction from the same page, consolidate them into one /snapshot call with multiple formats. For json format requests, add prompt or response_format as required and account for Workers AI usage in your budget. Verify that your actionTimeout settings accommodate the combined work of all requested formats.
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## Browser Run - Capture PDFs, links, scraped elements, and extracted JSON with /snapshot +https://developers.cloudflare.com/changelog/post/2026-11-19-snapshot-all-formats/ +Thu, 19 Nov 2026 00:00:00 GMT + +Browser Run's /snapshot endpoint can now return four more formats from a single page load: pdf, links, scrape, and json. Before, /snapshot returned HTML, screenshots, Markdown, and the accessibility tree, so a workflow that also needed a PDF or structured data had to prepare the same page again in a second request. +Use the new formats when you need to: + +PDF: print the page, with the same pdfOptions as the /pdf endpoint. +Links: collect the links on the page, with the same visibleLinksOnly and excludeExternalLinks options as /links. +Scraped elements: return the elements matched by elements, the same payload as /scrape. elements is required when you request it. +Extracted JSON: extract structured data from the page HTML with Workers AI, with the same prompt, response_format, and custom_ai fields as /json. prompt or response_format is required, and the request incurs Workers AI usage. + +Request them through formats, the same way as the existing formats. This example returns a PDF, the page links, and the text of each paragraph: +const response = await env.BROWSER.quickAction("snapshot", { +url: "https://example.com/", +formats: ["pdf", "links", "scrape"], +elements: [{ selector: "p" }], +}); + +const { result } = await response.json(); +console.log(result.pdf); +console.log(result.links);const response = await env.BROWSER.quickAction("snapshot", { +url: "https://example.com/", +formats: ["pdf", "links", "scrape"], +elements: [{ selector: "p" }], +}); + +const { result } = await response.json(); +console.log(result.pdf); +console.log(result.links); +Formats are captured in a fixed order rather than the order of the formats array, and the PDF is printed last because print handlers can change the page. A live page can change between captures, and any format that fails fails the whole request. For JSON snapshots, one actionTimeout budget (default 60 seconds, maximum 120 seconds) covers navigation, captures, retries, and the AI request. +You still need to request at least two distinct formats. If you only need one, use the corresponding single-format endpoint. +Refer to the /snapshot documentation for the full list of accepted values and options.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | New API capabilities, required fields, billing implications, and behavioral constraints affect integration and cost. |
| signals | new endpoint capability: /snapshot now supports four additional formats (pdf, links, scrape, json) · API expansion: formats parameter now accepts new values · new required fields: elements required for scrape format, prompt or response_format required for json format · billing impact: json format incurs Workers AI usage charges · behavioral change: formats captured in fixed order, not array order; PDF printed last · constraint change: actionTimeout budget (60s default, 120s max) now covers navigation, captures, retries, and AI request · constraint: must request at least two distinct formats or use single-format endpoint |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |