# Google Shopping Scraper (`datahamster/google-shopping-scraper`) Actor

Google Shopping scraper: products for many queries and countries in one run with numeric price, currency, old price and discount, store, rating, reviews, delivery, image and product link. Filter by price, store, rating, sale or condition and dedupe across queries.

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

## Pricing

from $1.96 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

Google Shopping results for a list of queries in one or more countries: one row per product and store with the title, the price as a number with its currency, the old price and discount, the store, rating and review count, delivery and returns text, condition, image, Google's product link and the position on the results page.

**Try it:** the prefilled example returns 20 rows in about 9 seconds and costs about $0.052. Results cost $2.45 per 1,000.

Coverage: about 40 products per results page and up to 3 pages per query (Google usually stops after 2, about 80 products). 48 countries are supported and 17 of them were checked live on 2026-11-18 (us, gb, ca, au, de, fr, it, es, nl, be, ch, pl, se, mx, in, jp, br). Pages are read through Apify's own GOOGLE_SERP proxy, one plain request per page, no browser. Google embeds the first photos of a page inline, so `imageUrl` is filled for about half of the products (20 of 43 on a typical page).

**Why this one** (compared with damilo/google-shopping-apify and burbn/google-shopping-scraper, the two most-used Google Shopping actors, checked 2026-11-18):

- **Many queries in many countries in one run.** `queries` x `countries` runs every query in every country, each with its own Google domain, language and currency, and `dedupeAcrossQueries` returns a product at a store once per country. damilo's input takes one `country` per run, burbn's takes one `searchQuery` and one `country`. Measured: 2 queries x 3 countries (us, gb, de) x 2 pages = 12 pages, 494 products read, 31 duplicates removed, in 106 seconds.
- **Numbers instead of text.** `price`, `oldPrice`, `discountPercent`, `rating` and `reviewCount` are numbers and `currency` is an ISO code (`USD`, `GBP`, `EUR`, `JPY`, `PLN`, `BRL`), read correctly from `$1,299.99`, `1.299,00 €`, `1799,00 zł`, `CHF 1'299.00`, `₹1,54,920` or `￥1,963`, and a monthly installment is never mistaken for the price. Both leaders return prices as strings such as `"$24.99"` and `"$348.00"` with no currency field.
- **Filters on those numbers.** `minPrice`, `maxPrice`, `merchants`, `excludeMerchants`, `onSaleOnly`, `minRating` and `condition` drop what you do not want before it is charged, while `position` keeps Google's real place on the page. damilo's input has none of these filters.
- **Lower price:** $2.45 per 1,000 products, against $3.50 at damilo and $5 (paid plans) or $20 (free plan) plus $0.008 per run at burbn.

### What you get

Real rows from a run of the prefilled input (`queries: ["wireless earbuds"]`, United States, 2026-11-18):

| position | title | price | oldPrice | discount | store | rating | reviews | delivery |
|---|---|---|---|---|---|---|---|---|
| 1 | JLab Go Air Pop True Wireless Earbuds | 14.99 USD | | | Target | 4.3 | 33,000 | Free delivery on $35+ |
| 2 | Beats Solo Buds True Wireless Earbuds | 69.99 USD | 80 | 12% | Best Buy | 3.8 | 6,200 | Free delivery by Fri |
| 3 | JBL Vibe Beam 2 Noise Cancelling True Wireless Earbuds | 39.99 USD | 65 | 38% | Target | 4.2 | 1,900 | Free delivery by Tue |
| 6 | Sony WF-C510 Truly Wireless Earbuds | 48.00 USD | 70 | 31% | Best Buy | 4.7 | 5,500 | Free delivery |
| 14 | Earfun Air Pro 4 Anc Earbuds Auracast | 51.19 USD | 90 | 43% | EarFun | 4.9 | 3,200 | Free delivery |
| 15 | Apple AirPods Pro 3 | 179.99 USD | 250 | 28% | Best Buy | 4.6 | 15,000 | Free delivery by Fri |

One row in full:

```json
{
  "query": "wireless earbuds",
  "countryCode": "us",
  "languageCode": "en",
  "page": 1,
  "position": 2,
  "title": "Beats Solo Buds True Wireless Earbuds",
  "price": 69.99,
  "priceText": "$69.99",
  "currency": "USD",
  "monthlyPrice": null,
  "installmentMonths": null,
  "offerType": "purchase",
  "oldPrice": 80,
  "oldPriceText": "$80",
  "oldPriceType": "was",
  "discountPercent": 12,
  "onSale": true,
  "badge": "12% OFF",
  "condition": "new",
  "conditionText": null,
  "merchant": "Best Buy",
  "moreOffers": true,
  "delivery": "Free delivery by Fri",
  "freeDelivery": true,
  "returns": null,
  "rating": 3.8,
  "reviewCount": 6200,
  "reviewCountText": "6.2K",
  "imageUrl": null,
  "catalogId": "10506635979914339716",
  "productDocId": "6916146097244474512",
  "offerDocId": "14423844132016158567",
  "productUrl": "https://www.google.com/search?ibp=oshop&q=Beats+Solo+Buds+True+Wireless+Earbuds&prds=catalogid%3A10506635979914339716%2Cgpcid%3A549048356659243400%2CheadlineOfferDocid%3A14423844132016158567%2CimageDocid%3A1001654693964313954%2CproductDocid%3A6916146097244474512&hl=en&gl=us&udm=28",
  "searchUrl": "https://www.google.com/search?q=wireless+earbuds&udm=28&hl=en&gl=us&uule=w+CAIQICINVW5pdGVkIFN0YXRlcw"
}
```

