Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Google Shopping Search

Documentazione API
https://api.sandbase.ai/v1/api/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.

Prezzo
$0.015USD / chiamata
Metodo
POST
Risposta
JSON asincrono
Parametri
1 obbligatori · 15 opzionali

Playground

Input
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.
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 full list of supported Google Shopping countries.
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 three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
The level of filtering for adult content. It can be set to `active` or `off`, by default Google will omit explicit content.
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` parameter is required. Head to UULE Generator if you need to convert a location or GPS coordinates to `uule` parameter, and vice versa.
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 results (around 40 items). The `num` parameter is still accepted and forwarded to Google, but the current layout returns a fixed page size, so it does not change the number of results returned.
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.
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 `||` separator, e.g. `shoprs_1||shoprs_2||shoprs_3`.
Show only products that are on sale. This parameter overrides corresponding filter embedded into `shoprs` parameter.
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.
Upper bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter.
Lower bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter.
Show only products with free shipping. This parameter overrides corresponding filter embedded into `shoprs` parameter.
The Google domain to use. It defaults to `google.com`. Head to the Google domains for a full list of supported Google domains.
Show only products from small business. This parameter overrides corresponding filter embedded into `shoprs` parameter.
The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Google Shopping Search

Returns Google Shopping results for a keyword search. Each product has a title, price, old price, store, rating, review count, delivery note and product ID. The only required input is the search text in q.

Use cases

  • Track the price and old price of competing products for a keyword such as wireless earbuds.
  • Build a list of the cheapest or best rated products in a category using sort_by, min_price and max_price.
  • Compare which stores list the same type of product and which ones offer free delivery.
  • Collect product IDs and page tokens to fetch full product details in a second call.

Request

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

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
q['string', 'number', 'boolean']YesThe 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']NoThe 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']NoShow only products with free shipping. This parameter overrides corresponding filter embedded into shoprs parameter.
gl['string', 'number', 'boolean']NoThe 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 full list of supported
google_domain['string', 'number', 'boolean']NoThe 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']NoThe 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 three-digit region code
json_restrictor['string', 'number', 'boolean']NoThe 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']NoUpper bound of price range query. This parameter overrides corresponding filter embedded into shoprs parameter.
min_price['string', 'number', 'boolean']NoLower bound of price range query. This parameter overrides corresponding filter embedded into shoprs parameter.
on_sale['string', 'number', 'boolean']NoShow only products that are on sale. This parameter overrides corresponding filter embedded into shoprs parameter.
safe['string', 'number', 'boolean']NoThe 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']NoThe 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 // separator, e.g. `
small_business['string', 'number', 'boolean']NoShow only products from small business. This parameter overrides corresponding filter embedded into shoprs parameter.
sort_bystringNoThe 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']NoIntended 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 results (around 40 it
uule['string', 'number', 'boolean']NoThe 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 parameter is required.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "categorized_shopping_results": [
    {
      "shopping_results": [
        {
          "extensions": [
            "Nearby, 9 mi"
          ],
          "extracted_old_price": 17,
          "extracted_price": 14.99,
          "immersive_product_page_token": "KsyGIXic…",
          "multiple_sources": true,
          "old_price": "Usually $17",
          "position": 1,
          "price": "$14.99"
        }
      ],
      "title": "Best Overall Wireless Earbuds"
    }
  ],
  "filters": [
    {
      "input_type": "link_with_icon",
      "options": [
        {
          "serpapi_link": {
            "endpoint": "/google/shopping",
            "queryParams": {
              "device": "desktop",
              "gl": "us",
              "google_domain": "google.com",
              "hl": "en",
              "q": "wireless earbuds sale",
              "shoprs": "CAESBEoCGAEYBioQd2lyZWxlc3MgZWFyYnVkczITCAYSB09uIHNhbGUYAiIESgIYAViD6CBgAg"
            }
          },
          "shoprs": "CAESBEoCGAEYBioQd2lyZWxlc3MgZWFyYnVkczITCAYSB09uIHNhbGUYAiIESgIYAViD6CBgAg",
          "text": "On sale"
        }
      ]
    }
  ],
  "search_information": {
    "query_displayed": "wireless earbuds",
    "shopping_results_state": "Results for exact spelling"
  },
  "search_metadata": {
    "cached": false,
    "created_at": "2026-11-03 07:34:32 UTC",
    "google_shopping_url": "https://www.google.com/search?udm=28&q=wireless+earbuds&oq=wireless+earbuds&sour…",
    "id": "6ae98e88bccefcad725e0301",
    "processed_at": "2026-11-03 07:34:32 UTC",
    "status": "Success",
    "total_time_taken": 6.51
  },
  "search_parameters": {
    "device": "desktop",
    "engine": "google_shopping",
    "gl": "us",
    "google_domain": "google.com",
    "hl": "en",
    "q": "wireless earbuds"
  },
  "shopping_results": [
    {
      "extensions": [
        "Nearby, 9 mi"
      ],
      "extracted_old_price": 17,
      "extracted_price": 14.99,
      "immersive_product_page_token": "fNZ0EXic…",
      "multiple_sources": true,
      "old_price": "Usually $17",
      "position": 1,
      "price": "$14.99",
      "product_id": "7310953537322941042",
      "product_link": "https://www.google.com/search?ibp=oshop&q=wireless earbuds&prds=catalogid:731095…",
      "rating": 4.3,
      "reviews": 33000
    }
  ]
}

Response fields

FieldMeaning
shopping_results[].titleProduct name as shown in the listing.
shopping_results[].price / shopping_results[].extracted_priceCurrent price as display text (for example $14.99) and as a number (14.99).
shopping_results[].old_price / shopping_results[].extracted_old_pricePrevious or usual price, as text and as a number. Present only when the listing shows a discount.
shopping_results[].sourceName of the store that lists the product, for example Target.
shopping_results[].rating / shopping_results[].reviewsAverage star rating and number of reviews for the product.
shopping_results[].deliveryDelivery note such as Free delivery. Not every item has it.
shopping_results[].product_idGoogle Shopping catalog ID of the product.
shopping_results[].serpapi_product_api.queryParams.page_tokenToken that identifies the product. Use it to request more details about the item.
categorized_shopping_results[].titleName of a result group, for example Best Overall Wireless Earbuds.
filters[].options[].shoprsToken for a ready-made filter such as On sale or Under $35. Pass it in the shoprs parameter to apply that filter.

Notes

  • q is the only required parameter. Use min_price, max_price, on_sale, free_shipping and sort_by (1 low to high, 2 high to low) to narrow the results.
  • Pagination does not work. The start parameter is ignored and each request returns the first page of results.
  • Take page_token from a result and call Google Shopping Product Details to get more information about one product.
  • Some items have no rating, reviews or product_id, mostly those in categorized_shopping_results, so check for missing keys.

Pricing

$0.015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Google Shopping$0.015 per chiamataJSON asincrono
Google Shopping$0.01 per chiamataJSON
Google Shopping$0.00015 per chiamataJSON

Guide:Best Google Shopping API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Google Shopping Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/google-shopping/search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Google Shopping Search?

$0.015 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Google Shopping Search?

Richiesti: q (string | number | boolean). Facoltativi: gl (string | number | boolean), hl (string | number | boolean), safe (string | number | boolean), uule (string | number | boolean), start (string | number | boolean) e device (string | number | boolean) e altri 9. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Google Shopping Search?

Un risultato JSON. Questo endpoint viene eseguito in modo asincrono, quindi la risposta indica come recuperare il risultato completato. Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Google Shopping?

No. Google Shopping Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Google Shopping.