# Google Shopping EAN/GTIN Price Data API (`pricepirate/google-shopping-ean-gtin-price-data-api`) Actor

Real-time Google Shopping price data across 29 countries. Look up any product by EAN/GTIN or product ID and get every seller's price, shipping cost, and total in one call.

- **URL**: https://apify.com/pricepirate/google-shopping-ean-gtin-price-data-api.md
- **Developed by:** [PricePirate](https://apify.com/pricepirate) (community)
- **Categories:** E-commerce, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Google Shopping Price Comparison Data API

Tap into **Google Shopping**, the world's largest price-comparison surface,
through a single clean Actor. Look up a product by **barcode (GTIN/EAN) or
Google Shopping product ID** to get the full list of seller offers Google
shows for it: prices, shipping, totals, item condition and availability — all
in one unified JSON structure, across **29 countries**.

Built by [PricePirate](https://pricepirate.com), a
[UCX Media](https://gaponik.com) product — full developer documentation lives
at [pricepirate.com/docs](https://pricepirate.com/docs/en/solutions/price-data-api).

Perfect for price-comparison sites,
[repricing](https://pricepirate.com/docs/en/solutions/idealo-repricing) and
margin tools, [price monitoring](https://pricepirate.com/docs/en/solutions/price-monitoring)
and [dynamic pricing](https://pricepirate.com/docs/en/solutions/dynamic-pricing)
engines, deal & coupon apps, browser extensions, dropshipping and product
research, and AI shopping assistants targeting markets worldwide.

### ✓ 2 Ways to Look Up Google Shopping Data

Choose whichever identifier you already have:

| Operation | Value format | Returns |
|---|---|---|
| `search-by-gtin` | GTIN / EAN / UPC barcode, 8–14 digits | Product with all seller offers |
| `search-by-id` | Google Shopping product ID | Product with all seller offers |

### ✓ 29-Country Coverage

Query localized pricing across Google Shopping's country sites:

United States (`us`, default), Netherlands (`nl`), Germany (`de`),
France (`fr`), United Kingdom (`uk`), Spain (`es`), Italy (`it`),
Belgium (`be`), Austria (`at`), Switzerland (`ch`), Poland (`pl`),
Sweden (`se`), Denmark (`dk`), Norway (`no`), Finland (`fi`),
Portugal (`pt`), Ireland (`ie`), Czechia (`cz`), Hungary (`hu`),
Romania (`ro`), Greece (`gr`), Slovakia (`sk`), Croatia (`hr`),
Bulgaria (`bg`), Australia (`au`), Canada (`ca`), Brazil (`br`),
India (`in`), Japan (`jp`).

### ✓ Complete Multi-Seller Offer Data

For a barcode or product-ID lookup you get the full competitive landscape for
the matched product:

- **Product:** title, product URL, matched ID, EAN, brand, image
- **Price summary:** lowest total, highest total, average total, total offer
  count — aggregated over each offer's
  [total price](https://pricepirate.com/docs/en/guide/concepts/total-price)
  (price + shipping)
- **Per-seller offers:** seller name, seller URL, price, shipping cost, total
  price, currency, item condition, availability, and ranking position

### ✓ No Scraping Headaches

We handle the hard part — rotating infrastructure and anti-bot evasion — so you
get clean, structured data without managing proxies, headless browsers, or
fighting blocks yourself. No job polling either: start the Actor with your
values and read the finished results straight from the dataset.

### 💻 Input

```json
{
  "operation": "search-by-gtin",
  "values": ["4009803341163", "4014835778306"],
  "country": "us"
}
```

- **`operation`** (required): one of `search-by-gtin`, `search-by-id`. All
  values in a run share the same operation.
- **`values`** (required): 1–25 strings, each one lookup — barcodes or Google
  Shopping product IDs, matching the selected operation. Duplicates and blank
  entries are dropped. Run the Actor multiple times for larger lists.
- **`country`** (optional, default `us`): 2-letter country code — see the list
  above.

### 💻 Output

One dataset item per input value:

```json
{
  "query": "4009803341163",
  "operation": "search-by-gtin",
  "country": "us",
  "status": "found",
  "result": {
    "id": "1234567890123456789",
    "name": "Example Product Name",
    "url": "https://www.google.com/shopping/product/1234567890123456789",
    "ean": "4009803341163",
    "brand": "Example Brand",
    "description": null,
    "image_urls": ["https://encrypted-tbn0.gstatic.com/shopping?q=…"],
    "review_rating": null,
    "review_count": null,
    "categories": null,
    "category_ids": null,
    "price_min": 129.0,
    "price_avg": 142.5,
    "price_max": 159.0,
    "offers_count": 8,
    "offers": [
      {
        "sellerId": "Example Store",
        "shop_name": "Example Store",
        "shop_url": "https://www.example-store.com/product/123",
        "shop_type": null,
        "marketplace_name": null,
        "shop_review_rating": null,
        "shop_review_count": null,
        "position": "0",
        "condition": "new",
        "currency": "USD",
        "price": 125.01,
        "shipping": 3.99,
        "total": 129.0,
        "voucher": false,
        "free_return": null,
        "availability_text": "In stock"
      }
    ],
    "source": "google-shopping",
    "country": "us",
    "fetched_at": "2026-07-27T12:00:03.000Z"
  }
}
```

> **Note:** `price_min`, `price_avg`, and `price_max` are computed over each
> offer's **total** (price + shipping) — the number that actually decides the
> ranking. Fields Google Shopping does not expose (shop ratings, product
> reviews, categories) are `null`.

### 💻 Statuses & Errors

`status` is `found`, `not_found`, or `error`.

**`not_found`** means Google Shopping has no offers for that barcode or
product ID in the selected country.

Error items have `result: null` and carry a stable `errorCode`:

- `blocked` — Google Shopping could not be fetched for this value right now
- `timeout` — the lookup did not finish within the per-query deadline
- `invalid_input` — the value does not match the selected operation
- `internal_error` — an unexpected upstream failure
- `charge_limit_reached` — skipped because the run's maximum charge was hit

Error items are **never charged**.

### 💰 Pricing

You pay **per successful query result**: each query that completes with
`found` or `not_found` is charged once. Failed queries — errors and timeouts —
are always free. A run succeeds if at least one query completes and fails only
when nothing came back (in which case nothing was charged).

**Example:** a batch contains 20 queries; 10 come back `found`, 5 come back
`not_found`, and 5 time out. You are charged for the 15 successful results —
the 5 timeouts are free.

There are no separate Apify platform usage charges — you only pay for
successful requests.

### ⏱ Timing

All values in a run are looked up in parallel, and each result is written to
the dataset the moment its lookup finishes. Most lookups finish within
seconds; previously seen products can return almost instantly from cache. Each
query is given at most **900 seconds** before it is reported as a `timeout`
error (uncharged) — the Actor tries multiple data sources per query to
maximize the final success rate, and a query only gives up after every source
has been exhausted.

If you see many timeouts, try smaller batches and spread requests throughout
the day. Failed or timed-out requests are **never billed**.

### 📚 Documentation & Guides

Full documentation is hosted at **pricepirate.com/docs**:

- [Price Data API — multi-marketplace price & offer data](https://pricepirate.com/docs/en/solutions/price-data-api)
- [Total price — why price + shipping decides the ranking](https://pricepirate.com/docs/en/guide/concepts/total-price)
- [Price monitoring — track competitor prices automatically](https://pricepirate.com/docs/en/solutions/price-monitoring)

### 📬 Contact & Support

For custom solutions or higher limits, reach out via
[pricepirate.com](https://pricepirate.com/en/get-started/?utm_source=apify\&utm_medium=docs\&utm_campaign=support) or contact us directly:
<support@pricepirate.com>.

Need a deeper build — custom pricing automation, data pipelines, or a tailored
e-commerce integration? That's what we do at
[UCX Media](https://gaponik.com), the software studio behind PricePirate.

# Actor input Schema

## `operation` (type: `string`):

Which Google Shopping lookup to run for every value.

## `values` (type: `array`):

One entry per lookup: GTINs/EANs or Google Shopping product IDs — matching the selected operation. Maximum 25 per run.

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

Google Shopping country site to query.

## Actor input object example

```json
{
  "operation": "search-by-gtin",
  "values": [
    "4009803341163"
  ],
  "country": "us"
}
```

# Actor output Schema

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

All lookup results in the default dataset — one item per input value.

# 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 = {
    "values": [
        "4009803341163"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pricepirate/google-shopping-ean-gtin-price-data-api").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 = { "values": ["4009803341163"] }

# Run the Actor and wait for it to finish
run = client.actor("pricepirate/google-shopping-ean-gtin-price-data-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "values": [
    "4009803341163"
  ]
}' |
apify call pricepirate/google-shopping-ean-gtin-price-data-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pricepirate/google-shopping-ean-gtin-price-data-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/yAA6qNOcffCCVJkKg/builds/MXtpZAFp2GQwpTfg5/openapi.json
