Scrape Amazon Products

Extract product data from Amazon search results including names, prices, ratings, and reviews with structured JSON output.

Scrape Amazon Products demo
TypeScript
Source code
npx create-browser-app --template amazon-product-scraping
uvx create-browser-app --template amazon-product-scraping

Scrape Amazon product data for price monitoring and research

Automatically scrape Amazon search results and extract structured product data using AI-powered browser automation. This template searches for products, extracts the top results with names, prices, star ratings, review counts, and product URLs. Uses Zod schema validation for type-safe structured data.

Steps

  1. Initialize Stagehand session with Browserbase
  2. Navigate to Amazon and enter search query
  3. Click search to load product results
  4. Extract structured data for top products (name, price, rating, reviews, URL)
  5. Output validated JSON with product details