View as Markdown
Scraptio icon

Scraptio ACTION

Scrape URL

Scrape the provided URL. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Scraptio account once, then configure and run Scrape URL 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: "scraptio-scrape-url",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    scraptio: { authProvisionId: "apn_xxxxxxx" },
    url: "URL to Scrape",
    filters: ["Filters"],
  },
})

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 URL inputs
Property Type Description
url URL to Scrape string
The complete URL of the website you want to scrape.
Required
filters Filters string[]
A list of selectors to filter the HTML elements you want to scrape. e.g. ["#id", ".class", "<html>"]
Optional
matchAll Match All Filters boolean
Indicates if the element must match all provided filters.
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
scraptio-scrape-url
Version
0.0.2
App
Scraptio
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes