Skip to main content
scrapeWeb opens one page in a managed browser and returns its content as Markdown. Automate.ax supplies the browser account, runs the scrape in the background, and counts Cloudflare’s reported browser time against the organization’s monthly web scraping allowance. Use it when a normal HTTP request does not include content rendered by JavaScript, or when the page needs cookies, HTTP authentication, custom headers, injected scripts or styles, resource filtering, viewport settings, or an explicit wait.

Scrape a page

automations/scrape-product-page.automation.ts
The scrape starts after the dashboard run and the email waits for its Markdown result. A terminal browser failure fails the result signal and prevents dependent actions from running.

Inputs

Provide exactly one page source: The complete request may be up to 5 MiB after encoding. This limit mainly affects large inline HTML documents. The action accepts these Browser Run controls. Every input accepts a compatible signal. ResourceType supports document, stylesheet, image, media, font, script, texttrack, xhr, fetch, prefetch, eventsource, websocket, manifest, signedexchange, ping, cspviolationreport, preflight, and other. See Cloudflare’s Browser Rendering Markdown API for provider behavior. Automate.ax validates the public camelCase fields and sends Cloudflare’s exact wire names.

Output

scrapeWeb returns a Signal<string> containing the rendered page as Markdown. Browser work runs outside the action sandbox. The starting action queues durable work, and a correlated completion emits the public result signal. Cloudflare’s X-Browser-Ms-Used value is recorded for every provider response that includes it. Sub-millisecond values round up to a whole millisecond. Automate.ax disables Cloudflare’s shared URL cache for this platform action so authenticated requests remain isolated between organizations.

Use your own Cloudflare account

Use cloudflare.extractMarkdown from automate.ax/cloudflare when you want to supply a connected Cloudflare account. It also exposes Cloudflare’s cacheTtl control, charges that Cloudflare account directly, and does not consume the Automate.ax web scraping allowance.