# Google Shopping Scraper — Products, Prices & Merchant Offers (`trakk/google-shopping-scraper`) Actor

Search Google Shopping products, enrich descriptions and specifications, and compare merchant prices, direct store links, shipping and returns. Three simple modes with streaming exports.

- **URL**: https://apify.com/trakk/google-shopping-scraper.md
- **Developed by:** [Kelopr_bk](https://apify.com/trakk) (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

from $1.00 / 1,000 shopping search results

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 — Products, Prices & Merchant Offers

#### 🛍️ Find products. Understand the details. Compare the stores.

Turn Google Shopping searches and product links into structured research data. Collect product prices and ratings, enrich descriptions and specifications, or follow the merchant offers Google publishes for a product — with **three clear modes and one global result limit**.

Results appear in the dataset as they are ready. You do not need to wait for the entire run to finish before inspecting or exporting them. No Google account, cookies, or external service key is required from the user.

| Your task | Choose this mode | One result means |
|---|---|---|
| Discover products and monitor search listings | **Search** | One unique product listing or offer from a Shopping search |
| Build a richer product catalog | **Products** | One unique enriched Google product profile |
| Compare store prices, delivery and returns | **Merchant offers** | One unique store offer for a product |

### 🚀 Start with a small search

1. Choose **Search**.
2. Add a product phrase, such as `Sony WH-1000XM5` or `espresso machine`.
3. Select the Shopping market and your maximum number of results.
4. Run the Actor and inspect **Shopping results** in the Output tab.

```json
{
  "mode": "search",
  "targets": ["Sony WH-1000XM5"],
  "maxResults": 10,
  "country": "us",
  "language": "auto"
}
```

For a richer catalog, change `mode` to `products`. For individual store prices, change it to `offers`. The target list and the market stay in the same place, so switching tasks does not require learning a different input form.

### 🎛️ Three modes, with a purpose

#### Search · discovery and price snapshots

Collect the Shopping cards Google returns for your phrase or search URL. The output includes the product title, published price and currency, merchant name, image, rating, review count, sale information, visible delivery information, position and native product identifiers.

When Google's embedded metadata publishes an exact review count, the Actor keeps that count rather than converting a rounded label such as `15K` into a falsely exact `15000`. The original display label is preserved separately. Brand and actual product image URLs are also extracted when available.

This is the economical option for product discovery, search visibility research and recurring price snapshots. It does not make a separate detailed product lookup for every search card.

Search follows Google's published **More results** link when one is available. If Google does not provide a continuation, the Actor saves the available cards and reports `pagination_unavailable`; the result cap does not imply that additional pages exist.

#### Products · descriptions, photos and specifications

Start from search phrases, Google Shopping product links or Google catalog IDs. The Actor enriches each selected unique product with its published Google product view, including:

- Product description, brand and image gallery.
- Specification names and values, including repeated attributes.
- Color, model, GTIN and manufacturer part number **when explicitly published**.
- Current merchant offer, direct store product link, delivery, returns and availability when provided.
- The offers included in that product view, exported in `offersJson`.
- The minimum and maximum item prices among collected offers in the same currency, with a clear comparison scope.

One enriched product profile is one billed result. The store offers embedded inside its `offersJson` are included in that profile's price; they are not separate Merchant offers events. This mode captures the offers in the product view, rather than walking every additional merchant page.

#### Merchant offers · one row per store offer

Use this mode when store-level comparison matters more than a compact product catalog. The Actor saves each published merchant offer as a separate row, including the direct merchant product URL when Google supplies it, item price, currency, delivery, shipping charge, returns and stock text.

It follows Google's available merchant continuation cursor rather than estimating the next page from the number of cards visible in the interface. Embedded offer records are collected even when the initial HTML shows fewer cards.

The result limit counts **merchant offers across the entire run**. For example, `maxResults: 50` can contain offers for one product or several products, depending on what the source publishes. Google's headline offer total can cover a broader set of variants than the current view; it is not a guarantee that every counted offer can be retrieved in that scope.

Products and Merchant offers prioritize catalog-backed detail pages, which usually publish richer specifications and store comparisons. Single-store listings remain available as fallback candidates after the available catalog pages. Original search positions are preserved, and completed records appear as they are ready.

### 🧩 Simple input

| Input | Meaning |
|---|---|
| `mode` | `search`, `products`, or `offers` |
| `targets` | One search phrase or supported Google URL per entry; Products and Merchant offers also accept Google catalog IDs |
| `maxResults` | Global maximum of successfully saved unique rows, from 1 to 10,000 |
| `country` | Shopping market: `us`, `gb`, `de`, `fr`, `ca`, or `au` |
| `language` | `auto`, `en`, `de`, `fr`, `es`, or `ru` |

#### Accepted targets

**Search phrases** work in all modes. A phrase stays one phrase, even if it contains commas. Put separate searches into separate list entries.

**Google search links** work in all modes. Native search filters present in a submitted Google search URL are retained where supported. The selected country and language control the requested market and interface language.

**Google Shopping product links and catalog IDs** work in Products and Merchant offers. Links may use the classic `/shopping/product/…` form or Google's modern product-view format. A Google catalog ID is not an ASIN, merchant SKU or barcode. Short numeric phrases are searched as text; they are not silently treated as Google catalog IDs.

Merchant website URLs are not product targets. Use the Google product link or search for the product instead.

If a long mixed-letter-and-number identifier has no verifiable match in Google's returned cards, the Actor skips the general recommendations and reports an input warning. Use descriptive product keywords or a supported Google catalog ID to make the intended product clear. Ordinary product phrases and numeric barcode searches are unaffected by this safeguard.

```json
{
  "mode": "offers",
  "targets": ["Sony WH-1000XM5", "Bose QuietComfort Ultra"],
  "maxResults": 30,
  "country": "gb",
  "language": "auto"
}
```

#### 🌍 Markets and currencies

| Market | `country` | Automatic language | Usual local currency |
|---|---|---|---|
| United States | `us` | English | USD |
| United Kingdom | `gb` | English | GBP |
| Germany | `de` | German | EUR |
| France | `fr` | French | EUR |
| Canada | `ca` | English | CAD |
| Australia | `au` | English | AUD |

The country is a Shopping market selection, not a currency conversion tool. Published currency metadata takes priority. Where a search card only displays `$`, currency normalization uses the routed market and records that basis in `currencySource`. The Actor does not relabel a foreign-currency price as local currency or convert it using an invented exchange rate.

Selecting an interface language does not promise translated merchant descriptions, titles or specifications. Those can remain in the language supplied by the merchant.

### 📦 Output fields

Different modes expose different source depths. A field remains empty when Google does not publish it for that product or view. Empty source values are never filled with invented contact details, ratings, delivery charges or product specifications.

#### Identity and provenance

| Fields | Description |
|---|---|
| `recordType`, `mode` | Listing, enriched profile or merchant offer, and the selected collection mode |
| `title`, `productId` | Published product title and primary Google identifier |
| `catalogId`, `googleProductId`, `offerId`, `groupId`, `imageId` | Native Google identifiers when present; large IDs remain strings |
| `requestedCatalogId`, `identityStatus` | Requested identity and verification result; a changed catalog ID is accepted only with an exact published offer or product-ID match |
| `productUrl`, `sourceUrl` | Google product view and the exact collected source page |
| `query`, `inputTarget`, `inputIndex` | Search phrase and original input association |
| `requestedCountry`, `sourceCountry`, `sourceCountryType`, `marketStatus`, `language` | Requested locale and published merchant-market metadata, with an explicit verification status |
| `position`, `page`, `productPageNumber`, `offerPosition` | Search or offer-page context; positions are not organic web-search rankings |
| `scrapedAt` | Collection timestamp in UTC |

#### Prices, discounts and delivery

| Fields | Description |
|---|---|
| `price`, `priceNumeric`, `currency`, `currencySource` | Original price display, normalized amount and currency provenance |
| `priceType` | Recognized item price, recurring/installment price or per-unit price; these are not silently compared as equivalent totals |
| `originalPrice`, `originalPriceNumeric` | Published crossed-out price, when available |
| `discountPercent`, `discountText` | Published sale badge or offer text |
| `calculatedDiscountPercent` | Separate calculation from the current and original prices; rounding can differ from the badge |
| `onSale` | Positive sale evidence; missing evidence is not a claim that no sale exists |
| `delivery`, `shippingPriceText`, `shippingFee`, `shippingCurrency` | Published delivery and shipping data |
| `shippingCostKnown`, `priceWithShipping`, `totalPriceStatus` | Whether a compatible shipping charge is known and can be added to the item price |
| `taxInfo`, `taxIncluded`, `totalPriceScope` | Published tax wording and the limits of the calculated total |
| `returnInfo`, `returnDays`, `freeReturns` | Published return policy and explicit normalized values |
| `availabilityText`, `availability` | Original stock text and recognized stock status |
| `condition`, `conditionText` | Explicitly recognizable new, used or refurbished condition; unknown codes are not guessed |

**A missing shipping fee is not free shipping.** `priceWithShipping` is populated only when the item and shipping amounts are known and their currencies are compatible. It does not include unquantified tax, membership benefits, location-specific charges or checkout adjustments.

#### Product research

| Fields | Description |
|---|---|
| `brand`, `color`, `model`, `gtin`, `mpn` | Explicit product attributes when published |
| `productDetails`, `descriptionSource` | Published product description and its source |
| `imageUrl`, `photoUrls`, `photoCount` | Actual product image and gallery URLs, without one-pixel placeholders |
| `specificationNames`, `specificationValues`, `specificationsJson` | Ordered specification pairs, with a JSON representation for repeated attributes |
| `rating`, `ratingPrecise` | Displayed rating and a more precise published metadata value when present |
| `reviewCount`, `reviewCountText` | Exact available count alongside the original display text |
| `reviewCountIsApproximate`, `reviewCountSource` | Whether the count is rounded and where it came from |
| `isSponsored`, `sponsoredStatus` | Positive sponsored-label evidence; an unmarked card is not certified as organic |

This Actor collects product ratings and counts. It does **not** claim to collect individual review text. A product rating is not substituted with a merchant rating or the rating of a recommended item.

#### Store offers and comparison

| Fields | Description |
|---|---|
| `merchant`, `merchantId`, `merchantProductTitle` | Published store identity and its product title |
| `merchantUrl`, `merchantDomain`, `merchantUrlStatus` | Direct product link and status when Google publishes the destination |
| `merchantTrackingUrl` | Original Google tracking link, separately preserved when available |
| `offersJson`, `offersInProductView` | Offers collected within a Products-mode view |
| `offersReportedByGoogle`, `hasMultipleOffers` | Google's reported headline count and multiple-offer evidence |
| `offersCoverageStatus` | Whether the current product view advertises more offer pages |
| `collectedOfferCount`, `collectedOfferPriceMin`, `collectedOfferPriceMax` | Same-currency offers and item-price range in the collected view |
| `collectedOfferPriceSpreadPercent`, `comparisonScope` | Price spread and the exact scope of the comparison |

These comparisons describe the **collected Google view**. Prices can belong to different colors, conditions or purchasing terms. They are not a claim to find the cheapest identical item on the entire internet.

#### Compatibility fields

For easier migration, useful alternative field names are included alongside canonical fields: `productName`, `product_title`, `product_id`, `productLink`, `product_page_url`, `link`, `productImage`, `product_photos`, `merchantName`, `source`, `store_name`, `ratingCount`, `reviewsCount`, `product_num_reviews`, `reviewsScore`, `product_rating`, `withoutDiscountPrice`, `original_price`, `discount_percent`, `on_sale`, `shipping`, `deliveryInfo`, `positionOnSearchPage`, `searchKeyword`, `has_multiple_offers`, and `type`.

Use canonical fields for new integrations. Compatibility aliases mirror the same values and do not trigger additional lookups or charges.

### 🔎 Coverage you can inspect

`fieldCoverageStatus` and `missingCoreFields` help distinguish a valid source-backed record with unpublished values from a fully populated core record. Detailed product identity and source-market checks prevent a different returned product or market from being quietly sold as the requested profile.

The run's key-value store contains **`OUTPUT`**, a collection summary with per-target saved counts, source page counts, errors, warnings and a stop reason. Source errors are kept there rather than inserted into the product dataset as fake results.

Common stop reasons include:

- `result_limit`: the requested global number of saved rows was reached.
- `charge_limit`: the remaining run budget cannot pay for another result.
- `source_scope_end` or `no_published_next_page`: no further available page was found within the collected scope.
- `search_page_limit` or `offer_page_limit`: an internal page safety limit was reached for that target.
- `source_unavailable`: Google did not provide a usable response after bounded attempts.
- `source_budget`: further source work could not be funded by the run's earned fees under the operational cost model.

The Actor does not keep retrying empty or blocked searches indefinitely. A broad query, restrictive Google search URL, unavailable product or hidden source value can legitimately produce fewer rows than `maxResults`.

### 💳 Pricing

| Event | Price | What is billed |
|---|---|---|
| Search result | **$1.00 / 1,000** | One successfully saved unique Shopping listing |
| Enriched product profile | **$5.50 / 1,000** | One successfully saved unique detailed product |
| Merchant offer | **$4.00 / 1,000** | One successfully saved unique store offer |
| Actor start | **$0.01 / started GB** | **$0.02** at the default 2 GB memory allocation; a minimum of one GB unit applies |

**Platform usage is included.** The selected mode determines the result event; collecting a profile does not also bill a Search result for its discovery card. Descriptions, specifications and the embedded first-view offers are included in the product-profile event.

Use the default **2 GB memory** allocation for enriched Products batches. Search and Merchant offers also support lower allocations, and Products remains compatible with smaller allocations through its standard collection path. Runs outside the supported 256–2048 MB range stop before source collection, with a correction message. Apify's automatic start event follows the allocated number of started gigabytes. The total start price is **$0.02** at the recommended default, or **$0.01** at 1 GB.

Errors, duplicate rows and failed product enrichments are not charged as result events. The disclosed start event still applies to a started run, including a run whose search yields no usable results. A configured minimum run spending limit is a budget setting, not a separate minimum invoice.

Examples at these rates, including one start:

- 100 Search listings: **$0.12**.
- 100 enriched Products: **$0.57**.
- 100 Merchant offers: **$0.42**.

Your run's maximum charge can stop collection before the result cap. Set a budget that covers the desired mode and count. The Actor stops scheduling source work when its result-event charge limit is reached.

### 📊 Inspect and export

The Output tab has focused views for **Shopping results**, **Product details**, **Merchant offers** and **Source coverage**. The underlying dataset retains all collected fields. Export it as JSON, CSV, Excel or another format supported by Apify.

Nested specifications and embedded offers are preserved as JSON strings, while commonly used values are exposed as flat columns. This keeps spreadsheet exports practical without discarding repeated attributes or the store-offer context.

### 🔌 API usage

Start the Actor asynchronously:

```bash
curl -X POST "https://api.apify.com/v2/acts/trakk~google-shopping-scraper/runs" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"products","targets":["Sony WH-1000XM5"],"maxResults":5,"country":"us"}'
```

Use the returned run's `defaultDatasetId` to read results while the run is active:

```bash
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?format=json&clean=true" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Read `OUTPUT` in the returned `defaultKeyValueStoreId` after completion for the final counts and coverage summary. Keep API tokens in your application's secret storage, rather than in target URLs or public input examples.

### ✅ Practical collection notes

Google Shopping is a live marketplace view. Prices, stores, stock, galleries and available variants can change between runs. Results can also depend on the selected market, language and Google's current presentation.

Exact review counts, direct merchant URLs, GTINs, return policies and descriptions are conditional source fields. The Actor preserves the values it can verify; it does not invent missing fields or broaden a selected product variant merely to fill a result limit.

For reliable comparison, keep the same market and query, check product and offer identifiers, inspect condition and shipping, and retain the collection timestamp. Use small initial runs to confirm that the returned scope matches your research before increasing the cap.

# Actor input Schema

## `mode` (type: `string`):

Search saves product listings. Products enriches unique products with their full published Google product view. Merchant offers saves one row per published store offer, following available offer pages.

## `targets` (type: `array`):

One product search phrase per entry. Products and Merchant offers also accept Google Shopping product links or Google catalog IDs. Search accepts phrases and Google search links. Merchant website links and ASINs are not Google product IDs.

## `maxResults` (type: `integer`):

A single global cap on successfully saved unique rows, after deduplication. In Merchant offers, a result is a store offer, not a product. The cap is a maximum, not a promise that Google has that many matches.

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

Routes searches and product views to this Google Shopping market. Currency is taken from published metadata or the displayed currency; bare dollar symbols are marked as market-based normalization.

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

Requests this Google interface language. A merchant title or description may remain in its original language. Automatic uses English, German or French for the selected market.

## Actor input object example

```json
{
  "mode": "search",
  "targets": [
    "Sony WH-1000XM5"
  ],
  "maxResults": 5,
  "country": "us",
  "language": "auto"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `merchants` (type: `string`):

No description

## `quality` (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 = {
    "targets": [
        "Sony WH-1000XM5"
    ],
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("trakk/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 = {
    "targets": ["Sony WH-1000XM5"],
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("trakk/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 '{
  "targets": [
    "Sony WH-1000XM5"
  ],
  "maxResults": 5
}' |
apify call trakk/google-shopping-scraper --silent --output-dataset

```

## MCP server setup

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