ScrapeNinja

Extract Web Data on Scale

Go to site
Explore
/
Apps
/
ScrapeNinja

ScrapeNinja API Integrations

Build and run workflows using the ScrapeNinja API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from '@pipedream/platform';

export default defineComponent({
  props: {
    scrapeninja: {
      type: "app",
      app: "scrapeninja",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: 'POST',
      url: 'https://scrapeninja.p.rapidapi.com/scrape',
      headers: {
        'content-type': 'application/json',
        'X-RapidAPI-Key': this.scrapeninja.$auth.rapid_api_key,
        'X-RapidAPI-Host': 'scrapeninja.p.rapidapi.com'
      },
      data: {
        url:"https://news.ycombinator.com/"
      }
    })
  },
})

Authentication

ScrapeNinja uses API keys for authentication. When you connect your ScrapeNinja account, Pipedream securely stores the keys so you can easily authenticate to ScrapeNinja APIs in both code and no-code steps.

Using ScrapingNinja in Pipedream

First, sign up for a RapidAPI account.

After registering an account, you'll be able to interact with ScrapingNinja using your RapidAPI key.

Next, open up the ScrapingNinja documentation on RapidAPI and retrieve your API key labeled X-RapidAPI-Key.

Paste that value below into the rapid_api_key field.

Last, click Subscribe to Test in the RapidAPI console to subscribe to the ScrapeNinja API.