# Google Shopping API

> Google Shopping returns product offers, prices, ratings, and delivery details as a workflow and API.

Google Shopping’s Search products method returns store offers with prices, ratings, and delivery details; it requires a product query. Google Shopping’s Compare prices method compares store offers, prices, shipping, and ratings; it requires a product name.

- Page: https://fous.com/tools/google-shopping
- Handle: `@google-shopping`
- Category: [Commerce](https://fous.com/tools/category/commerce)
- Source website: https://google.com/shopping
- Last verified: Sep 28, 2026

## Methods

### Compare prices

Operation `compare_prices`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Compare offers for a product on Google Shopping, including displayed shipping and store ratings. Totals are only available when shipping is shown; typical range may be unavailable.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `country` | string | no | `"United States"` | Country name or two-letter code, for example United States or US. |
| `product` | string | yes | `"Apple AirPods Pro 2"` | Product name to compare, for example Apple AirPods Pro 2. |
| `condition` | string | no | `"new"` | Offer condition, for example new. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "product"
  ],
  "properties": {
    "country": {
      "type": "string",
      "default": "United States",
      "description": "Country name or two-letter code, for example United States or US.",
      "examples": [
        "United States"
      ]
    },
    "product": {
      "type": "string",
      "description": "Product name to compare, for example Apple AirPods Pro 2.",
      "examples": [
        "Apple AirPods Pro 2",
        "Sony WH-1000XM5"
      ]
    },
    "condition": {
      "enum": [
        "any",
        "new",
        "used",
        "refurbished"
      ],
      "type": "string",
      "default": "any",
      "description": "Offer condition, for example new.",
      "examples": [
        "new"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "product": "Apple AirPods Pro 2"
    },
    {
      "country": "United States",
      "product": "Sony WH-1000XM5",
      "condition": "new"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `stores` | array |  |  |
| `stores[].in_stock` | boolean or null | `true` |  |
| `stores[].item_price` | number | `54` |  |
| `stores[].offer_link` | string | `"https://www.mercari.com/us/item/m13170359529/"` |  |
| `stores[].store_name` | string | `"mercari.com"` |  |
| `stores[].total_price` | number or null | `54` |  |
| `stores[].store_rating` | number or null | `4.6` |  |
| `stores[].shipping_cost` | number or null | `0` |  |
| `product_link` | string |  |  |
| `product_name` | string | `"Apple AirPods Pro 2"` |  |
| `currency_code` | string | `"USD"` |  |
| `typical_price_low` | number or null |  |  |
| `lowest_total_price` | number or null | `54` |  |
| `typical_price_high` | number or null |  |  |

**Example input**

```json
{
  "product": "Apple AirPods Pro 2"
}
```

**Example output**

```json
{
  "stores": [
    {
      "in_stock": true,
      "item_price": 54,
      "offer_link": "https://www.mercari.com/us/item/m13170359529/",
      "store_name": "mercari.com",
      "total_price": 54,
      "store_rating": 4.6,
      "shipping_cost": 0
    },
    {
      "in_stock": true,
      "item_price": 70,
      "offer_link": "https://www.ebay.com/itm/128044365999?chn=ps&mkevt=1&mkcid=28&google_free_listing_action=view_item",
      "store_name": "eBay",
      "total_price": 70,
      "store_rating": null,
      "shipping_cost": 0
    },
    {
      "in_stock": true,
      "item_price": 80,
      "offer_link": "https://www.mercari.com/us/item/m84525080012/",
      "store_name": "mercari.com",
      "total_price": 80,
      "store_rating": 4.6,
      "shipping_cost": 0
    }
  ],
  "product_link": "https://www.google.com/search?q=Apple+AirPods+Pro+2&sca_esv=7f36cabdb071bba2&hl=en&gl=US&udm=28&sxsrf=APpeQnuTG3PfkThqH5TZAhN2WpDwTfR7XQ%3A1790639883937&shopmd=1&ei=C_-6at_cN-vY5NoPvr3DiAI&biw=1920&bi…",
  "product_name": "Apple AirPods Pro 2",
  "currency_code": "USD",
  "typical_price_low": null,
  "lowest_total_price": 54,
  "typical_price_high": null
}
```

### Search products

Operation `search_products`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Search Google Shopping for product offers across stores, with prices, ratings, delivery information, and store links. Results depend on the country and what stores publish.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `query` | string | yes | `"dyson v15"` | Product description, for example Dyson V15 vacuum. |
| `country` | string | no | `"United States"` | Country name or two-letter code, for example United States or US. |
| `condition` | string | no | `"new"` | Product condition, for example refurbished. |
| `max_price` | number or null | no | `500` | Highest offer price in the local currency, for example 500. |
| `max_results` | integer | no | `1` | Maximum offers to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Product description, for example Dyson V15 vacuum.",
      "examples": [
        "dyson v15",
        "shark vacuum"
      ]
    },
    "country": {
      "type": "string",
      "default": "United States",
      "description": "Country name or two-letter code, for example United States or US.",
      "examples": [
        "United States"
      ]
    },
    "condition": {
      "enum": [
        "any",
        "new",
        "used",
        "refurbished"
      ],
      "type": "string",
      "default": "any",
      "description": "Product condition, for example refurbished.",
      "examples": [
        "new"
      ]
    },
    "max_price": {
      "type": [
        "number",
        "null"
      ],
      "default": null,
      "minimum": 0,
      "description": "Highest offer price in the local currency, for example 500.",
      "examples": [
        500
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum offers to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        1
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "dyson v15",
      "max_results": 1
    },
    {
      "query": "shark vacuum",
      "country": "United States",
      "condition": "new",
      "max_price": 500,
      "max_results": 1
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `offers` | array |  | Offers in Google Shopping order. |
| `offers[].price` | number | `349.99` | Current offer price. |
| `offers[].title` | string | `"Dyson V15 Detect Cordless Vacuum"` | Product title. |
| `offers[].returns` | string or null | `"30-day returns"` | Return policy shown for the offer. |
| `offers[].shipping` | string or null | `"Free delivery by Thu"` | Shipping or delivery details. |
| `offers[].offer_link` | string or null | `"https://www.walmart.com/ip/Dyson-V15-Vacuum-Detect-Total-Clean-Extra-Cordless-Stick-Battery-Yellow-Nickel/20234870176?w` | Link to the store offer. |
| `offers[].photo_link` | string or null | `"https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSkgd8oN8SLa_Hhgf7UX4d_TBXNQ9D71U3I5XOrPhDv_NQhOfZK8IEtHGHIgo_n6` | Product photo link. |
| `offers[].store_name` | string or null | `"Walmart - Dyson, Inc."` | Store offering the product. |
| `offers[].star_rating` | number or null | `4.5` | Star rating out of five. |
| `offers[].review_count` | integer or null | `24000` | Number of reviews (abbreviated totals are approximate). |
| `offers[].currency_code` | string or null | `"USD"` | Currency of the price. |
| `offers[].original_price` | number or null | `600` | Price before the sale, if shown. |
| `offers[].google_product_id` | string | `"6167775206306262050"` | Google product ID. |

**Example input**

```json
{
  "query": "dyson v15",
  "max_results": 1
}
```

**Example output**

```json
{
  "offers": [
    {
      "price": 349.99,
      "title": "Dyson V15 Detect Cordless Vacuum",
      "returns": null,
      "shipping": "Free delivery by Thu",
      "offer_link": "https://www.walmart.com/ip/Dyson-V15-Vacuum-Detect-Total-Clean-Extra-Cordless-Stick-Battery-Yellow-Nickel/20234870176?wmlspartner=wlpa&selectedSellerId=11746&veh=seo_fpl&cn=google",
      "photo_link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSkgd8oN8SLa_Hhgf7UX4d_TBXNQ9D71U3I5XOrPhDv_NQhOfZK8IEtHGHIgo_n60OfW9vm5mGyTPfnA-u5ra8f8R-wADQtMI8gE_wsw-Yn2cjxn-Li6Kti",
      "store_name": "Walmart - Dyson, Inc.",
      "star_rating": 4.5,
      "review_count": 24000,
      "currency_code": "USD",
      "original_price": 600,
      "google_product_id": "6167775206306262050"
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@google-shopping",
  "visibility": "public",
  "operation": "compare_prices",
  "version": 1,
  "input": {
    "product": "Apple AirPods Pro 2"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@google-shopping\",\n  \"visibility\": \"public\",\n  \"operation\": \"compare_prices\",\n  \"version\": 1,\n  \"input\": {\n    \"product\": \"Apple AirPods Pro 2\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@google-shopping",
  "visibility": "public",
  "operation": "compare_prices",
  "version": 1,
  "input": {
    "product": "Apple AirPods Pro 2"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/google-shopping`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `compare_prices`: Compare prices. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `search_products`: Search products. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-google-shopping https://api.fous.com/mcp/tools/google-shopping --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare store prices for a product across offers.
- Review store ratings before choosing where to buy.
- Check displayed shipping and delivery details.
- Find product offers within a maximum price.
- Track product offer prices by country.

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Google Shopping tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Google Shopping account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from google.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 28, 2026.

### Which stores offer a product, and at what prices?

Search products returns store offers with prices, store names, and offer links for a product query.

### How do prices compare across stores?

Compare prices compares store offers and returns item prices, shipping costs, and total prices when shipping is shown.

### What ratings do stores or products have?

Search products returns product star ratings; Compare prices returns store ratings when shown.

## Related

- [Amazon API](https://fous.com/tools/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Walmart API](https://fous.com/tools/walmart.md): Walmart helps shoppers find products from Walmart and marketplace sellers, view details, prices, ratings and reviews; availability uses Walmart’s default location, not ZIP codes.
- [Best Buy API](https://fous.com/tools/best-buy.md): Best Buy returns US electronics and appliance listings, prices, deals, specifications, images, reviews, and nearby store pickup and shipping details; prices and availability can change by location and before checkout.
- [AliExpress API](https://fous.com/tools/aliexpress.md): AliExpress returns product listings and selected product details, including prices, variants, reviews, and destination-specific shipping options shown for the displayed variant.
- [PriceRunner API](https://fous.com/tools/pricerunner.md): Compare prices for products offered by online shops.
- [IKEA API](https://fous.com/tools/ikea.md): IKEA helps shoppers find country-dependent product details, prices, photos, reviews and assembly information, and check store stock where IKEA provides it; some countries are unsupported.
- [Flipkart API](https://fous.com/tools/flipkart.md): Flipkart shows current product listings and prices, with available product details and location-dependent delivery estimates that may be unavailable for some listings or PIN codes.
- [Nordstrom API](https://fous.com/tools/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [All Commerce tools](https://fous.com/tools/category/commerce)
