# Google Shopping Scraper & Price Tracker: Sellers, Price History (`getascraper/google-shopping-scraper`) Actor

Scrape Google Shopping in 7 countries past page one, with Google's price range, price sort, on-sale and free-shipping filters. Add up to 5 sellers per product, the typical price range and each seller's daily price history. Track product IDs on a schedule and save only price and seller changes.

- **URL**: https://apify.com/getascraper/google-shopping-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.90 / 1,000 product 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

## 🛒 Google Shopping Scraper & Price Tracker: Sellers, Price History

<table width="100%" style="display:table;width:100%;border-collapse:separate;border-spacing:0;margin-bottom:0">
<tr>
<td style="padding:24px 28px;background:#EEF4FD;border:1px solid #C9DCF8;border-top:4px solid #1A73E8;color:#1C1917;border-radius:10px 10px 0 0">
<span style="font-size:23px;font-weight:800;color:#1C1917;line-height:1.3">Hundreds of Google Shopping products per search, with up to 5 sellers for each</span><br>
<span style="font-size:15px;color:#57534E;line-height:1.6">Search Google Shopping in 7 countries and save each product's price and seller, plus its previous price, rating and delivery when Google shows them. Add seller offers and up to a year of price history when you need them, and schedule runs that save only what changed.</span>
</td>
</tr>
</table>
<table width="100%" style="display:table;width:100%;border-collapse:separate;border-spacing:0;margin-top:0">
<tr>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #C9DCF8;vertical-align:top;border-top:none;color:#1C1917;border-radius:0 0 0 10px">
<span style="font-size:15px;font-weight:800;color:#1557B0">📚 Past page one</span><br>
<span style="font-size:12px;color:#57534E">Keeps paging, then splits a search into price ranges when Google's results for it run out.</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #C9DCF8;border-left:none;vertical-align:top;border-top:none;color:#1C1917">
<span style="font-size:15px;font-weight:800;color:#1557B0">🏷️ Google's own filters</span><br>
<span style="font-size:12px;color:#57534E">Price range, cheapest or priciest first, on sale only and free shipping only.</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #C9DCF8;border-left:none;vertical-align:top;border-top:none;color:#1C1917">
<span style="font-size:15px;font-weight:800;color:#1557B0">🏪 Sellers and price history</span><br>
<span style="font-size:12px;color:#57534E">Up to 5 seller offers per product, the typical price range and each seller's past prices.</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #C9DCF8;border-left:none;vertical-align:top;border-top:none;color:#1C1917;border-radius:0 0 10px 0">
<span style="font-size:15px;font-weight:800;color:#1557B0">🔔 Price-change alerts</span><br>
<span style="font-size:12px;color:#57534E">Scheduled runs save only new products and price or seller changes, and can call your webhook.</span>
</td>
</tr>
</table>

No login, no browser and no API key needed. Type a search, pick a country, and download clean rows as JSON, CSV or Excel.

### 🔍 What does Google Shopping Scraper do?

It reads the products Google Shopping shows for your searches, the same grid shoppers see, and saves one row per product. Each row has the title, current price, seller and a link to the product on Google. It also carries the previous price and discount, rating and review count, delivery and returns text, and condition whenever Google shows them. A picture link is included when Google sends one. On a search of 400 products, about 4 in 10 come with one, and a search of 20 products often has none. Products checked for seller offers or tracked by product ID usually get one from their product page.

It keeps paging until your limit or the end of Google's results. When one search runs out, it splits the search into price ranges and searches each range. A broad query like "wireless headphones" can return several hundred products.

Turn on seller offers and each product also gets up to 5 of the sellers Google lists for it. You also get Google's typical price range and day-by-day price history for each of those sellers.

### 💡 What can you do with it?

- **Price research.** Pull every product for "standing desk" between 200 and 500 in the US, cheapest first, and see who sells below the typical range.
- **Reseller and MAP checks.** Track your own products by Google product ID. See the prices of up to 5 sellers, and when they moved, run after run.
- **Discount tracking.** Search with "on sale only" to collect every discounted product with its previous price and discount percent.
- **Assortment and category research.** Compare which brands and sellers fill the first 200 results for a category in the UK, Germany or India.
- **Repricing feeds.** Schedule a monitor and get only new products and price changes, with the previous price and the change, sent to your webhook.

### 🚀 How to use it

