# 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/workflows/google-shopping
- Handle: `@google-shopping`
- Category: [Commerce](https://fous.com/workflows/category/commerce)
- Source website: https://google.com/shopping
- Last verified: Sep 28, 2026
- Fous is not affiliated with Google Shopping.

## Methods

### Compare prices

Operation `compare_prices`, version 1. 1 credit per call.

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 |  |  |
| `stores[].item_price` | number |  |  |
| `stores[].offer_link` | string |  |  |
| `stores[].store_name` | string |  |  |
| `stores[].total_price` | number or null |  |  |
| `stores[].store_rating` | number or null |  |  |
| `stores[].shipping_cost` | number or null |  |  |
| `product_link` | string |  |  |
| `product_name` | string |  |  |
| `currency_code` | string |  |  |
| `typical_price_low` | number or null |  |  |
| `lowest_total_price` | number or null |  |  |
| `typical_price_high` | number or null |  |  |

### Search products

Operation `search_products`, version 1. 1 credit per call.

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

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@google-shopping","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Google Shopping?

No. Fous is not affiliated with Google Shopping. This workflow reads the public google.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/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/workflows/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/workflows/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/workflows/pricerunner.md): Compare prices for products offered by online shops.
- [IKEA API](https://fous.com/workflows/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/workflows/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/workflows/nordstrom.md): Search clothing, shoes, and beauty products at Nordstrom.
- [All Commerce workflows](https://fous.com/workflows/category/commerce)
