Scrape-It.Cloud ACTION
Start Scraping
Initiate the scraping process for a specific endpoint. See the documentation here.
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Scrape-It.Cloud account once, then configure and run Start Scraping 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: "scrape_it_cloud-start-scraping",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
scrape_it_cloud: { authProvisionId: "apn_xxxxxxx" },
url: "URL",
headers: "Headers",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "scrape_it_cloud-start-scraping",
"configured_props": {
"scrape_it_cloud": { "authProvisionId": "apn_xxxxxxx" },
"url": "URL",
"headers": "Headers"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "scrape_it_cloud",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "scrape_it_cloud-start-scraping",
arguments: {
url: "URL",
headers: "Headers",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
url URL | string | Specify the URL of the web page you would like to scrape. Required |
headers Headers | object | Specify custom HTTP headers to be passed to the request. For example, in order to override the User-Agent header, use User-Agent as a key and Teapot as a value. Optional |
blockResources Block Resources | boolean | By default Scrape-it.cloud do not block images and CSS in the scraped page. To speed up requests and block images and CSS set this parameter value to true. Optional |
blockUrls Block URLs | string[] | If you want to block some resources except images and CSS, for example, analytics scripts you can add part of the urls to be blocked. Follow Blocking URLs page to get more information. Optional |
wait Wait | integer | Some websites may use javascript frameworks that may require a few extra seconds to load their content. This parameters specifies the time in milliseconds to wait for the website. Recommended values are in the interval 5000 - 10000. Optional |
waitFor Wait For | string | Specify a CSS selector and the API will wait 30 seconds until the selector appears. Optional |
screenshot Screenshot | boolean | If you want to get a screenshot of the page you want to scrape, set screenshot parameter value to true. Optional |
jsScenario JS Scenario | string[] | If you want to do some acts on the pages you want to scrape, for example, go to the next one, set JavaScript scenario to API call. Follow JavaScript Execution page to get more information. 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
- scrape_it_cloud-start-scraping
- Version
- 0.0.2
- App
- Scrape-It.Cloud
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