πŸ“Š Extract product details from search result URLs with MrScraper and Google Sheets

⚑ 13 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

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


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.
  2. Enable AI Scraper API access in your MrScraper account settings.

  3. 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
  4. Add your credentials in n8n:

    • MrScraper API token
    • Google Sheets OAuth2 (for both input and output sheets)
    • Gmail OAuth2
  5. Configure the β€œGet List Search Page” node:

    • Connect to the spreadsheet and sheet tab containing your input URLs
  6. Configure the Listing Agent node:

    • Enter your Listing scraperId
    • Adjust maxPages based on how many result pages to scrape per URL
  7. Configure the General Agent node:

    • Enter your General scraperId
  8. 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
  9. Configure Gmail:

    • Set recipient email, subject line, and message body for your run notification

Requirements


Good to Know


Customising This Workflow

πŸ”— Nodes Used

Google Sheets, Gmail

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup