View as Markdown
ScrapeNinja icon

ScrapeNinja ACTION

Scrape without JS

Use high-performance web scraping endpoint with Chrome browser TLS fingerprint, but without JavaScript execution and real browser overhead. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's ScrapeNinja account once, then configure and run Scrape without JS 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: "scrapeninja-scrape-without-js",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    scrapeninja: { authProvisionId: "apn_xxxxxxx" },
    url: "URL",
    headers: ["Headers"],
  },
})

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 without JS inputs
Property Type Description
url URL string
The URL to scrape.
Required
headers Headers string[]
Custom headers to send with the request. By default, regular Chrome browser headers are sent to the target URL.
Optional
retryNum Retry Number integer
Amount of attempts.
Optional
geo Geo string
Geo location for basic proxy pools (you can purchase premium ScrapeNinja proxies for wider country selection and higher proxy quality). Read more about ScrapeNinja proxy setup
Optional
proxy Proxy string
Premium or your own proxy URL (overrides Geo prop). Read more about ScrapeNinja proxy setup.
Optional
followRedirects Follow Redirects integer
Whether to follow redirects.
Optional
timeout Timeout integer
Timeout per attempt, in seconds. Each retry will take [timeout] number of seconds.
Optional
textNotExpected Text Not Expected string[]
Text which will trigger a retry from another proxy address.
Optional
statusNotExpected Status Not Expected integer[]
HTTP response statuses which will trigger a retry from another proxy address.
Optional
extractor Extractor string
Custom JS function to extract JSON values from scraped HTML. Write&test your own extractor on https://scrapeninja.net/cheerio-sandbox/
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
scrapeninja-scrape-without-js
Version
0.0.2
App
ScrapeNinja
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes