Skip to main content

Extract product details from search result URLs with MrScraper and Google Sheets

Workflow preview

Workflow preview
100%
Extract product details from search result URLs with MrScraper and Google Sheets preview
Open on n8n.io

1. Workflow Overview

Description This n8n template automates the extraction of structured product data from search results pages — using a pre built list of search/listing URLs stored in Google Sheets as the starting p...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.code, n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-mrscraper.mrscraper, n8n-nodes-base.gmail, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by riandra.

Original n8n.io source

1.1 Workflow description

Title
Extract product details from search result URLs with MrScraper and Google Sheets
Workflow name
Extract product details from search result URLs with MrScraper and Google Sheets

Description

This n8n template automates the extraction of structured product data from search results pages — using a pre-built list of search/listing URLs stored in Google Sheets as the starting point. Instead of crawling a domain from scratch, this workflow picks up exactly where your research left off: you bring the URLs, it brings the data.

Perfect for price monitoring, product research, competitor analysis, or building any kind of structured product database from e-commerce or directory sites.


How It Works

  • Phase 1 – Load Search Page URLs: The workflow reads your pre-prepared list of search or listing page URLs directly from a Google Sheets tab. This gives you full control over which pages get scraped without any crawling step.
  • Phase 2 – Scrape Listing Pages: Each URL is looped through the Listing Agent, which navigates the search results page and extracts all individual product/detail page URLs. Duplicates are automatically removed.
  • Phase 3 – Scrape Detail Pages: Every detail URL is then processed by the General Agent, which extracts structured fields such as title, price, description, attributes, and more. Nested JSON is automatically flattened into clean, spreadsheet-ready rows.
  • Phase 4 – Export & Notify: All scraped records are appended or upserted into a Google Sheets output tab. A Gmail notification is sent on completion with a run summary.

How to Set Up

  1. Create 2 scrapers in your MrScraper account:
  • Listing Agent Scraper (for extracting detail URLs from search/listing pages)
  • General Agent Scraper (for extracting structured data from each detail page)
  • Copy the scraperId for each — you'll need these in n8n.
  1. Enable AI Scraper API access in your MrScraper account settings.

  2. Prepare your Google Sheet with search URLs:

  • Create a sheet with a column containing the listing/search page URLs you want to scrape
  • This is your input — add as many URLs as needed
  1. Add your credentials in n8n:
  • MrScraper API token
  • Google Sheets OAuth2 (for both input and output sheets)
  • Gmail OAuth2
  1. Configure the "Get List Search Page" node:
  • Connect to the spreadsheet and sheet tab containing your input URLs
  1. Configure the Listing Agent node:
  • Enter your Listing scraperId
  • Adjust maxPages based on how many result pages to scrape per URL
  1. Configure the General Agent node:
  • Enter your General scraperId
  1. Configure the output Google Sheets node:
  • Enter your output spreadsheet and sheet tab URL
  • Set a unique match key (recommended: url) for upsert to avoid duplicates on re-runs
  1. Configure Gmail:
  • Set recipient email, subject line, and message body for your run notification

Requirements

  • MrScraper account with API access enabled
  • Google Sheets (OAuth2 connected) — one sheet for input URLs, one for output data
  • Gmail (OAuth2 connected)

Good to Know

  • Unlike a full crawl workflow, this template is input-driven — you control exactly which pages are scraped by managing your Google Sheets input list.
  • You can run this on a schedule and simply add new URLs to the input sheet whenever you want fresh data scraped.
  • The Flatten Object node handles deeply nested JSON automatically, so most sites won't require any manual field mapping.
  • Use upsert mode with a unique key in the output sheet to safely re-run the workflow without creating duplicate rows.

Customising This Workflow

  • Scheduled monitoring: Replace the manual trigger with a Schedule Trigger and keep your input sheet updated to run automated price or availability checks.
  • Multi-category tracking: Organise your input sheet by category or source site and add a Filter node to process specific subsets on each run.
  • Add data enrichment: Insert an AI node after Phase 3 to summarise descriptions, classify products, or translate content before saving to Sheets.
  • Slack or webhook alerts: Swap the Gmail node for a Slack or webhook notification if you prefer real-time alerts in a different channel.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Extract All Url

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 2 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 3 - Flatten Object

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Looping Listing Page url

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Looping Detail Page url

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Run listing agent scraper

Type / Role
n8n-nodes-mrscraper.mrscraper - mrscraper
Config choices
Version 1

Block 9 - Run general agent scraper

Type / Role
n8n-nodes-mrscraper.mrscraper - mrscraper
Config choices
Version 1

Block 10 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.2

Block 11 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Get List Search Page

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 19 - Append or update row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

3. Summary Table

Workflow Extract product details from search result URLs with MrScraper and Google Sheets
Complexity advanced
Nodes 19
Categories Market Research
Author riandra
Published 02 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13800/13800.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract product details from search result URLs with MrScraper and Google Sheets do?

Description This n8n template automates the extraction of structured product data from search results pages — using a pre built list of search/listing URLs stored in Google Sheets as the starting p...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.