← Back to the Browser Automation category

Browser Screenshot

Captures screenshots of web pages. Either url or html is required (not both). See [Cloudflare Browser Rendering Screenshot Endpoint](https://developers.cloudflare.com/browser-rendering/rest-api/screenshot-endpoint/) for details.

BrowserWebCloudflareScreenshot
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, selector, type, etc.)
viewportjsonNoViewport settings (width, height, deviceScaleFactor)
gotoOptionsjsonNoPage navigation options
addScriptTagjsonNoScript tags to inject
addStyleTagjsonNoStyle tags to inject
cookiesjsonNoCookies to set
authenticatejsonNoHTTP authentication credentials

Outputs

NameTypeDescription
imageimageThe captured screenshot as an image (PNG)
statusnumberHTTP status code from Cloudflare API
errorstringError message if the request fails

Related Nodes in Browser Automation