View as Markdown
Cloudflare Browser Rendering icon

Cloudflare Browser Rendering ACTION

Scrape

Get meta attributes like height, width, text and others of selected elements. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Cloudflare Browser Rendering account once, then configure and run Scrape from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "cloudflare_browser_rendering-scrape",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    cloudflare_browser_rendering: { authProvisionId: "apn_xxxxxxx" },
    html: "HTML",
    url: "URL",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Scrape inputs
Property Type Description
html HTML string
Set the content of the page, eg: <h1>Hello World!!</h1>.
Optional
url URL string
URL to navigate to, eg. https://example.com.
Optional
viewportHeight Viewport - Height integer
The height of the viewport in pixels.
Optional
viewportWidth Viewport - Width integer
The width of the viewport in pixels.
Optional
viewportDeviceScaleFactor Viewport - Device Scale Factor integer
The device scale factor.
Optional
viewportHasTouch Viewport - Has Touch boolean
Whether the viewport has touch capabilities.
Optional
viewportIsLandscape Viewport - Is Landscape boolean
Whether the viewport is in landscape mode.
Optional
viewportIsMobile Viewport - Is Mobile boolean
Whether the viewport is in mobile mode.
Optional
userAgent User Agent string
Specify the browser user agent
Optional
additionalSettings Additional Settings object
Specify additional settings for the browser rendering.
Optional
elements Elements string[]
List of elements to scrape where each element is an object with selector. Eg. { selector: "selector" }.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
cloudflare_browser_rendering-scrape
Version
0.0.3
App
Cloudflare Browser Rendering
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes