# Google Shopping Scraper: Prices, Stores, Price History & GTIN (`nextgensda/google-shopping-scraper`) Actor

Search Google Shopping in any country: products with prices, merchants and ratings; details and specs, every store's offer, per-store price history and reviews; look products up by GTIN/UPC/EAN. Filters for price, rating, brand, store and sale. Pay per result.

- **URL**: https://apify.com/nextgensda/google-shopping-scraper.md
- **Developed by:** [Tauqeer Abbas](https://apify.com/nextgensda) (community)
- **Categories:** E-commerce, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Prices, Stores, Price History & GTIN

![Google Shopping Scraper: every store's price and 12 months of price history for a product, with filters and GTIN lookup](https://api.apify.com/v2/key-value-stores/VaWYz388qhQX9tppG/records/banner-2026-11-10.png?signature=g8VsBqrur5E9ggeVY9CI)

Search Google Shopping in any country and get every product with its price,
store, rating and reviews count. Add what you need on top: the product's
details and specs, **every store's offer**, **12 months of price history per
store**, review texts. Look products up by **GTIN / UPC / EAN**. Filter by
price, rating, brand, store, sale and any filter Google shows. No Google
account, no API key. You pay per result.

### What it does

- **Search** by keywords, or paste Google Shopping links (their filters are
  kept). Up to ~240 products per query, in Google's order or sorted by price
  or rating.
- **Filters**: min/max price, min rating, on sale, brand, store, and any
  filter chip Google offers for the search ("Wireless", "Used", "Small
  business", a category...).
- **Product details**: description, specs, variants (colour, size), images,
  videos, review summary and topics, Google's AI insights.
- **Every store's offer**: price, shipping, condition, availability,
  delivery and returns, seller rating, payment options and the store's link,
  for up to 1,000 stores a product.
- **Price history**: each store's daily price over up to 12 months, the
  typical price range, and the sale events (Black Friday, holidays) Google
  marks.
- **Reviews**: title, text, rating, date and source.
- **GTIN / UPC / EAN lookup**: barcodes matched to their Google Shopping
  product, with details, offers and price history.
- **Any market**: `country` and `language` (us, gb, de, fr, ca, au...): local
  stores, prices and currency.

### Why this one

| | This actor | Typical Google Shopping scrapers |
|---|---|---|
| Listing price | **$0.80 / 1,000 products** | $1.50-4.40 / 1,000 |
| Every store's offer | yes, up to 1,000 stores | the first 3-5, or $20 / 1,000 |
| Price history per store | yes, 12 months ($8 / 1,000) | rarely ($10 / 1,000) |
| GTIN / UPC / EAN lookup | yes | some |
| Filters (price, rating, brand, store, chips) | all of them | a few |
| Specs, variants, review topics, AI insights | yes | partly |
| Pay only for what was read | yes: extras are charged only when read | per row |

### Input examples

Search with filters:

```json
{
  "queries": ["air fryer"],
  "country": "gb",
  "maxPrice": 100,
  "minRating": 4,
  "sort": "price_low",
  "maxItems": 50
}
```

Price comparison across every store:

```json
{
  "queries": ["sony wh-1000xm5"],
  "maxStores": 100,
  "includePriceHistory": true,
  "maxItems": 5
}
```

Barcodes:

```json
{
  "gtins": ["009800895007", "045496883386"],
  "maxStores": 20,
  "includePriceHistory": true
}
```

A Google Shopping link (filters included):

```json
{
  "startUrls": [{"url": "https://www.google.com/search?q=running+shoes&udm=28&gl=us"}],
  "maxItems": 100
}
```

### Output

One row per product (`dataType: "product"`):

```json
{
  "dataType": "product",
  "title": "Sony WH-1000XM6 Wireless Noise Canceling Headphones",
  "brand": "Sony",
  "price": "$379.99",
  "price_value": 379.99,
  "currency": "USD",
  "price_was": null,
  "merchant": "BrandsMart USA",
  "rating": 4.66,
  "reviews": 6139,
  "position": 2,
  "image": "https://encrypted-tbn1.gstatic.com/shopping?q=...",
  "shelves": ["Noise-Cancelling Headphones"],
  "source": {"type": "query", "query": "headphones", "country": "us", "language": "en"},
  "details": {
    "description": "...", "specs": [{"name": "Brand", "value": "Sony"}],
    "variants": [{"facet": "Color", "options": ["..."]}], "store_count": 238,
    "price_min": 305.88, "price_max": 459.99, "review_topics": ["..."]
  },
  "offers": [
    {"merchant": "Best Buy", "price": "$378.00", "price_value": 378.0, "currency": "USD",
     "shipping": "Free delivery", "condition": null, "seller_rating": 4.5,
     "url": "https://www.bestbuy.com/...", "badges": ["Most popular"]}
  ],
  "price_history": {
    "typical": "$299 to $459", "typical_low": 299.0, "typical_high": 459.0,
    "stores": [{"store": "Sony", "points": [{"date": "2025-11-09", "price": 449.0}]}],
    "events": [{"date": "2025-11-28", "name": "Black Friday"}]
  },
  "reviews": [{"title": "...", "text": "...", "rating": 5, "date": "2 months ago", "source": "bestbuy.com"}]
}
```

`details`, `offers`, `price_history` and `reviews` are filled when asked for.
A GTIN that Google can't match gets a free row with `dataType: "gtin"`.

### Pricing

Pay per event; platform costs are included.

| What | Price |
|---|---|
| Product (listing data) | $0.80 / 1,000 |
| + product details | $6.00 / 1,000 |
| + every 10 more stores' offers | $3.50 / 1,000 |
| + price history | $8.00 / 1,000 |
| + review text | $0.50 / 1,000 |
| Search start (once per run, when Google is first reached) | $0.03 |

Extras are charged only for products where they were read. A product found
by several searches is charged once.

### Good to know

- Google offers ~200-240 products per query; use several queries or filters
  for more.
- GTIN lookup matches the barcode to the product Google names for it: a
  size or colour variant can come back as its sibling. The match score is in
  `source.match_score`.
- A query Google can't match returns popular products rather than nothing;
  the log notes searches whose results don't contain the query's words.
- Prices are what Google shows at the moment of the run, in the market's
  currency.
- Long store lists and price history take more time: plan ~1 minute per 100
  stores read.

### Use it from your tools

Call it from the Apify API, a schedule, Make, Zapier, n8n or an AI agent via
Apify's MCP server; results export to JSON, CSV or Excel.

# Actor input Schema

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

Products to search for, e.g. "air fryer", "running shoes". Each query reads up to Max products per search (Google offers ~200-240 a query).

## `gtins` (type: `array`):

Barcodes to look up (8, 12, 13 or 14 digits). Each is matched to its Google Shopping product (Google matches by the product's name: a size or colour variant can come back as its sibling); unmatched codes get a free row saying so. Always read with details.

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

Google Shopping search links (google.com/search?...\&udm=28), with their own filters: the query, country, language and filters are taken from the link.

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

Two-letter country code of the Google Shopping market (us, gb, de, fr, ca, au...): its stores, prices and currency.

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

Two-letter language code for the results (en, de, fr...).

## `sort` (type: `string`):

Google's own sort order.

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

Only products at or above this price.

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

Only products at or below this price.

## `minRating` (type: `integer`):

Google's rating filter, whole stars 1-4 (e.g. 4: 4 stars and up). Products rated below it are left out (not charged).

## `onSale` (type: `boolean`):

Only discounted products.

## `brand` (type: `string`):

Only this brand, e.g. "Sony".

## `store` (type: `string`):

Only this store, e.g. "Walmart", "Best Buy".

## `filters` (type: `array`):

Any filter Google shows for the search, by its label: "Wireless", "Noise Canceling Headphones", "Used", "Small business", "Free shipping". Use "Group: Label" when a label is ambiguous. A label Google doesn't offer stops that search with the list of offered ones in the log.

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

Description, specs, variants, images, videos, review summary and topics, the first 3-5 stores' offers (charged as product details).

## `maxStores` (type: `integer`):

Every store's offer, up to this many per product (price, shipping, condition, seller rating, link). 0: only the 3-5 Google shows first. Charged per 10 stores read. Implies details.

## `includePriceHistory` (type: `boolean`):

Google's price chart: each store's daily price over up to 12 months, the typical price range and sale events. Implies details.

## `maxReviews` (type: `integer`):

Review texts per product (title, rating, date, source, text), 100 a page. Implies details.

## `maxProductsPerSearch` (type: `integer`):

Products read per query or link (Google offers ~200-240).

## `maxItems` (type: `integer`):

The run stops after this many products.

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

Google Shopping needs residential IPs; Apify's residential proxy is the default.

## Actor input object example

```json
{
  "queries": [
    "wireless headphones"
  ],
  "country": "us",
  "language": "en",
  "sort": "relevance",
  "onSale": false,
  "includeDetails": false,
  "maxStores": 0,
  "includePriceHistory": false,
  "maxReviews": 0,
  "maxProductsPerSearch": 100,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Products: title, price, store, rating, reviews, brand, image.

## `allFields` (type: `string`):

Every field: details and specs, every store's offer, price history, reviews, the search each row came from.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nextgensda/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"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("nextgensda/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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call nextgensda/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

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