← Back to the Browser Automation category

Browser Snapshot

Captures HTML content and screenshots from web pages. Either url or html is required (not both). See [Cloudflare Browser Rendering API](https://developers.cloudflare.com/browser-rendering/) for details.

BrowserWebCloudflareSnapshot
Try this node

Inputs

NameTypeRequiredDescription
urlstringNoThe URL to render (either url or html required, not both)
htmlstringNoHTML content to render (either url or html required, not both)
screenshotOptionsjsonNoScreenshot options (fullPage, omitBackground, clip, etc.)
viewportjsonNoViewport settings (width, height, deviceScaleFactor)
gotoOptionsjsonNoPage navigation options
waitForSelectorjsonNoSelector to wait for before capturing

Outputs

NameTypeDescription
contentstringThe rendered HTML content
screenshotimageThe captured screenshot as an image (PNG)
statusnumberHTTP status code from Cloudflare API
errorstringError message if the request fails

Related Nodes in Browser Automation