<table width="100%" style="display:table;width:100%;border-collapse:separate;border-spacing:0">
<tr>
<td style="padding:16px 14px;width:33%;background:#EEF4FD;border:1px solid #C9DCF8;border-radius:10px 0 0 10px;vertical-align:top;color:#1C1917">
<span style="font-size:12px;font-weight:800;color:#1A73E8;letter-spacing:1px">STEP 1</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Add your searches</span><br>
<span style="font-size:12px;color:#57534E">Type one or more searches, or paste Google product IDs from an earlier run.</span>
</td>
<td style="padding:16px 14px;width:33%;background:#EEF4FD;border:1px solid #C9DCF8;border-left:none;vertical-align:top;color:#1C1917">
<span style="font-size:12px;font-weight:800;color:#1A73E8;letter-spacing:1px">STEP 2</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Pick country and filters</span><br>
<span style="font-size:12px;color:#57534E">Choose a country, then a price range, sort, sale or free shipping filter if you need one.</span>
</td>
<td style="padding:16px 14px;width:33%;background:#EEF4FD;border:1px solid #C9DCF8;border-left:none;border-radius:0 10px 10px 0;vertical-align:top;color:#1C1917">
<span style="font-size:12px;font-weight:800;color:#1A73E8;letter-spacing:1px">STEP 3</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Run and download</span><br>
<span style="font-size:12px;color:#57534E">Start the run, then export the products as JSON, CSV or Excel, or schedule it.</span>
</td>
</tr>
</table>

1. Open **Google Shopping Scraper** in Apify Console.
2. Enter your searches (for example `wireless headphones`) or product IDs.
3. Pick a country, and set filters and the number of products per search.
4. Optionally turn on **Include seller offers and price history**.
5. Click **Start**, then download the dataset.

### ⚙️ Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `queries` | array of strings | Yes, unless product IDs are given | Searches to run on Google Shopping, one per line. |
| `productIds` | array of strings | No | Google product IDs or product links from this Actor's output. When given, these products are checked instead of running the searches. |
| `countryCode` | enum | No | United States, United Kingdom, Germany, France, Canada, Australia or India. |
| `languageCode` | string | No | Interface language as a two-letter code, such as en, de or fr. |
| `location` | string | No | City or region for local results, for example `Chicago,Illinois,United States`. |
| `minPrice` | number | No | Only products at or above this price, in the country's currency. |
| `maxPrice` | number | No | Only products at or below this price. |
| `sortBy` | enum | No | Relevance, price low to high, or price high to low. |
| `onSaleOnly` | boolean | No | Only discounted products. |
| `freeShippingOnly` | boolean | No | Only products with free delivery. |
| `minRating` | number | No | Only products rated at least this many stars (1 to 5). |
| `merchants` | array of strings | No | Only products from sellers whose name contains one of these words. |
| `includeOffers` | boolean | No | Add seller offers, the typical price range and price history to each product. |
| `maxProductsWithOffers` | integer | No | How many products per run get seller offers. |
| `priceHistoryDays` | integer | No | Days of price history to keep (up to 366). |
| `maxProductsPerQuery` | integer | No | The most products to save per search (up to 1,000). |
| `onlyNewOrChanged` | boolean | No | Save only new products and price or seller changes since the last run. |
| `monitorName` | string | No | A name that keeps one schedule's memory apart from another's. |
| `notificationWebhookUrl` | string | No | A public HTTPS address that receives a summary of the changes. |
| `proxyConfiguration` | object | No | Proxy settings. The Actor always uses Apify's proxy for Google search. |

Example input:

```json
{
    "queries": ["wireless headphones"],
    "countryCode": "US",
    "maxProductsPerQuery": 200,
    "minPrice": 50,
    "maxPrice": 150,
    "sortBy": "price_low_to_high",
    "includeOffers": true,
    "maxProductsWithOffers": 10
}
```

### 📦 Output

One row per product. A field Google did not show is left out of the row, never filled with a placeholder.

```json
{
    "query": "wireless headphones",
    "position": 24,
    "page": 1,
    "title": "Mahipey Y01 Wireless Over-Ear Headphones with Active Noise Cancelling,Hi-Res Audio,48H Playtime,Foldable Design Bluetooth Headphones for iPhone",
    "productId": "12088267421951505429",
    "gpcId": "12032170492717619188",
    "offerId": "3909350256678382082",
    "price": 29.99,
    "currency": "USD",
    "priceText": "$29.99",
    "originalPrice": 66,
    "discountPercent": 54,
    "badge": "54% OFF",
    "merchant": "Walmart - TechPulse Electronics",
    "hasMoreSellers": false,
    "rating": 2.6,
    "reviewCount": 109,
    "country": "US",
    "language": "en",
    "scrapedAt": "2026-11-12T04:34:32.556Z"
}
```

With seller offers turned on, a product also carries its offers, Google's typical price range and each seller's price history (excerpt from a Bose QuietComfort product):

```json
{
    "offersIncluded": true,
    "offersShown": 5,
    "moreSellersOnGoogle": true,
    "lowestOfferPrice": 269,
    "lowestOfferMerchant": "Best Buy",
    "typicalPriceLow": 359,
    "typicalPriceHigh": 360,
    "typicalPriceText": "$359–$360",
    "offers": [
        {
            "merchant": "Best Buy",
            "price": 269,
            "currency": "USD",
            "originalPrice": 359,
            "discountPercent": 25,
            "badges": ["Best price"],
            "availability": "In stock online",
            "delivery": "Free delivery",
            "freeDelivery": true
        }
    ],
    "priceHistory": [
        {
            "merchant": "Best Buy",
            "lowestPrice": 254.99,
            "highestPrice": 279,
            "points": [
                { "date": "2026-11-03", "price": 279 },
                { "date": "2026-11-04", "price": 279 }
            ]
        }
    ],
    "priceHistoryCurrency": "USD"
}
```

### 📋 Data table

| Field | Type | Description |
| --- | --- | --- |
| `query` | string | The search the product was found for. |
| `position` | integer | Position in this search's results, after filters. |
| `page` | integer | The results page the product was on. |
| `title` | string | Product title. |
| `productId` | string | Google product ID. Use it in `productIds` to check the product again. |
| `gpcId` | string | Google product group ID, shared by variants. |
| `offerId` | string | Google ID of the headline offer. |
| `productDocId` | string | Google document ID of the listing. |
| `price` | number | Current price. |
| `currency` | string | Currency code, such as USD or EUR. |
| `priceText` | string | Price as Google shows it. |
| `originalPrice` | number | Previous price when on sale. |
| `usualPrice` | number | Google's "usually" price, when shown. |
| `discountPercent` | number | Discount in percent. |
| `badge` | string | Google's badge, such as "25% OFF". |
| `merchant` | string | Seller of the headline offer. |
| `hasMoreSellers` | boolean | Google shows more sellers or prices. |
| `delivery` | string | Delivery text. |
| `freeDelivery` | boolean | True for free delivery, false when a fee is stated. |
| `returns` | string | Returns text. |
| `rating` | number | Product rating out of 5. |
| `reviewCount` | integer | Number of reviews. |
| `condition` | string | Condition, such as Refurbished or Used. |
| `localAvailability` | string | Nearby store availability. |
| `unitPriceText` | string | Unit price, such as "$0.50/oz". |
| `priceInSellerCurrency` | string | Price in the seller's own currency when Google converted it. |
| `productUrl` | string | Link to the product on Google Shopping. |
| `image` | string | Product picture link, where available. Left out when Google sends no link. |
| `priceBand` | object | The price range a product was found in, for searches split into ranges. |
| `country`, `language`, `location` | string | Where the search ran. |
| `scrapedAt` | string | When the product was collected. |
| `offers` | array | Seller offers: seller, price, previous price, discount, badges, title, availability, condition, distance, seller rating, delivery, returns, link. |
| `offersShown`, `moreSellersOnGoogle` | integer, boolean | Offers saved, and whether Google lists more sellers. |
| `lowestOfferPrice`, `lowestOfferMerchant` | number, string | Cheapest seller offer. |
| `typicalPriceLow`, `typicalPriceHigh`, `typicalPriceText` | number, string | Google's typical price range. |
| `priceHistory`, `priceHistoryCurrency` | array, string | Each seller's lowest and highest price and dated price points. |
| `productTitle`, `description` | string | Title and description from the product page. |
| `changeType` | string | Monitoring runs: NEW, PRICE_CHANGED or SELLERS_CHANGED. |
| `previousPrice`, `priceChange`, `priceChangePercent` | number | The previous price and the change (searches). |
| `previousLowestPrice`, `lowestPriceChange`, `lowestPriceChangePercent` | number | The previous lowest seller price and the change (product IDs). |
| `newSellers`, `droppedSellers`, `sellerPriceChanges` | array | Seller changes since the last run (product IDs). |
| `firstSeenAt`, `previousSeenAt`, `monitorName` | string | Monitor history for the product. |

### 💰 Pricing

This Actor uses pay-per-event pricing with no subscription. The price of each event is listed on the Actor's Pricing tab.

- **Run start:** a small fee once per run. A run that finds nothing pays only this fee.
- **Product result:** each product saved to the dataset. Products that are filtered out, repeated or unchanged in a monitoring run are not saved and pay no result charge.
- **Seller offers (optional add-on):** charged per product whose page showed at least one seller offer. It includes Google's typical price range and each seller's price history when the page shows them. Pages without seller offers are not charged.
- **Product ID monitoring:** every checked product that shows seller offers pays the add-on, changed or not. Each check reads the product's page. Unchanged products save no row, so they pay no result charge.