- `position` is the place on Google's page across pages (41 is the first product of page 2), counted before your filters.
- `oldPriceType` is `was` for a crossed-out price and `typical` for Google's "Usually $250" label. `discountPercent` is computed from the two prices the way Google rounds it; `badge` is Google's own label ("31% OFF", "LOW PRICE", "SALE").
- `offerType` is `purchase`, `installment` or `rental`. Some stores list only a monthly rate ("80,97 zł/miesiąc x 30", "CHF 34.26/Monat x 36"): then `price` is null, `monthlyPrice` holds the rate and `installmentMonths` the number of months. Pay-later stores ("Minirate", "CHF 46.00 jetzt") are `installment` and rent-to-own stores (Rent-A-Center) are `rental`, both with `price` null because the amount shown is not the purchase price. `priceText` always keeps Google's text.
- `condition` is `new`, `used` or `refurbished` from Google's label (`conditionText` keeps the original, e.g. "Pre-owned", "Erneuert").
- On peer-to-peer marketplaces only the platform is kept as `merchant` ("eBay", "Mercari"), never the seller's user name, and Poshmark's "| <name>'s Closet" is cut from titles.
- `moreOffers: true` means Google lists more stores for the product; `merchant` is the store Google shows on the card. The same product can come back once per store.
- `reviewCount` is Google's figure, which it rounds above a thousand ("5.5K", "2,1 tn", "1,2 tys."); `reviewCountText` keeps the original.
- `productUrl` opens Google's product page for the offer (all stores, specs, reviews).

### Use cases

- **Price research across markets.** One run gives the same product's prices in the US, UK and Germany, as numbers in each local currency.
- **Competitor and reseller checks.** `merchants: ["best buy", "walmart"]` shows only those stores, `excludeMerchants: ["ebay"]` drops marketplaces.
- **Deal lists.** `onSaleOnly: true` with `minRating: 4.5` returns discounted, well-rated products with the old price and discount.
- **Catalog and feed enrichment.** Titles, prices, stores, ratings and Google's catalog ids for a list of product names.

### Input

| Field | Meaning | Default |
|---|---|---|
| `queries` | Google Shopping searches, one per line | `wireless earbuds` |
| `countries` | One or more of 48 countries; each query runs in each country | `us` |
| `languageCode` | Interface language for all countries (`hl`), e.g. `en`; empty = each country's own | empty |
| `maxPagesPerQuery` | Results pages per query and country, about 40 products each, 1 to 3 | `1` |
| `minPrice`, `maxPrice` | Price range in the country's currency; installment-only offers (no full price) are dropped when set | empty |
| `merchants`, `excludeMerchants` | Keep only, or drop, stores whose name contains these words | empty |
| `onSaleOnly` | Only offers with an old price | `false` |
| `minRating` | Only products rated at least this (0-5) | empty |
| `condition` | `any`, `new`, `used` or `refurbished` | `any` |
| `dedupeAcrossQueries` | A product at a store is returned once per country | `true` |
| `strictQueryMatch` | In English-language countries, drop a page where no product title contains a word of the query (Google shows unrelated products when it cannot match a query); other countries are never filtered this way | `true` |
| `saveHtmlToKeyValueStore` | Store each results page's HTML in the run's key-value store | `false` |
| `maxItems` | Stop after this many products | `100` |

### Pricing

| Event | Price |
|---|---|
| result | $0.00245 per product ($2.45 per 1,000) |

Apify Store discounts: SILVER -10%, GOLD and higher -20%.

Apify platform usage is billed by Apify on top. Almost all of it is the GOOGLE_SERP proxy, about $0.002 per results page of about 40 products; compute is a few hundredths of a cent per page. Filtered-out products, duplicates and walled pages are not charged.

**Found it useful?** A short review on the Store page helps other people find this actor. If a query misbehaves, open an issue on the actor page.

### Related actors

- [Google Search Results Scraper](https://apify.com/datahamster/google-search-results-scraper) for the organic results and ads of the same keywords.
- [Amazon Search Scraper](https://apify.com/datahamster/amazon-search-scraper) for Amazon's own results and prices.
- [Amazon Price Tracker](https://apify.com/datahamster/amazon-product-monitor) to watch the price and stock of known Amazon products.
- [Walmart Product Scraper & Price Monitor](https://apify.com/datahamster/walmart-product-monitor) for Walmart products by URL.

### Limits

- The GOOGLE_SERP proxy sometimes answers a country's Google with another market (on 2026-11-18 google.ca once came back in Korean won and google.co.in in euros). A page where most prices carry another currency is fetched once more another way. If it is still wrong, rows in another currency are dropped and not charged (`SHOPPING_STATS.wrongMarketDropped`), `marketMismatch` names the search, and a page with nothing left counts as a wall.
- In countries whose language is not English, a query Google cannot match returns unrelated products that are kept and charged, because titles there do not have to contain the query word. Check `unrelatedPages` only for English-language countries.
- Google shows a different mix of products from request to request: two runs of the same query minutes apart shared between 0 and 35 of about 45 offers on 2026-11-18. That is why there is no monitor mode; schedule a scrape and compare by `catalogId` and `merchant` if you need history.
- `imageUrl` is null when Google embedded the photo in the page instead of linking it (usually the first 20 products of a page).
- The store's own product URL is not on the results page; `productUrl` is Google's product page, which lists the stores.
- `delivery` and `returns` are filled only when the card shows them; ads ("Sponsored products") are not included.
- Google stops serving pages after about 80 products for most queries; the run ends at the first page without new products.
- Each page takes about 5 to 15 seconds through the proxy; pages are read one after another.

### FAQ

**Why did a query return nothing?** The `RUN_SUMMARY` record in the run's key-value store has `emptyReason`, and `SHOPPING_STATS` lists `walledSearches` (with the reason), `emptySearches`, `unrelatedPages` (Google had no match and showed unrelated products), `filteredOut` and `duplicatesRemoved`. A wall ends as `blocked` or `rate_limited`, never as `no_matches`.

**Which currency is `price` in?** The currency Google shows for that country, as an ISO code in `currency`. Prices are not converted.

**Can I get personal data?** No. Rows hold what a Shopping results page shows about products and stores.

### Changelog

- 0.1: initial release with installment and rental offers marked (`offerType`, `monthlyPrice`, `installmentMonths`), many queries x countries per run, numeric prices, old price and discount, store, rating, reviews, delivery, returns, condition, image, product link, price/store/rating/sale/condition filters and dedupe across queries.

# Actor input Schema

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

One Google Shopping search per line, e.g. "wireless earbuds", "standing desk". Every query runs in every country below. Repeated queries run once.

## `countries` (type: `array`):

Google Shopping country, one or more: each country uses its own Google domain, language and currency. Each query runs once per country. Example: us, gb, de.

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

Optional Google interface language (hl) for every country, e.g. en, de, pt-BR. Empty = each country's own language (de for Germany, ja for Japan).

## `maxPagesPerQuery` (type: `integer`):

Results pages per query and country, about 40 products each. Google usually serves 2 pages (about 80 products); the run stops at the last one. Example: 2.

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

Optional: keep only products priced at least this much, in the country's currency. Example: 20.

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

Optional: keep only products priced at most this much, in the country's currency. Example: 100.

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

Keep only offers from stores whose name contains one of these words (case-insensitive), e.g. "best buy", "walmart", "amazon". Empty = all stores.

## `excludeMerchants` (type: `array`):

Drop offers from stores whose name contains one of these words, e.g. "ebay" or "walmart -" (Walmart marketplace sellers).

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

true = keep only offers with an old price above the current one (oldPrice and discountPercent filled).

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

Optional: keep only products rated at least this (0-5). Unrated products are dropped. Example: 4.5.

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

Keep only offers in this condition as Google labels it.

## `dedupeAcrossQueries` (type: `boolean`):

true = the same product at the same store is returned once per country, for the first query that found it; duplicatesRemoved in the SHOPPING_STATS record counts the rest.

## `strictQueryMatch` (type: `boolean`):

true = when Google cannot match a query it shows unrelated products; in English-language countries (us, gb, ca, au, nz, ie, in, sg, ph, za, my, ae with an English interface) a page where no product title contains a word of the query is dropped instead of charged. Elsewhere titles use the local word ("laptop" in Brazil is "Notebook"), so pages are always kept.

## `saveHtmlToKeyValueStore` (type: `boolean`):

true = store the raw HTML of every results page in the run's key-value store (for debugging).

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

Stop after this many products (one charge each). Example: 200.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "countries": [
    "us"
  ],
  "maxPagesPerQuery": 1,
  "merchants": [],
  "excludeMerchants": [],
  "onSaleOnly": false,
  "condition": "any",
  "dedupeAcrossQueries": true,
  "strictQueryMatch": true,
  "saveHtmlToKeyValueStore": false,
  "maxItems": 20
}
```

# Actor output Schema

## `results` (type: `string`):

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 earbuds"
    ],
    "countries": [
        "us"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/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 earbuds"],
    "countries": ["us"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/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 earbuds"
  ],
  "countries": [
    "us"
  ],
  "maxItems": 20
}' |
apify call datahamster/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

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