Skip to content

scraperapi/n8n-nodes-scraperapi-official

Repository files navigation

ScraperAPI Official N8N Node

This is an n8n community node that lets you use ScraperAPI in your n8n workflows.

ScraperAPI is a solution to help you unlock and scrape any website, no matter the scale or difficulty. It handles proxies, browsers, and CAPTCHAs so you can focus on extracting the data you need.

n8n is a fair-code licensed workflow automation platform.

Table of Contents

Installation

Follow the installation guide in the n8n community nodes documentation.

From the npm registry.

  1. Go to Settings > Community Nodes.
  2. Select Install.
  3. Write n8n-nodes-scraperapi-official in the package name.
  4. Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source.
  5. Select Install. n8n installs the node, and returns to the Community Nodes list in Settings.

Credentials

Getting Your API Key

  1. Sign up for a ScraperAPI account at ScraperAPI Dashboard
  2. Once logged in, navigate to your dashboard
  3. Copy your API key from the dashboard

Configuring Credentials in n8n

  1. In your n8n workflow, add a ScraperAPI node
  2. Click on the Credential to connect with field
  3. Click Create New Credential
  4. Enter your API key
  5. Click Save

The credentials will be automatically tested to ensure they work correctly.

For more information, see the ScraperAPI API Key Documentation.

Usage

The ScraperAPI node allows you to scrape any website by making a simple GET request. The node handles all the complexity of proxies, browser automation, and CAPTCHA solving.

Basic Usage

  1. Add a ScraperAPI node to your workflow
  2. Select the ScraperAPI resource, for example the API
  3. Enter the required parameters, for example the URL you want to scrape
  4. Configure any optional parameters (see Parameters below)
  5. Execute the workflow

The node returns the scraped content.

Resources

API

The API resource allows you to scrape any website using ScraperAPI's endpoint. It supports:

  • JavaScript rendering for dynamic content
  • Geo-targeting with country codes
  • Device-specific user agents (desktop/mobile)
  • Premium and ultra-premium proxy options
  • Automatic parsing of structured data for select websites

Parameters

Required Parameters

  • URL: The target URL to scrape (e.g., https://example.com)

Optional Parameters

  • Country Code: Two-letter ISO country code (e.g., US, GB, DE) for geo-targeted scraping.

  • Desktop Device: Whether to scrape the page as a desktop device. Note: Cannot be combined with Mobile Device.

  • Mobile Device: Whether to scrape the page as a mobile device. Note: Cannot be combined with Desktop Device.

  • Render: Enable JavaScript rendering for pages that require JavaScript to load content. Set to true only when needed, as it increases processing time.

  • Premium: Use premium residential/mobile proxies for higher success rates. This option costs more but provides better reliability. Note: Cannot be combined with Ultra Premium.

  • Ultra Premium: Activate advanced bypass mechanisms for the most difficult websites. This is the most powerful option for sites with advanced anti-bot protection. Note: Cannot be combined with Premium.

Documentation

Version History

  • 0.1.1: Initial release with API resource support
  • 0.1.2: Usage added to Documentation
  • 0.1.3: Replace device_type options field with desktopDevice and mobileDevice boolean fields to support AI model auto-definition.

More ScraperAPI Integrations

MCP Server

ScraperAPI also provides an MCP (Model Context Protocol) server that enables AI models and agents to scrape websites.

Hosted MCP Server

ScraperAPI offers a hosted MCP server that you can use with n8n's MCP Client Tool.

Configuration Steps:

  1. Add an MCP Client Tool node to your workflow
  2. Configure the following settings:
    • Endpoint: https://mcp.scraperapi.com/mcp
    • Server Transport: HTTP Streamable
    • Authentication: Bearer Auth
    • Credential for Bearer Auth: Enter your ScraperAPI API key as a Bearer Token.
    • Tools to include: All (or select specific tools as needed)

Self-Hosted MCP Server

If you prefer to self-host the MCP server, you can find the implementation and setup instructions in the scraperapi-mcp repository.