Skip to main content

Amazon product search scraper with BrightData, GPT-4, and Google Sheets

Workflow preview

Workflow preview
100%
Amazon product search scraper with BrightData, GPT-4, and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates web scraping of Amazon search result pages by retrieving raw HTML, cleaning it to retain only the relevant product elements, and then using an LLM to extract structured prod...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.googlesheets, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Amazon product search scraper with BrightData, GPT-4, and Google Sheets
Workflow name
Amazon product search scraper with BrightData, GPT-4, and Google Sheets

This workflow automates web scraping of Amazon search result pages by retrieving raw HTML, cleaning it to retain only the relevant product elements, and then using an LLM to extract structured product data (name, description, rating, reviews, and price), before saving the results back to Google Sheets.

It integrates Google Sheets to supply and collect URLs, BrightData to fetch page HTML, a custom n8n Function node to sanitize the HTML, LangChain (OpenRouter GPT-4) to parse product details, and Google Sheets again to store the output.

URL to scape

.

Result

Who Needs Amazon Search Result Scraping?

This scraping workflow is ideal for teams and businesses that need to monitor Amazon product listings at scale:

  • E-commerce Analysts – Track competitor pricing, ratings, and inventory trends.
  • Market Researchers – Collect data on product popularity and reviews for market analysis.
  • Data Teams – Automate ingestion of product metadata into BI pipelines or data lakes.
  • Affiliate Marketers – Keep affiliate catalogs up to date with latest product details and prices.

If you need reliable, structured data from Amazon search results delivered directly into your spreadsheets, this workflow saves you hours of manual copy-and-paste.

Why Use This Workflow?

  • End-to-End Automation – From URL list to clean JSON output in Sheets.
  • Robust HTML Cleaning – Strips scripts, styles, unwanted tags, and noise.
  • Accurate Structured Parsing – Leverages GPT-4 via LangChain for reliable extraction.
  • Scalable & Repeatable – Processes thousands of URLs in batches.

Step-by-Step: How This Workflow Scrapes Amazon

  1. Get URLs from Google Sheets – Reads a list of search result URLs.
  2. Loop Over Items – Iterates through each URL in controlled batches.
  3. Fetch Raw HTML – Uses BrightData’s Web Unlocker proxy to retrieve the page.
  4. Clean HTML – A Function node removes doctype, scripts, styles, head, comments, classes, and non-whitelisted tags, collapsing extra whitespace.
  5. Extract with LLM – Passes cleaned HTML into LangChain → GPT-4 to output JSON for each product:
    • name, description, rating, reviews, price
  6. Save Results – Appends the JSON fields as columns back into a “results” sheet in Google Sheets.

Customization: Tailor to Your Needs

  • Adaptable Sites – This workflow can be adapted to any e-commerce or other website, for example Walmart or eBay.
  • Whitelist Tags – Modify the allowedTags array in the Code node to keep additional HTML elements.
  • Schema Changes – Update the Structured Output Parser schema to include more fields (e.g., availability, SKU).
  • Alternate Data Sink – Instead of Sheets, route output to a database, CSV file, or webhook.

🔑 Prerequisites

  • Google Sheets Credentials – OAuth credentials configured in n8n.
  • BrightData API token – Stored in n8n credentials as BRIGHTDATA_TOKEN.
  • OpenRouter API Key – Configured for the LangChain node to call GPT-4.
  • n8n Instance – Self-hosted or cloud with sufficient quota for HTTP requests and LLM calls.

🚀 Installation & Setup

  • Configure Credentials
    1. In n8n, set up Google Sheets OAuth under “Credentials.”
    2. Add BrightData token as a new HTTP Request credential.
    3. Create an OpenRouter API key credential for the LangChain node.
  • Import the Workflow
    1. Copy the JSON workflow into n8n’s “Import” dialog.
    2. Map your Google Sheet IDs and GIDs to the {{WEB_SHEET_ID}}, {{TRACK_SHEET_GID}}, and {{RESULTS_SHEET_GID}} placeholders.
    3. Ensure the BRIGHTDATA_TOKEN credential is selected on the HTTP Request node.
  • Test & Run
    1. Add a few Amazon search URLs to your “track” sheet.
    2. Execute the workflow and verify product data appears in your “results” sheet.
    3. Tweak batch size or parser schema as needed.

⚠ Important

  • API Rate Limits – Monitor your BrightData and OpenRouter usage to avoid throttling.
  • Amazon’s Terms – Ensure your scraping complies with Amazon’s policies and legal requirements.

Summary

This workflow delivers a fully automated, scalable solution to extract structured product data from Amazon search pages directly into Google Sheets—streamlining your competitive analysis and data collection. 🚀

.


Phil | Inforeole | Linkedin

🇫🇷 Contactez nous pour automatiser vos processus

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 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 3 - scrap url

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Sticky Note1

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

Block 5 - When clicking ‘Test workflow’

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

Block 6 - url

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

Block 7 - get urls to scrape

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

Block 8 - clean html

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

Block 9 - extract data

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 10 - add results

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

Block 11 - Split items

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

3. Summary Table

Workflow Amazon product search scraper with BrightData, GPT-4, and Google Sheets
Complexity intermediate
Nodes 11
Categories Market Research, AI Summarization
Author phil
Published 06 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3901/3901.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 Amazon product search scraper with BrightData, GPT-4, and Google Sheets do?

This workflow automates web scraping of Amazon search result pages by retrieving raw HTML, cleaning it to retain only the relevant product elements, and then using an LLM to extract structured prod...

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, AI Summarization use case.