Set a maximum charge per run and the Actor stays within it. Products are saved first, and seller offers are read only while the limit still covers them. The run's status message says when the limit cut a run short.

### ⭐ Enjoying Google Shopping Scraper?

<table width="100%" style="display:table;width:100%;border-collapse:separate;border-spacing:0">
<tr>
<td style="padding:20px 24px 14px;background:#EEF4FD;border:1px solid #EEF4FD;border-left:5px solid #1A73E8;border-radius:10px 10px 0 0;color:#1C1917">
<span style="font-size:20px;letter-spacing:4px">⭐ ⭐ ⭐ ⭐ ⭐</span><br>
<span style="font-size:17px;font-weight:800;color:#1C1917">Get the prices of up to 5 sellers for a product without clicking through Google Shopping by hand.</span><br>
<span style="font-size:14px;color:#57534E">A 5-star rating takes 10 seconds and helps other price research teams find it. Your feedback also tells us what to build next.</span>
</td>
</tr>
<tr>
<td style="padding:0;background:#1557B0;border:1px solid #1557B0;border-left:5px solid #1557B0;border-top:none;border-radius:0 0 10px 10px;text-align:center;color:#1C1917">
<a href="https://apify.com/getascraper/google-shopping-scraper/reviews" style="display:block;padding:13px 16px;color:#FFFFFF;text-decoration:none;font-weight:800;font-size:15px;letter-spacing:0.3px">★&nbsp;&nbsp;Rate this Actor on Apify</a>
</td>
</tr>
</table>

### ✨ Tips

- Start with 20 products per search to see the fields, then raise the limit. Large limits take longer because each page of results is a separate request.
- Seller offers make a run slower, since each product's page is opened. Keep `maxProductsWithOffers` small for quick runs.
- Use the country's own language (de for Germany, fr for France) for the most complete results.
- Very strict filters, such as one seller plus a high minimum rating, can end a search early when few products match. The status message says so, and loosening the filters returns more.
- For daily tracking, save product IDs from a search run and check them with `productIds` and `onlyNewOrChanged`. Google reorders search results often, so a search monitor with a small limit reports many new products; product IDs give the steadiest price alerts.

### ❓ FAQ

**How many products can I get for one search?**
Google's results for a single search end after about 200 products. Above that, the Actor splits your search into price ranges and searches each one, which usually reaches several hundred products for broad searches.

**Does it mark sponsored results?**
No. Each row is a product from the Google Shopping results for your search, and rows carry no sponsored or ad label.

**How is it different from Google Shopping Ads Scraper?**
This Actor keeps paging past the first results page, applies Google's own filters, and adds seller offers, price history and a product ID monitor. [Google Shopping Ads Scraper](https://apify.com/getascraper/google-shopping-ads-scraper) is our separate Actor for the first results page.

**Can I track price changes for specific products?**
Yes. Put the product IDs in `productIds`, turn on `onlyNewOrChanged`, and schedule the run. Each run then saves only products whose lowest price or sellers changed, with the previous price. This is the steadiest way to monitor prices. Every check of a product with seller offers pays the seller offers add-on, whether or not it changed.

**Does every product come with a picture?**
No. A picture link is saved only when Google sends one. On a search of 400 products about 4 in 10 have one, and short searches often have none. Products checked for seller offers or tracked by product ID usually get one from their product page.

**Which countries are supported?**
United States, United Kingdom, Germany, France, Canada, Australia and India, each with its own currency, sellers and delivery terms.

### 🛡️ Disclaimers & Support

This Actor collects publicly visible product information from Google Shopping. It is not affiliated with or endorsed by Google. Use the data in line with applicable laws and the terms of the sites involved. Questions or a missing field? Open an issue on the Actor's Issues tab.

### 🔗 Other actors

