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

Google Shopping scraper: collect Google Shopping products by search query with title, price, old price, merchant, rating, review count, delivery and thumbnail. Compare prices across merchants, countries and languages. Export to JSON, CSV or Excel.

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

## Pricing

from $1.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

![banner](https://anyx.solutions/banners/google-shopping-scraper.png)

## Google Shopping Scraper

**Turn Google Shopping searches into clean, structured product data.**

Give this scraper a list of product searches and it returns the products Google Shopping lists for each one: title, price, old price, merchant, rating, review count, delivery and thumbnail. Prices come back as numbers with their currency, so they are ready to compare, chart or load into a database. Pick the country and language to see what shoppers in that market see. It suits price monitoring, competitor and merchant research, and product research.

### ⚡ Quick start

```json
{
  "queries": ["wireless earbuds"],
  "maxItems": 10
}
```

### 🧩 Input

| Field                | Type    | Required | Default                                                     | Description                                                                                                                                                                 |
| -------------------- | ------- | -------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `queries`            | array   | no\*      | —                                                           | Product searches to run on Google Shopping, one entry per query.                                                                                                            |
| `startUrls`          | array   | no       | —                                                           | Google Shopping result pages to scrape directly, e.g. `https://www.google.com/search?q=wireless+earbuds&tbm=shop`. Filters in the address, such as a price range, are kept. |
| `maxItems`           | integer | no       | `10`                                                        | Maximum products per query. One Google Shopping page lists roughly 40 to 50 products.                                                                                       |
| `countryCode`        | string  | no       | `us`                                                        | Two-letter country code that decides which shops, prices and currency are shown, e.g. `us`, `de`.                                                                           |
| `languageCode`       | string  | no       | `en`                                                        | Two-letter language code for titles and delivery texts, e.g. `en`, `de`.                                                                                                    |
| `proxyConfiguration` | object  | no       | `{"useApifyProxy":true,"apifyProxyGroups":["GOOGLE_SERP"]}` | Proxy settings. Google blocks ordinary traffic, so Apify's Google SERP proxy group is the default.                                                                          |

\* Provide either `queries` or `startUrls`.

### 📤 Output

Each product becomes one dataset item, in the order Google lists it, with its `position` starting at 1 for every query. A product that Google repeats in several carousels is returned once. Prices are numbers and `priceText` keeps the price as printed, so `1.299,00 €` and `$1,299.00` both arrive as `1299`. Fields a product card does not show are returned as `null` rather than omitted.

#### Fields

| Field          | Type   | Description                                                                                   |
| -------------- | ------ | --------------------------------------------------------------------------------------------- |
| `position`     | number | Order of the product among the results for this query, starting at 1.                         |
| `productId`    | string | Google's identifier for the product.                                                          |
| `title`        | string | Product title.                                                                                |
| `price`        | number | Current price as a number.                                                                    |
| `currency`     | string | ISO currency code of the price, e.g. `USD` or `EUR`.                                          |
| `priceText`    | string | Current price exactly as shown, e.g. `$17.49` or `31,44 €`.                                   |
| `oldPrice`     | number | Struck-through price before a discount. `null` when the product is not discounted.            |
| `merchant`     | string | Seller shown on the listing.                                                                  |
| `rating`       | number | Average rating out of 5. `null` when the product has no rating.                               |
| `reviewCount`  | number | Number of reviews, as rounded by Google (`30K` becomes `30000`). `null` when there are none.  |
| `delivery`     | string | Delivery offer as shown, e.g. `Free delivery`. `null` when the listing shows none.            |
| `thumbnail`    | string | Product image address. `null` when Google embeds the image in the page instead of linking it. |
| `query`        | string | The search that produced this product.                                                        |
| `countryCode`  | string | Country code the search ran in.                                                               |
| `languageCode` | string | Language code the search ran in.                                                              |
| `searchUrl`    | string | The Google Shopping search the product came from.                                             |
| `scrapedAt`    | string | When the search was run, ISO 8601.                                                            |

<details><summary>Example output</summary>

```json
{
  "position": 2,
  "productId": "9619407142751817602",
  "title": "JLab Go Tones+ True Wireless Earbuds",
  "price": 17.49,
  "currency": "USD",
  "priceText": "$17.49",
  "oldPrice": 27,
  "merchant": "JLab",
  "rating": 4.4,
  "reviewCount": 562,
  "delivery": "Free delivery",
  "thumbnail": null,
  "query": "wireless earbuds",
  "countryCode": "us",
  "languageCode": "en",
  "searchUrl": "https://www.google.com/search?q=wireless+earbuds&tbm=shop&gl=us&hl=en",
  "scrapedAt": "2026-11-21T15:04:12.318Z"
}
```

</details>

### 💡 Use cases

- Monitor the price of a product, or a whole category, across merchants and watch for discounts through `oldPrice`.
- Research competitors and merchants: who sells a product, at what price, with what rating and delivery offer.
- Research a product market: which products Google surfaces for a search, how they are rated and how many reviews they have.
- Compare the same search across countries and languages to see local prices, currencies and sellers.

### ❓ FAQ

- **How many products do I get per query?** One query returns the products on the first Google Shopping results page, roughly 40 to 50. Set `maxItems` lower to take only the top of the list. Deeper pages are not collected.
- **Which countries and languages are supported?** Any Google Shopping country and language. Set `countryCode` and `languageCode`, for example `de` and `de` for Germany. Prices come back in the local currency and `currency` names it.
- **Do I need a proxy?** Yes. Google blocks ordinary traffic, so this scraper uses Apify's Google SERP proxy group by default. Turning the proxy off will block every request.
- **Why are some fields empty?** A field is `null` when the product card does not show it. `oldPrice` is only set for discounted products, `rating` and `reviewCount` only for products with reviews, and `delivery` only where the listing shows a delivery offer. `thumbnail` is only set when Google links the image; Google often embeds it in the page instead.
- **Are review counts exact?** No. Google rounds large counts, so `30K` reviews becomes `30000`.
- **Are sponsored products included?** No. Only the regular product listings are returned.
- **What happens if Google blocks a request?** The scraper retires that session and retries on a fresh one. If every attempt is blocked it fails with a clear error rather than reporting zero products, so a block is never mistaken for "nothing found".

### 🔗 More scrapers by Anyx

- [Google Search Scraper](https://apify.com/anyxsolutions/google-search-scraper)
- [Google Ads Scraper](https://apify.com/anyxsolutions/google-ads-scraper)
- [Walmart Scraper](https://apify.com/anyxsolutions/walmart-scraper)
- [Target Scraper](https://apify.com/anyxsolutions/target-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

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

Product searches to run on Google Shopping, one entry per query, for example "wireless earbuds".

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

Optional Google Shopping result pages to scrape directly, for example https://www.google.com/search?q=wireless+earbuds\&tbm=shop. Filters in the address, such as a price range, are kept.

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

Maximum number of products to return per query. One Google Shopping page lists roughly 40 to 50 products, so a higher number returns everything the page shows.

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

Two-letter country code that decides which shops, prices and currency are shown, for example us or de.

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

Two-letter language code for titles and delivery texts, for example en or de.

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

Apify proxy settings. Google blocks ordinary traffic, so the Google SERP proxy group is used by default and is what makes this Actor work.

## Actor input object example

```json
{
  "queries": [
    "wireless earbuds"
  ],
  "maxItems": 10,
  "countryCode": "us",
  "languageCode": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}
```

# Actor output Schema

## `overview` (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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/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"] }

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/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"
  ]
}' |
apify call anyxsolutions/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

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