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

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

## Pricing

Pay per event

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, Ratings & Deals

Extract product results from **Google Shopping** for any keyword, in 40+ countries. For every product you get the title, brand, current price, original price and discount, store, delivery and returns terms, condition, deal badge, rating, review count, image and Google's product IDs.

Built for **reliability**: it fetches fully rendered Google Shopping pages over plain HTTP (no browser) through Google-specialised proxies. Every page is checked for the right country before it is used, and failed pages are retried automatically, so scheduled price-monitoring runs keep succeeding.

### What you can do with it

- **Price monitoring:** track what shoppers see for your products and your competitors' products, every day
- **Competitor and assortment research:** see which stores and brands win a keyword, and at what price
- **Deal hunting:** find discounted products, price drops and "on sale" items by category
- **Market and pricing analysis:** price distributions, brand share and rating levels per keyword and country
- **Product data enrichment:** titles, brands, images, ratings and review counts for catalogues and comparison sites

### Features

- 🔎 **Any keyword** Google Shopping understands: `wireless earbuds`, `standing desk`, `Nike Pegasus 41`
- 🌍 **40+ countries with correct localisation:** each country's own Google domain, local stores, prices and currency. Pages rendered for the wrong country are detected and re-fetched. Optional **city/region** targeting
- 💲 **Prices:** current price, original ("was" or typical) price, discount %, currency and the raw price text
- 🏬 **Stores:** the store shown on the card, plus a flag when more stores sell the same product
- 🚚 **Delivery and returns** text, **condition** (used, refurbished), and **deal badges** such as "30% OFF" or "PRICE DROP"
- ⭐ **Ratings:** exact average rating and review count
- 🧹 **Sort and filters:** relevance, price low→high or high→low, rating; min/max price, new or used, on sale only, minimum rating
- 📄 **Pagination:** up to several hundred products per keyword, deduplicated
- ⚡ **Fast and light:** about 40 products per request, no browser

### Input example

```json
{
  "queries": ["wireless earbuds", "standing desk"],
  "country": "us",
  "language": "en",
  "maxProductsPerQuery": 200,
  "sortBy": "price_low",
  "minPrice": 20,
  "maxPrice": 150,
  "condition": "new"
}
```

**Local results:** set `location` to a Google canonical location name, e.g. `"Austin,Texas,United States"`, to see what shoppers in that city see.

### Output example

```json
{
  "title": "KitchenAid Burr Coffee Grinder",
  "brand": "KitchenAid",
  "price": 139.99,
  "priceText": "$139.99",
  "originalPrice": 200,
  "originalPriceText": "$200",
  "discountPercent": 30,
  "currency": "USD",
  "merchant": "Best Buy",
  "hasMoreSellers": true,
  "condition": null,
  "delivery": "Free delivery",
  "returns": null,
  "badge": "30% OFF",
  "rating": 4.56,
  "reviewCount": 1028,
  "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcS_Hw6Zyen-cDb7S6808RSKWUBq_...",
  "productId": "7131897865349837099",
  "catalogId": "14165871825397443527",
  "groupId": "634840552502701484",
  "offerId": "2272791054264500703",
  "merchantId": "576462848190689013",
  "googleShoppingUrl": "https://www.google.com/search?udm=28&q=KitchenAid+Burr+Coffee+Grinder&hl=en&gl=us",
  "position": 1,
  "page": 1,
  "query": "coffee grinder",
  "country": "us",
  "language": "en",
  "scrapedAt": "2026-09-28T12:43:22+00:00"
}
```

Export results as JSON, CSV, Excel or HTML, or pull them via the Apify API, webhooks, Make, Zapier, n8n or MCP.

### Pricing

Pay only for what you get: a small fee per run start and a fee **per product**. Proxy costs are included. Use `maxProductsPerQuery` and `maxItems` to cap your spend.

### Tips

- **More results:** Google returns a few hundred products per keyword. Use more specific keywords, or sort and price filters, to reach different products.
- **Text fields follow the language:** `delivery`, `returns`, `condition` and `badge` are shown in the `language` you choose (e.g. German with `"language": "de"`). Numeric fields (price, rating, review count) are always numbers.
- **`hasMoreSellers`** means Google lists other stores for the same product; `merchant` is the store shown on the result card.

### FAQ

**How fresh are prices?** Every run fetches live results from Google Shopping at run time.

**Does it return every store's price for a product?** No, per-product store comparison is out of scope for this Actor. It returns the store and price shown on each result card, flags products that more stores sell (`hasMoreSellers`), and includes Google's product, group and offer IDs so you can match products across runs.

**Why is `rating` empty for some products?** Google shows no reviews for them. Set `minRating` to keep only rated products.

**Is scraping Google Shopping legal?** This Actor collects only publicly visible product listings and prices. It uses no logins and collects no personal data. You are responsible for using the data in line with applicable laws and the website's terms.

**Something broke?** Open an issue on the Issues tab. We monitor the Actor daily and usually respond within 24 hours.

# Actor input Schema

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

What you would type into Google Shopping, e.g. "wireless earbuds", "standing desk", "Nike Pegasus 41". Each query is scraped separately.

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

Google Shopping country. Results, stores, prices and currency are those a shopper in this country sees.

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

Google interface language (hl), e.g. en, de, fr, es, ja. Affects labels such as delivery and returns text.

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

Narrow results to a location inside the country, using Google's canonical name, e.g. "Austin,Texas,United States" or "Munich,Bavaria,Germany". Leave empty for country-wide results.

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

Stop each query after this many products (0 = all Google returns, usually several hundred). Each results page adds about 40 products.

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

Stop after this many products across all queries (0 = no limit).

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

Result order, as in Google Shopping's Sort by menu.

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

In the country's currency. Products below it are dropped.

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

In the country's currency. Products above it are dropped.

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

Restrict to new or used products, like Google Shopping's condition filter.

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

Only products Google marks as on sale.

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

Drop products rated below this (products without ratings are dropped when set).

## `maxConcurrency` (type: `integer`):

Queries scraped in parallel.

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

Google Shopping pages are fetched through Apify's Google SERP proxy, which is included in the price. Keep the default unless you know what you are doing.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "country": "us",
  "language": "en",
  "maxProductsPerQuery": 100,
  "maxItems": 0,
  "sortBy": "relevance",
  "condition": "any",
  "onSaleOnly": false,
  "minRating": "",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}
```

# Actor output Schema

## `results` (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 earbuds"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "GOOGLE_SERP"
        ]
    }
};

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

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

```

## MCP server setup

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