View as Markdown
ScrapingAnt icon

ScrapingAnt ACTION

General Extraction

Send a request using the standard extraction method of ScrapingAnt. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's ScrapingAnt account once, then configure and run General Extraction 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: "scrapingant-general-extraction",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    scrapingant: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    browser: 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.

General Extraction inputs
Property Type Description
url URL string
The URL to scrape
Required
browser Browser boolean
Enables using a headless browser for scraping
Optional
returnPageSource Return Page Source boolean
Enables returning data returned by the server and unaltered by the browser. When true JS won't be rendered
Optional
cookies Cookies string
Cookies to pass with a scraping request to the target site, i.e.: cookie_name1=cookie_value1;cookie_name2=cookie_value2
Optional
jsSnippet JS Snippet string
Base64 encoded JS snippet to run once page being loaded in the ScrapingAnt browser
Optional
proxyType Proxy Type string
Specifies the proxy type to make the request from
Optional
proxyCountry Proxy Country string
Specifies the proxy country to make the request from
Optional
waitForSelector Wait for Selector string
The CSS selector of the element Scrapingant will wait for before returning the result
Optional
blockResource Block Resource string[]
Prevents cloud browser from loading specified resource types
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
scrapingant-general-extraction
Version
0.0.2
App
ScrapingAnt
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes