# Google Shopping Search API

> Search Google Shopping by keyword: product title, price, old price, store, rating, reviews, delivery and product ID, with price, sort and location filters.

Source: https://www.sandbase.ai/apis/google-shopping/search
API reference: https://www.sandbase.ai/apis/google-shopping/search/docs

## Facts

- Provider: Google Shopping
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/google-shopping/search`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, google shopping, ecommerce, product data
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/google-shopping/search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string \| number \| boolean | yes |  |
| `gl` | string \| number \| boolean | no |  |
| `hl` | string \| number \| boolean | no |  |
| `safe` | string \| number \| boolean | no |  |
| `uule` | string \| number \| boolean | no |  |
| `start` | string \| number \| boolean | no |  |
| `device` | string \| number \| boolean | no |  |
| `shoprs` | string \| number \| boolean | no |  |
| `on_sale` | string \| number \| boolean | no |  |
| `sort_by` | any | no |  |
| `max_price` | string \| number \| boolean | no |  |
| `min_price` | string \| number \| boolean | no |  |
| `free_shipping` | string \| number \| boolean | no |  |
| `google_domain` | string \| number \| boolean | no |  |
| `small_business` | string \| number \| boolean | no |  |
| `json_restrictor` | string \| number \| boolean | no |  |

## FAQ

### How do I use the Google Shopping Search API?

Send a POST request to https://api.sandbase.ai/v1/api/google-shopping/search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Google Shopping Search API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Google Shopping Search API accept?

Required: q (string | number | boolean). Optional: gl (string | number | boolean), hl (string | number | boolean), safe (string | number | boolean), uule (string | number | boolean), start (string | number | boolean) and device (string | number | boolean) and 9 more. The Parameters table and the Playground on this page list every field.

### What does the Google Shopping Search API return?

A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.

### Do I need a Google Shopping developer account or API key?

No. Google Shopping Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Google Shopping API access separately.

## README

### Google Shopping Search

Search Google Shopping by keyword: product title, price, old price, store, rating, reviews, delivery and product ID, with price, sort and location filters.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google-shopping/search", "q": "wireless earbuds"}'
```

This API runs asynchronously. `/v1/run` returns a task `id` with status `pending`; poll `GET https://api.sandbase.ai/v1/run/{id}` until `status` is `completed` and read the result from `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `q` | string/number/boolean | Yes | The query you want to search. You can use anything that you would use in a regular Google Shopping search. This parameter is optional if using `shoprs` parameter. |
| `device` | string/number/boolean | No | The device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser. |
| `free_shipping` | string/number/boolean | No | Show only products with free shipping. This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `gl` | string/number/boolean | No | The country to use for the Google search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France) Head to the Google Shopping countries for a fu… |
| `google_domain` | string/number/boolean | No | The Google domain to use. It defaults to `google.com`. Head to the Google domains for a full list of supported Google domains. |
| `hl` | string/number/boolean | No | The language to use for the Google Shopping search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or thr… |
| `json_restrictor` | string/number/boolean | No | The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
| `max_price` | string/number/boolean | No | Upper bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `min_price` | string/number/boolean | No | Lower bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `on_sale` | string/number/boolean | No | Show only products that are on sale. This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `safe` | string/number/boolean | No | The level of filtering for adult content. It can be set to `active` or `off`, by default Google will omit explicit content. |
| `shoprs` | string/number/boolean | No | The parameter defines the token that includes metadata about query and search filter(s). Providing `q` parameter alongside the `shoprs` is **not** required. To apply multiple filters join them with `\… |
| `small_business` | string/number/boolean | No | Show only products from small business. This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `sort_by` | any | No | The sorting order of the results. Available options: `1` - Price: low to high `2` - Price: high to low This parameter overrides corresponding filter embedded into `shoprs` parameter. |
| `start` | string/number/boolean | No | Intended to define the result offset for pagination. Google Shopping's current layout does not support offset pagination: the `start` parameter is ignored and every request returns the first page of r… |
| `uule` | string/number/boolean | No | The Google encoded location you want to use for the search. `uule` and `location` parameters can't be used together. For consistent results with coordinates-based `uule` parameter, a matching `gl` par… |

#### Pricing

Flat price per call. Failed calls are not charged.
