View as Markdown
CaptureKit icon

CaptureKit ACTION

Scrape Content

Extract structured data from any webpage, including metadata, links, and raw HTML. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's CaptureKit account once, then configure and run Scrape Content 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: "capturekit-scrape-content",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    capturekit: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    includeHtml: true,
  },
})

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 Content inputs
Property Type Description
url URL string
Target webpage to capture
Required
includeHtml Include HTML boolean
Return the raw HTML content in the response
Optional
useDefuddle Use Defuddle boolean
Use Defuddle to clean and extract the main content from web pages
Optional
selector Selector string
Capture a specific element on the page instead of the full viewport
Optional
removeSelectors Remove Selectors string[]
A list of elements to hide before capturing
Optional
blockUrls Block URLs string[]
A ist of URL patterns to block. You can specify URLs, domains, or simple patterns, e.g.: .example.com/
Optional

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
capturekit-scrape-content
Version
0.0.2
App
CaptureKit
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes