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:

  • Create Scraper: Set up AI-powered scraper directly from a workflow.
  • 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 create and 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:

Usage Steps

Step 1: 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, Create Scraper, Rerun Scraper or Get Result).

Step 2: 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:

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

Use this resource to create a new scraper in MrScraper. You can choose these operation based on your scraping needs:

Each agent have a different parameter, see below for details:

Create a general agent scraper by providing a URL and a prompt.

ParameterRequiredDescription
URLYesThe URL to be scraped.
PromptYesThe message to instruct the agent on what data to extract.
ModeNoChoose the scraping mode. Select Cheap if the website has weak security, select Super otherwise. Read here for more information.
Proxy CountryNoChoose the proxy country (e.g. us, uk, sg), adjust it to match the website's country domain.

Create a listing agent scraper by providing a URL and a prompt.

ParameterRequiredDescription
URLYesThe URL to be scraped.
PromptYesThe message to instruct the agent on what data to extract.
Proxy CountryNoChoose the proxy country (e.g. us, uk, sg), adjust it to match the website's country domain.

Create a map agent scraper by providing a URL and a prompt.

ParameterRequiredDescription
URLYesOverride the default target URL for this run.
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.
Rerun Scraper

Use this resource to trigger an existing scraper to run again. You can choose these operation based on your scraping needs:

Each agent have a different parameter, see below for details:

Re-run a manual scraper using the scraper ID and retrieve the results.

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.

Re-run a general agent scraper using the scraper ID and retrieve the results.

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.

Re-run a listing agent scraper using the scraper ID and retrieve the results.

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.

Re-run a map agent scraper using the scraper ID and retrieve the results.

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 resource to retrieve data produced by a scraper. You can choose these operation based on your scraping needs:

Get results based on given page number, page size, filters, and sorting.

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.

Get the latest scraper's results.

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.

Get a result detail by its ID.

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.

Example Workflows

On this page