- [Google Shopping Ads Scraper](https://apify.com/getascraper/google-shopping-ads-scraper) ↗ - our separate Actor for the first page of Google Shopping results.
- [Google Local Services Ads Scraper](https://apify.com/getascraper/google-local-services-ads-scraper) ↗ - home service providers and their rank in local ads.
- [Google Lens Search](https://apify.com/getascraper/google-lens-visual-search) ↗ - reverse image search and text from images.
- [Google Maps Posts Scraper](https://apify.com/getascraper/google-maps-business-posts-scraper) ↗ - business posts and offers from Google Maps listings.

# Changelog

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

# Actor input Schema

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

What to search for on Google Shopping, one query per line, for example "wireless headphones" or "standing desk". Each query is searched on its own and gets its own products.

## `productIds` (type: `array`):

Google product IDs (the productId field in this Actor's output) or productUrl values. Each product is checked on its own product page: every seller offer shown, the typical price range and price history. Use this to track the same products on a schedule.

## `countryCode` (type: `string`):

The Google Shopping country to search. Prices, sellers and delivery are the ones shoppers in that country see.

## `languageCode` (type: `string`):

The language of Google's interface and product text, as a two-letter code such as en, de or fr. Use the country's own language for the most complete results.

## `location` (type: `string`):

Optional city or region for local results, written the way Google knows it, for example "Chicago,Illinois,United States". Local results add nearby store availability where Google shows it.

## `minPrice` (type: `number`):

Only products priced at or above this amount, in the country's currency. Google applies the filter to its results, and every saved product is checked again.

## `maxPrice` (type: `number`):

Only products priced at or below this amount, in the country's currency.

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

The order of the results. Price sorts are Google's own, so the cheapest (or most expensive) products come first across all pages.

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

Only products Google shows as discounted, with a previous price or a percent-off badge.

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

Only products with free delivery. Products that state a delivery fee are dropped.

## `minRating` (type: `number`):

Only products rated at least this many stars (1 to 5). Products without a rating are left out when this is set.

## `merchants` (type: `array`):

Only products sold by these sellers, for example "Best Buy" or "Walmart". A product is kept when its seller name contains one of these words, ignoring case.

## `includeOffers` (type: `boolean`):

Also open each product's page and save the seller offers shown there (price, condition, delivery, returns, seller rating, link), Google's typical price range and each seller's price history. Takes longer and is billed as an add-on per product that has offers.

## `maxProductsWithOffers` (type: `integer`):

How many products, counted across all queries, get their seller offers and price history. The first products of each query are used. Product ID runs always include offers.

## `priceHistoryDays` (type: `integer`):

How many days of each seller's price history to save. Google keeps about one year.

## `maxProductsPerQuery` (type: `integer`):

The most products to save for each query. Google's results for one search end after about 200 products; above that, this Actor splits the query into price ranges to reach more.

## `onlyNewOrChanged` (type: `boolean`):

For scheduled runs: save only products that are new since the last run or whose price changed, with the previous price and the change. With product IDs, saves only products whose lowest price or sellers changed. The first run saves everything and remembers it.

## `monitorName` (type: `string`):

A name for this tracker, so separate schedules keep separate memories, for example "headphones-us". Letters, digits and dashes. Leave empty to use the default monitor.

## `notificationWebhookUrl` (type: `string`):

Optional public HTTPS address that receives a JSON summary of the changes after each monitoring run that found any, for example a Zapier, Make or Slack workflow webhook.

## `proxyConfiguration` (type: `object`):

The Actor always uses Apify's proxy for Google search results, which this Actor needs to read Google Shopping reliably. Other proxy settings are replaced.

## Actor input object example

```json
{
  "queries": [
    "wireless headphones"
  ],
  "countryCode": "US",
  "languageCode": "en",
  "sortBy": "relevance",
  "onSaleOnly": false,
  "freeShippingOnly": false,
  "includeOffers": false,
  "maxProductsWithOffers": 10,
  "priceHistoryDays": 90,
  "maxProductsPerQuery": 20,
  "onlyNewOrChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `rows` (type: `string`):

No description

## `summary` (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"
    ],
    "countryCode": "US",
    "languageCode": "en",
    "sortBy": "relevance",
    "onSaleOnly": false,
    "freeShippingOnly": false,
    "includeOffers": false,
    "maxProductsWithOffers": 10,
    "priceHistoryDays": 90,
    "maxProductsPerQuery": 20,
    "onlyNewOrChanged": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/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"],
    "countryCode": "US",
    "languageCode": "en",
    "sortBy": "relevance",
    "onSaleOnly": False,
    "freeShippingOnly": False,
    "includeOffers": False,
    "maxProductsWithOffers": 10,
    "priceHistoryDays": 90,
    "maxProductsPerQuery": 20,
    "onlyNewOrChanged": False,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/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"
  ],
  "countryCode": "US",
  "languageCode": "en",
  "sortBy": "relevance",
  "onSaleOnly": false,
  "freeShippingOnly": false,
  "includeOffers": false,
  "maxProductsWithOffers": 10,
  "priceHistoryDays": 90,
  "maxProductsPerQuery": 20,
  "onlyNewOrChanged": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call getascraper/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/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/rcHStgbG578rRI4VG/builds/cuqJgFZ8f7RWsTzTv/openapi.json
