Track Google Shopping prices and stores for any keyword

· All my Apify Actors

Track Google Shopping prices and stores for any keyword

Google Shopping is where a lot of buyers compare prices before they pick a store. If you sell in a category, you want to know which stores show up for your keywords, at what price, with what discount and how many reviews, and you want to know when that changes. The results page shows you all of it, 40 cards at a time, with no export.

I built a scraper that turns a Google Shopping search into rows, one per product, and a monitor that reports new products and price drops. Here's what I learned about Google's Shopping results along the way.

What to watch for

Getting the data

I packaged this as an Apify Actor, Google Shopping Scraper. A product from a "wireless earbuds" search comes back like this (trimmed):

{
  "id": "549048356659243400",
  "position": 2,
  "page": 1,
  "title": "Beats Solo Buds True Wireless Earbuds",
  "price": 69.99,
  "originalPrice": 80,
  "discountPct": 12,
  "currency": "USD",
  "merchant": "Best Buy",
  "moreStores": true,
  "rating": 3.8,
  "reviewCount": 6200,
  "shipping": "Free delivery by Fri",
  "freeShipping": true,
  "returns": "15-day returns",
  "badges": ["12% OFF"],
  "isSponsored": false,
  "catalogId": "10506635979914339716",
  "query": "wireless earbuds",
  "country": "us",
  "changeType": null,
  "previousPrice": null
}

id is Google's product cluster id, which stays the same between runs. To list the cheapest air fryers under $100:

curl -X POST "https://api.apify.com/v2/acts/rjmacarthy~google-shopping-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": ["air fryer"],
    "maxPrice": 100,
    "sortBy": "price_low",
    "maxItems": 80
  }'

country takes any storefront's two-letter code (us, uk, de, fr, in and so on), with prices in that currency. onSale keeps only cards with a crossed-out price or a discount badge. The price range and free-delivery filters use Google's own filters, and the scraper also drops any card that doesn't match, reading more pages to fill maxItems.

Monitoring a category

Set monitorMode to changes and give the monitor a stateKey:

{
  "queries": ["robot vacuum"],
  "maxItems": 40,
  "monitorMode": "changes",
  "stateKey": "robot-vacuums"
}
  1. The first run outputs everything and saves it under the stateKey.
  2. Schedule it daily in Apify. Later runs check the same pages and output only products not seen before, plus price drops and increases with previousPrice.
  3. Send the rows to Slack, email or a sheet with a webhook or a Make, Zapier or n8n step.

Use new instead of changes if you only want new products, and a different stateKey for each monitor. Expect a noisy first week while the monitor learns which products Google rotates in.

Pricing

Pay per event, no run fee:

On the free Apify plan each run is limited to 5 result pages, about 200 products. Any paid plan removes the limit. You can also set a maximum cost per run and the Actor stops cleanly when it's reached.

It reads public search result pages only, with no login and no personal data: product, price and store information that anyone can see.