# Google Shopping Scraper | Prices & Sellers by Country (`corvuslab/google-shopping-scraper`) Actor

Scrape Google Shopping in 29 countries by keyword, brand or model number. Sort by price or rating, and filter by price, condition, store, sale or free shipping. Get numeric prices, discounts, stores, exact ratings and seller offers. Track price changes with alerts. Export JSON, CSV or Excel.

- **URL**: https://apify.com/corvuslab/google-shopping-scraper.md
- **Developed by:** [Corvuslab](https://apify.com/corvuslab) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does Google Shopping Scraper do?

Google Shopping Scraper turns [Google Shopping](https://shopping.google.com/) results into clean, country-correct product data: a **numeric price with its currency, the original price and discount, the store, and the exact rating and review count**, in **41 structured fields** across **29 countries**. Search by keyword, brand or model number, sort by price or rating, filter by price, condition, store, sale and free shipping, then compare runs to see what changed. No code needed, with output as JSON, CSV, Excel, API or an AI-agent tool.

It returns one record per product, roughly 40 per results page. Turn on **Add seller offers and specs** for the top store offers, the total store count, specifications, description and variants.

> New to Apify? [Sign up free](https://console.apify.com/sign-up) and use the included monthly platform credit to try this Actor. No credit card needed.

**Why this scraper**

- 🌍 **The right market, every time**: each results page is checked against the country you chose, so a US search gives you US stores and US prices.
- 💵 **Prices you can calculate with**: `39.95` and `USD`, plus `originalPrice` and `discountPercent`, not just a text string.
- ⭐ **Exact review numbers**: a rating of `4.79` from `30525` reviews, where the page itself rounds to 31K.
- ♻️ **Change tracking and alerts**: tag new and changed products between runs, skip the unchanged ones, and get told on Telegram, Slack, Discord or a webhook.

***

### What data can you extract from Google Shopping?

Every record draws on **41 fields**, grouped like this:

| Group | What you get |
|---|---|
| **Price** | `price`, `priceText`, `currency`, `originalPrice`, `discountPercent`, `onSale` |
| **Product** | `title`, `brand`, `imageUrl`, `section` (the heading Google grouped it under, when there is one) |
| **Store & delivery** | `merchant`, `soldByMultipleStores`, `delivery`, `returns`, `freeShipping`, `freeReturns`, `condition` (new, used or refurbished) |
| **Ratings** | `rating` to two decimals, exact `reviewsCount` |
| **Seller offers & specs** (optional) | `offers`, `offersTotal`, `lowestOfferPrice`, `typicalPriceLow`, `typicalPriceHigh`, `merchantUrl`, `attributes`, `description`, `variants`, `detailFetched` |
| **IDs & tracking** | `id`, `productId`, `catalogId`, `offerId`, `url`, `position`, `searchQuery`, `country`, `trackingId`, `changeType`, `contentHash`, `scrapedAt` |

***

### Key features

- 🌍 **29 countries**: United States, United Kingdom, Canada, Australia, New Zealand, Ireland, Germany, Austria, Switzerland, France, Belgium, Netherlands, Spain, Italy, Portugal, Sweden, Denmark, Norway, Finland, Poland, Czechia, Turkey, Brazil, Mexico, India, Japan, Singapore, South Africa and the United Arab Emirates.
- 🏆 **Country-correct results**: a page answered for the wrong market is thrown away and retried, never filled with another country's stores.
- 🔎 **Keyword, model number or link**: search by product name, brand or model number, or paste Google Shopping result pages and product pages.
- ↕️ **Sort and filter like Google Shopping**: price low to high or high to low, top rated, price range, minimum rating, condition (new, used, refurbished), specific stores, on sale, free shipping and free returns. Most are applied by Google to the search itself, every product is checked again, and products you filter out are not charged.
- 🛒 **Seller offers and specs**: top offers with price, condition, store rating, member price, availability, delivery, returns and link, plus the total store count, Google's typical price range and specifications as key/value pairs.
- 🚦 **Honest run status**: every run ends with a message saying what it found. A search Google could not answer fails loudly instead of returning an empty "success".
- 🤖 **AI-ready**: compact and drop-empty modes keep payloads small for LLMs and MCP.

***

### 🚀 How to scrape Google Shopping

1. Open the Actor and enter your **search terms**, one per line (e.g. `wireless headphones`), or paste a Google Shopping link.
2. Pick a **Country**. It decides the stores, prices and currency you get.
3. Set **Max products**, pick a **sort order** and any filters, and choose whether to **add seller offers and specs**.
4. (Optional) Turn on **incremental mode** and a **notification** channel, then **Schedule** it.
5. Click **Start**. When the run ends, download **JSON, CSV or Excel**, or pull the data from the **API**.

#### Quick-start example input

```json
{ "queries": ["wireless headphones"], "country": "gb", "maxResults": 100 }
```

This finds up to 100 wireless headphones sold in the UK, with pound prices from UK stores, any discounts, and exact ratings and review counts, in well under a minute.

***

### Input

Configure it in the visual editor with no code, or pass JSON via the API. **31 inputs** are available, grouped the same way as the form.

#### 🔎 Search

| Field | Type | What it does |
|---|---|---|
| `queries` | array | Keywords, brands or model numbers, one per line. Each one is a separate search. |
| `startUrls` | array | Google Shopping result or product pages. Filters picked on Google carry over, and the link's own country wins. |
| `country` | enum | One of 29 markets, `us` by default. Decides the stores, prices and currency. |
| `language` | string | Optional code such as `en`, `de` or `fr`. Leave empty for the country's usual language. |
| `maxResults` | integer | Most products across the whole run. Default 40. |
| `maxResultsPerQuery` | integer | Limit per search, so one broad term can't use up the whole run. |

#### 🎚️ Sort & filters

Sort, price, rating, sale, free shipping and condition are applied by Google to the search itself, so a narrow filter still fills your results. Stores and free returns are checked on each product. Every product is checked again before delivery, and products left out are not charged.

| Field | Type | What it does |
|---|---|---|
| `sortBy` | enum | `relevance` (default), `price_asc`, `price_desc` or `rating`. |
| `minPrice` / `maxPrice` | integer | Keep products within this price range, in the country's currency. Products with no price are left out. |
| `minRating` | enum | `3`, `3.5`, `4` or `4.5`. Unrated products are left out. |
| `onSaleOnly` | boolean | Keep only products showing a reduced price. |
| `freeShippingOnly` | boolean | Keep only products with free delivery. |
| `freeReturnsOnly` | boolean | Keep only products the store takes back for free. |
| `condition` | enum | `any` (default), `new`, `used` or `refurbished`. |
| `stores` | array | Keep only these stores, e.g. `Walmart`, `Best Buy`. Matches part of the store name, ignoring case. |

#### 📄 Output

| Field | Type | What it does |
|---|---|---|
| `includeDetails` | boolean | Open each product page for seller offers, specifications, description and variants. Off by default. Priced per product opened, and slow: allow 20 to 25 seconds per product. |
| `compact` | boolean | Core fields only. Ideal for AI agents and MCP clients. |
| `excludeEmptyFields` | boolean | Drop null and empty fields. |

#### ♻️ Incremental monitoring

| Field | Type | What it does |
|---|---|---|
| `incrementalMode` | boolean | Compare with the last run and tag each product with a `changeType`. |
| `stateKey` | string | Stable name for the tracked search. Derived from your search settings if left empty. |
| `emitUnchanged` | boolean | Also return products that have not changed. |
| `emitExpired` | boolean | Also return products that dropped out of the results. Only on runs that read every page of the search. |

#### 🔔 Notifications

Every channel is off until you fill it in. Tokens and webhook URLs are encrypted secret inputs.

| Field | Type | What it does |
|---|---|---|
| `telegramToken` + `telegramChatId` | string | Telegram bot token and chat ID. |
| `slackWebhookUrl` / `discordWebhookUrl` | string | Incoming webhook URL. |
| `webhookUrl` + `webhookHeaders` | string / object | POST JSON anywhere: n8n, Make, Zapier. |
| `notificationLimit` | integer | Records per message, 1 to 20. Default 5. |

#### ⚙️ Advanced

| Field | Type | What it does |
|---|---|---|
| `maxRequestRetries` | integer | Retries for a failed request, 0 to 3. Default 3. |
| `ignoreUrlFailures` | boolean | Skip links that aren't Google Shopping pages and carry on. On by default. If no link works, the run stops with a message, at no charge. |

#### More example inputs

A filtered search in Germany, for discounted, well-rated products in a price band:

```json
{ "queries": ["kaffeevollautomat"], "country": "de", "maxResults": 200, "minPrice": 200, "maxPrice": 600, "minRating": "4", "onSaleOnly": true }
```

The cheapest refurbished headphones from two US stores, with free delivery:

```json
{ "queries": ["wireless headphones"], "country": "us", "maxResults": 50, "sortBy": "price_asc", "condition": "refurbished", "stores": ["Best Buy", "Walmart"], "freeShippingOnly": true }
```

A model-number lookup with seller offers and specs:

```json
{ "queries": ["WH-1000XM5"], "country": "us", "maxResults": 5, "includeDetails": true }
```

Several searches, each with its own limit, tracked between runs:

```json
{ "queries": ["robot vacuum", "air fryer"], "country": "us", "maxResults": 200, "maxResultsPerQuery": 100, "incrementalMode": true }
```

***

### Output

Each dataset item is one product. A search run gives you the price, store, rating and tracking fields; **Add seller offers and specs** adds the rest. A real record from a details run, trimmed for length (the original has 12 specifications and 5 offers; the second offer is shortened):

```json
{
  "id": "us-16914212430660116747",
  "title": "Sony WH-1000XM5 Wireless Noise Canceling Headphones",
  "brand": "Sony",
  "price": 189.99,
  "priceText": "$189.99",
  "currency": "USD",
  "originalPrice": null,
  "discountPercent": null,
  "onSale": false,
  "merchant": "Best Buy",
  "soldByMultipleStores": true,
  "delivery": "Free delivery",
  "returns": null,
  "freeShipping": true,
  "freeReturns": false,
  "condition": "refurbished",
  "rating": 4.58,
  "reviewsCount": 13917,
  "imageUrl": "https://encrypted-tbn0.gstatic.com/shopping?…",
  "url": "https://www.google.com/search?…",
  "merchantUrl": "https://www.google.com/goto?…",
  "productId": "11726664398501807381",
  "catalogId": "17653315832884157286",
  "offerId": "16914212430660116747",
  "trackingId": "d0a650fc6e5dd27b",
  "section": null,
  "position": 1,
  "searchQuery": "Sony WH-1000XM5",
  "country": "us",
  "description": "The Sony WH-1000XM5 headphones contain a precision driver and optimized circuitry to improve the sensitivity to frequencies, producing a…",
  "attributes": {
    "Brand": "Sony",
    "Noise Canceling": "Yes",
    "With Microphone": "Yes",
    "Color": "Silver, Midnight Blue, Smoky Pink"
  },
  "variants": [
    "Black",
    "Blue",
    "Silver",
    "Smoky Pink"
  ],
  "offers": [
    {
      "merchant": "Best Buy",
      "price": 189.99,
      "priceText": "$189.99",
      "currency": "USD",
      "originalPrice": 398,
      "memberPrice": null,
      "memberPriceNote": null,
      "title": "Sony - Refurbished Excellent - WH-1000XM5 Wireless Noise Cancelling Over-the-Ear Headphones - Silver",
      "condition": "refurbished",
      "availability": "In stock online",
      "delivery": "Free delivery",
      "freeShipping": true,
      "returns": null,
      "freeReturns": false,
      "storeRating": null,
      "merchantId": "5629591703",
      "url": "https://www.google.com/goto?url=…"
    },
    {
      "merchant": "Secondipity",
      "price": 159.99,
      "currency": "USD",
      "originalPrice": 400,
      "condition": "new",
      "delivery": "Free delivery between Nov 13 – 16",
      "returns": "14-day returns",
      "url": "https://www.google.com/goto?url=…"
    }
  ],
  "offersTotal": 102,
  "lowestOfferPrice": 159.99,
  "typicalPriceLow": 198,
  "typicalPriceHigh": 298,
  "detailFetched": true,
  "contentHash": "666a1334f180679b1026801569949cdd22db3ab2",
  "scrapedAt": "2026-11-08T23:14:13.900560+00:00"
}
```

`offersTotal` says 102 stores sell it; `offers` holds the ones Google put on the page, and `lowestOfferPrice` is the lowest of those. `typicalPriceLow` and `typicalPriceHigh` are Google's usual price range for the product across stores. The store lists this one as refurbished, so `condition` says so.

#### Data fields

- **Search fields** fill on every run (see the table above). `section` appears only when Google groups products under a heading.
- **Details fields** (`offers`, `offersTotal`, `lowestOfferPrice`, `typicalPriceLow`, `typicalPriceHigh`, `merchantUrl`, `attributes`, `description`, `variants`) fill only with `includeDetails`. Each offer carries `merchant`, `price`, `originalPrice`, `memberPrice` (with its `memberPriceNote`), `condition`, `storeRating`, `availability`, `delivery`, `freeShipping`, `returns`, `freeReturns`, `merchantId` and a link.
- **`changeType`** fills only in incremental mode.

`delivery` and `returns` are Google's own wording, in the language of the page. `condition` is `new` unless Google marks the offer used or refurbished. Missing values are `null`. **Compact mode** returns 13 core fields, and **`excludeEmptyFields`** drops empties entirely. The Output tab ships two views: **Overview** and **Seller offers**.

***

### 🔔 How to monitor Google Shopping and get alerts for new products

Schedule the Actor with **incremental mode** on, and each run returns only what is new or changed, tagged in `changeType`. A product is **UPDATED** when its price, original price, store or currency moves; rating changes don't count. Unchanged products are recognised *before* their product page is opened, so after the first run you pay only for what changed, plus the per-search fee.

**What to expect from Google Shopping.** Google reshuffles the products it shows from one request to the next: in our tests, two back-to-back runs of a 20-product search shared only 4 unchanged products. Tracking pays off on searches read deep (a high `maxResults`), where most products are seen every run. Products are tracked per product per store (`trackingId`), so colour variants from one store collapse into one row. **EXPIRED** records only appear on a run that read every page of the search.

1. Set up your search and filters, with `maxResults` high enough to cover what you track.
2. Turn on **Incremental mode**. To be told when products disappear, also turn on **Include expired records**.
3. Fill in the alert channels you want:

| Channel | What to configure |
|---|---|
| ✈️ **Telegram** | `telegramToken` (from @BotFather) + `telegramChatId` |
| 💬 **Slack** | `slackWebhookUrl` (Incoming Webhook URL) |
| 🎮 **Discord** | `discordWebhookUrl` (channel webhook URL) |
| 🪝 **Webhook** | `webhookUrl` receives structured JSON, ideal for n8n / Make / Zapier; add `webhookHeaders` for auth |

4. Run it once. The first run delivers every match and remembers it.
5. Open the **Schedules** tab and set a recurring run, e.g. every day.

Each message lists up to `notificationLimit` products with title, price and change tag, plus a link. Credentials are secret inputs: encrypted at rest, masked in the UI and never written to the run log. Every channel fires independently, so a broken one can't stop the scrape or the others.

***

### 💡 What can you do with Google Shopping data?

#### Monitor competitor prices

Track what rival stores charge for the products you sell, market by market. Numeric prices and currency codes go straight into a sheet or a repricing tool.

#### Check prices across countries

Run the same search in 29 markets and compare local prices, stores and discounts. Each record is tagged with its `country` and `currency`, so nothing gets mixed up.

#### Find who sells a product

Search a model number with seller offers on and see which stores list it, at what price, with delivery and returns side by side, plus the total store count.

#### Find deals and discounts

Use `onSaleOnly` with a rating floor and `sortBy: price_asc` to pull the cheapest well-reviewed products at a reduced price. `discountPercent` shows how big each deal is.

#### Enrich a product catalogue

Pull specifications, descriptions, variants and images into your own database. `attributes` arrives as key/value pairs, ready to map to your columns.

***

### 💰 How much does it cost to scrape Google Shopping?

This Actor uses Apify's **pay-per-event** model. You pay per product delivered, with a small fee for each search that returns products, and a separate per-product fee for seller offers and specs, charged only for products you actually receive. See the Actor's **Pricing** tab for the current numbers.

Four things keep your bill down:

- **Filters**: products you filter out are not charged.
- **Details only when you need them**: `includeDetails` is off by default. Pasted product pages always open the page, so they count as details.
- **Per-search limits**: `maxResultsPerQuery` stops one broad term from taking the whole budget.
- **Incremental mode**: unchanged products are not charged.

***

### 🔌 Integrations & export

Export to **JSON, CSV, Excel** or an HTML table, or pull from the **REST API** and the **JavaScript / Python** clients. Runs on a **schedule**, connects to **Google Sheets, Slack, Make, Zapier and n8n**, and works as an **MCP tool** for AI agents.

***

### 🔗 Using the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("corvuslab/google-shopping-scraper").call(
    run_input={"queries": ["wireless headphones"], "country": "gb", "maxResults": 50}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"], item["currency"], item["merchant"])
```

***

### ❓ FAQ

**How many products can I get?** Roughly 40 per results page, up to 20,000 per run. A single search usually runs out after a few hundred products, so split broad topics into narrower searches. A product found by two searches appears once. The same product from one store can appear twice when Google lists its colours or sizes separately, each with its own `offerId`.

**Can I search by EAN, GTIN or UPC?** Not reliably. Google Shopping searches a barcode as plain text, and in our tests even well-known barcodes returned unrelated products. Search the **model number** instead (`WH-1000XM5`): it finds the product straight away. A barcode Google doesn't know at all ends the run successfully with 0 products and a message saying no products matched.

**What happens when nothing matches?** If your filters remove everything, the run succeeds and its status says how many products were left out. If Google's answer can't be read, the run fails with a clear message and nothing is charged, so a scheduled run never looks fine while delivering nothing.

**Why do some products have no offers or specs?** Google has no detail page for some listings. Those products still arrive with price, store and rating, with `detailFetched` set to false, and the product-details fee does not apply to them.

**Is the price sort exact?** Google doesn't apply a price sort on every request, so each page is checked and asked again when it comes back unsorted. If Google still won't sort a search, its products arrive in Google's own order and the run's status message says so. Products are ordered page by page as Google returns them, so the run as a whole is not one strict price list.

**Does it return every store's offer?** No. With `includeDetails` on you get the top offers Google shows, usually 3 to 5, plus `offersTotal` for the full store count. `lowestOfferPrice` is the lowest of those shown, not necessarily the lowest anywhere.

**Why are `rating`, `delivery` or `originalPrice` empty on some products?** Google doesn't show them on every product. In our test searches about three products in four had a rating, about three in five showed delivery, and about one in three had an original price, because only discounted products carry one. Pasted product links return no brand, rating or image.

**Are sponsored products included?** No, sponsored products are not returned.

**Why do store links point to Google?** `merchantUrl` and offer links are Google redirects that lead to the store, and only come with `includeDetails`.

**What if my run times out?** Products are saved as they are found, and the run stops itself just before its timeout with a message saying how many it delivered.

***

### 🧭 More scrapers from us

Researching products and prices? These pick up where this one stops.

| Scraper | What it adds |
|---|---|
| [TikTok Shop Scraper](https://apify.com/corvuslab/tiktok-shop-scraper) | TikTok Shop products, with price, units sold and ratings |
| [Google Trends Scraper](https://apify.com/corvuslab/google-trends-scraper) | Search interest over time and by region, plus rising searches |
| [Google Ads Scraper](https://apify.com/corvuslab/google-ads-transparency-scraper) | Every ad a brand runs on Google, with reach by country |
| [Facebook Ads Library Scraper](https://apify.com/corvuslab/facebook-ads-library-scraper) | Ad copy, creatives and EU reach on Facebook and Instagram |
| [Trustpilot Scraper](https://apify.com/corvuslab/trustpilot-scraper) | Every review past the 200 cap, with TrustScore and replies |
| [TikTok Shop Creator Scraper](https://apify.com/corvuslab/tiktok-shop-creator-finder) | TikTok Shop creators selling a product, with followers and email |

***

### ⚖️ Is it legal to scrape Google Shopping?

This Actor collects only **publicly available** product information shown to logged-out visitors, such as titles, prices, stores and ratings. Whether a particular use is lawful depends on your jurisdiction and purpose, and this page is not legal advice. You're responsible for how you use the data, and for complying with Google's terms and applicable law, including the GDPR or LGPD where they apply. Not affiliated with, endorsed by or sponsored by Google.

***

**Keywords:** google shopping scraper · google shopping api · scrape google shopping · google shopping prices · google shopping price tracker · google shopping sort by price · used and refurbished products · google shopping sellers · price monitoring · competitor price monitoring · price comparison by country · google shopping by country · model number price search · product data extraction · e-commerce market research · export to CSV · export to Excel · no-code scraper · MCP tool for AI agents

# Changelog

This Actor's version history is a separate document: https://apify.com/corvuslab/google-shopping-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

Product keywords, brands or model numbers, one per line. Each one is a separate search. Model numbers (e.g. WH-1000XM5) match far better than barcodes.

## `startUrls` (type: `array`):

Optional. Paste Google Shopping result pages (filters picked on Google carry over) or product pages. The link's own country wins over the Country setting.

## `country` (type: `string`):

The market to search. Decides the stores, prices and currency you get.

## `language` (type: `string`):

Optional language code such as en, de or fr. Leave empty for the country's usual language.

## `maxResults` (type: `integer`):

Most products to return across all searches in this run.

## `maxResultsPerQuery` (type: `integer`):

Optional limit for each search term, so one broad term can't use up the whole run.

## `sortBy` (type: `string`):

The order Google returns products in. Price sorting is checked on every page and asked again when Google ignores it.

## `minPrice` (type: `integer`):

Keep products at or above this price, in the country's currency.

## `maxPrice` (type: `integer`):

Keep products at or below this price, in the country's currency.

## `minRating` (type: `string`):

Keep products rated at least this high. Unrated products are left out.

## `onSaleOnly` (type: `boolean`):

Keep only products showing a reduced price.

## `freeShippingOnly` (type: `boolean`):

Keep only products with free delivery.

## `freeReturnsOnly` (type: `boolean`):

Keep only products the store takes back for free.

## `condition` (type: `string`):

New, used or refurbished products only. Google marks used and refurbished offers; everything else counts as new.

## `stores` (type: `array`):

Keep only products sold by these stores, e.g. Walmart or Best Buy. Matches part of the store name, ignoring case. Leave empty for all stores.

## `includeDetails` (type: `boolean`):

Open each product page for store-by-store offers with links, specifications, description and variants. Slower, and priced per product opened.

## `compact` (type: `boolean`):

Emit only the core fields. Ideal for AI agents and MCP clients.

## `excludeEmptyFields` (type: `boolean`):

Remove null, empty-string and empty-array fields from each record.

## `incrementalMode` (type: `boolean`):

Track products between runs and tag each with a changeType (NEW / UPDATED / UNCHANGED / EXPIRED). Unchanged products are skipped and not charged.

## `stateKey` (type: `string`):

Stable name for the tracked search. Leave empty to derive one automatically from your search settings.

## `emitUnchanged` (type: `boolean`):

Also emit records that have not changed since the previous run.

## `emitExpired` (type: `boolean`):

Also return products seen last run that have dropped out of these results. Only on runs that read every page of the search.

## `telegramToken` (type: `string`):

Bot token from @BotFather.

## `telegramChatId` (type: `string`):

Chat or channel ID, e.g. "-100123456789" or "@yourchannel".

## `slackWebhookUrl` (type: `string`):

Slack incoming-webhook URL.

## `discordWebhookUrl` (type: `string`):

Discord incoming-webhook URL.

## `webhookUrl` (type: `string`):

Any HTTPS endpoint. Receives a JSON POST with the matched records — works with n8n, Make and Zapier.

## `webhookHeaders` (type: `object`):

Extra headers for the webhook request, e.g. {"Authorization": "Bearer xyz"}.

## `notificationLimit` (type: `integer`):

How many records to include in each notification message.

## `maxRequestRetries` (type: `integer`):

How many times to retry a failed request before giving up on it.

## `ignoreUrlFailures` (type: `boolean`):

Skip links that are not Google Shopping pages and carry on with the rest. If none of your links work, the run stops with a message either way.

## Actor input object example

```json
{
  "queries": [
    "wireless headphones"
  ],
  "country": "us",
  "maxResults": 40,
  "sortBy": "relevance",
  "onSaleOnly": false,
  "freeShippingOnly": false,
  "freeReturnsOnly": false,
  "condition": "any",
  "includeDetails": false,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 5,
  "maxRequestRetries": 3,
  "ignoreUrlFailures": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `allItems` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "wireless headphones"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("corvuslab/google-shopping-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": ["wireless headphones"] }

# Run the Actor and wait for it to finish
run = client.actor("corvuslab/google-shopping-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "wireless headphones"
  ]
}' |
apify call corvuslab/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corvuslab/google-shopping-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LwoJ6BnLY1EmesYgU/builds/NuIXXKWipqAWeosq9/openapi.json
