Skip to main content
cloudflare.scrapeElements extracts rendered element content and geometry for CSS selectors.
automations/scrape-cloudflare-elements.automation.ts

Inputs

Provide accountId, one or more elements with a non-empty CSS selector, and exactly one of url or html. cacheTtl defaults to 5 seconds. The common Browser Run timeout, request, authentication, page-setup, viewport, navigation, and wait controls are also available.

Output

Returns one entry per selector. Each entry contains a results array with every matched element’s text, HTML, attributes, position, width, and height. The action consumes Browser Run duration and is not replay-safe.