n8n

This guide explains how to connect your scraper to n8n to automate workflows

n8n is an open-source workflow automation tool that lets teams connect apps, services, and APIs using a visual, node-based interface. Similar to tools like Zapier or Make, n8n helps automate repetitive tasks and build workflows without writing custom code.

Workflows in n8n run automatically based on triggers such as schedules, webhooks, or events from connected tools.

What is the MrScraper n8n Integration?

The MrScraper integration allows n8n workflows to do the following actions in n8n:

  • Rerun Scraper: Trigger an existing scraper manually, on a schedule, or from another workflow event.
  • Get Scraper Results: Retrieve scraped data, including latest results, paginated results, or a specific result by ID.

Why Use MrScraper with n8n?

Integrating MrScraper with n8n enables fully automated data pipelines without manual intervention. For example:

  • Automatically rerun scrapers on a schedule or trigger.
  • Fetch and process scraping results programmatically.
  • Send scraped data to other tools such as Google Sheets, databases, APIs, webhooks, or notification systems.
  • Build end-to-end workflows by connecting MrScraper with hundreds of services supported by n8n.

This integration allows scraping to become a seamless part of broader automation workflows rather than a standalone task.

Prerequisites

Before you start, make sure you have:

Integration Steps

Step 1: Install the MrScraper Node

  1. Navigate to Settings on your n8n instance.
  2. Select Community nodes.
  3. Click Install and search for n8n-nodes-mrscraper.
  4. Click Install to confirm the installation.

Step 2: Add the MrScraper Node to n8n

  1. Open the n8n workflow editor.
  2. Click the + button to add a new node.
  3. Search for MrScraper.
  4. Select the MrScraper node.
  5. Choose the action you want to run (for example, Rerun Scraper or Get Result).

Step 3: Configure the MrScraper Node

Set Up Credentials

  1. In Credential to connect with, click Create new credential.
  2. Paste your MrScraper API key.
  3. Save the credential.

Choose the Resource

In the Resource field, select what you want to do with MrScraper:

  • Rerun: Trigger a scraper rerun.
  • Result: Fetch scraper results.
Rerun Scraper

Use this action to trigger an existing scraper to run again. Each agent have a different parameter, see below for details:

ParameterRequiredDescription
Scraper IDYesThe ID of the scraper you want to run. You can find this on the scraper page in MrScraper.
URLYesOverride the default target URL for this run.
Max RetryNoNumber of retry attempts if the scraping fails.
ParameterRequiredDescription
Scraper IDYesThe ID of the scraper you want to run. You can find this on the scraper page in MrScraper.
URLYesOverride the default target URL for this run.
Max RetryNoNumber of retry attempts if the scraping fails.
ParameterRequiredDescription
Scraper IDYesThe ID of the scraper you want to run. You can find this on the scraper page in MrScraper.
URLYesOverride the default target URL for this run.
Max RetryNoNumber of retry attempts if the scraping fails.
Max PagesNoMaximum number of pages to scrape. Useful for listings or paginated pages.
TimeoutNoRequest timeout in seconds. Increase this for large or complex websites.
ParameterRequiredDescription
Scraper IDYesThe ID of the scraper you want to run. You can find this on the scraper page in MrScraper.
URLYesOverride the default target URL for this run.
Max RetryNoNumber of retry attempts if the scraping fails.
Max DepthNoHow deep the scraper should follow links from the starting page.
Max PagesNoMaximum number of pages to scrape. Useful for listings or paginated pages.
LimitNoMaximum number of results to return.
Include PatternsNoRegular Expressions to include when scraping.
Exclude PatternsNoRegular Expressions to exclude when scraping.

Note

The rerun action must match the agent used by the scraper ID (e.g., General AgentRun General Agent Scraper).

Get Scraper Results

Use this action to retrieve data produced by a scraper.

ParameterRequiredDescription
Scraper IDYesThe ID of the scraper. Found in the URL or settings of your scraper in MrScraper.
PageNoPage number to retrieve.
Page SizeNoNumber of results per page.
Sort ByNoSort order for results.
Sort OrderNoSort order direction: ascending or descending.
ParameterRequiredDescription
Scraper IDYesThe ID of the scraper. Found in the URL or settings of your scraper in MrScraper.
Limit (N)NoNumber of latest results to fetch.
ParameterRequiredDescription
Scraper IDYesThe ID of the scraper. Found in the URL or settings of your scraper in MrScraper.
Result IDYesUnique result ID to retrieve a single record.

Tips

This action is commonly used to pass scraped data to other n8n nodes, such as Google Sheets, databases, webhooks, or notifications.