Google Shopping Price Comparison Tool avatar

Google Shopping Price Comparison Tool

Under maintenance

Pricing

Pay per usage

Go to Apify Store
Google Shopping Price Comparison Tool

Google Shopping Price Comparison Tool

Under maintenance

Scrape product listings, prices, merchants, shipping info, and ratings from Google Shopping. E-commerce competitive pricing intelligence tool.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Richard P

Richard P

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Google Shopping Price Comparison Scraper

An Apify Actor that scrapes product listings, prices, merchants, shipping information, and ratings from Google Shopping. Designed for competitive pricing intelligence, market research, and e-commerce analysis.

Features

  • Multiple search queries — run many product searches in a single execution
  • Structured product data — title, price, currency, merchant, rating, reviews, shipping, condition, image
  • JSON-LD + HTML parsing — extracts structured data when available, falls back to HTML card parsing with multiple selector strategies
  • Price filtering — optional min/max price filters per query
  • Country targeting — set geolocation via country code (US, GB, DE, FR, JP, etc.)
  • Rate limiting — configurable delays between requests to avoid blocking
  • Graceful abort — cleanly shuts down when the Actor is stopped mid-execution
  • Chrome user-agent rotation — rotates user-agent strings across queries
  • Deduplication — merges results from JSON-LD and HTML sources by URL

Input

FieldTypeDefaultDescription
searchQueriesstring[]["iPhone 15 case"]One or more product search terms
maxResultsinteger50Max product results per query (1–200)
countrystring"US"Two-letter country code (US, GB, DE, FR, etc.)
minPricenumbernullOptional minimum price filter
maxPricenumbernullOptional maximum price filter

Example input

{
"searchQueries": ["iPhone 15 case", "wireless headphones", "USB-C hub"],
"maxResults": 30,
"country": "US",
"minPrice": 5,
"maxPrice": 100
}

Output

Each dataset item contains:

FieldTypeDescription
titlestringProduct name
urlstringGoogle Shopping product URL
merchantstringStore/seller name
pricenumberCurrent price
currencystringISO 4217 currency (USD, EUR, GBP...)
originalPricenumber?Strikethrough original price (if on sale)
shippingCostnumber?Shipping cost (0 = free)
shippingInfostring?Raw shipping description
ratingnumber?Average rating (0–5)
reviewCountinteger?Number of reviews
conditionstring?new, used, refurbished, or null
imageUrlstring?Product thumbnail URL
taxInfostring?Tax-related details
searchQuerystringThe search term that produced this result
scrapedAtstringISO 8601 scrape timestamp
sourcestring"jsonld" or "html" (data origin)

Usage

Local development

# Install dependencies
pip install -r requirements.txt
# Run locally with Apify CLI
cd /root/workspace/google-shopping-scraper
apify run --purge

Deploy to Apify

$apify push

Or import the Git repository into the Apify Console.

How it works

  1. URL construction — builds search URLs with tbm=shop (Shopping tab), hl=en, and gl (geolocation) parameters
  2. HTTP request — uses httpx.AsyncClient with Chrome user-agent and retry logic
  3. JSON-LD parsing — extracts structured product data from <script type="application/ld+json"> blocks
  4. HTML card parsing — falls back to parsing product card divs with multiple CSS selector strategies
  5. Deduplication — merges results from both sources, preferring JSON-LD data
  6. Batched push — pushes results to the Apify dataset in batches of 25

Limitations

  • Google adapts HTML class names over time — the fallback selector system handles this but may occasionally miss results
  • Pagination support is limited (Google loads most results dynamically via JavaScript)
  • Some merchant sites block or redirect Google Shopping referral links
  • Rate limits may apply for high-volume scraping

License

MIT