qstring | number | booleanrequerido
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.
https://api.sandbase.ai/v1/api/google-shopping/searchSearch Google Shopping by keyword: product title, price, old price, store, rating, reviews, delivery and product ID, with price, sort and location filters.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
wireless earbuds.sort_by, min_price and max_price.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.
| 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 full list of supported |
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 three-digit region code |
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 // separator, e.g. ` |
small_business | ['string', 'number', 'boolean'] | No | Show only products from small business. This parameter overrides corresponding filter embedded into shoprs parameter. |
sort_by | string | 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 results (around 40 it |
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 parameter is required. |
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
}
]
}
| Field | Meaning |
|---|---|
shopping_results[].title | Product name as shown in the listing. |
shopping_results[].price / shopping_results[].extracted_price | Current price as display text (for example $14.99) and as a number (14.99). |
shopping_results[].old_price / shopping_results[].extracted_old_price | Previous or usual price, as text and as a number. Present only when the listing shows a discount. |
shopping_results[].source | Name of the store that lists the product, for example Target. |
shopping_results[].rating / shopping_results[].reviews | Average star rating and number of reviews for the product. |
shopping_results[].delivery | Delivery note such as Free delivery. Not every item has it. |
shopping_results[].product_id | Google Shopping catalog ID of the product. |
shopping_results[].serpapi_product_api.queryParams.page_token | Token that identifies the product. Use it to request more details about the item. |
categorized_shopping_results[].title | Name of a result group, for example Best Overall Wireless Earbuds. |
filters[].options[].shoprs | Token for a ready-made filter such as On sale or Under $35. Pass it in the shoprs parameter to apply that filter. |
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.start parameter is ignored and each request returns the first page of results.page_token from a result and call Google Shopping Product Details to get more information about one product.rating, reviews or product_id, mostly those in categorized_shopping_results, so check for missing keys.$0.015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
qstring | number | booleanrequeridoThe 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.
glstring | number | booleanThe 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.
hlstring | number | booleanThe 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).
safestring | number | booleanThe level of filtering for adult content. It can be set to `active` or `off`, by default Google will omit explicit content.
uulestring | number | booleanThe 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.
startstring | number | booleanIntended 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.
devicestring | number | booleanThe 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.
shoprsstring | number | booleanThe 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`.
on_salestring | number | booleanShow only products that are on sale. This parameter overrides corresponding filter embedded into `shoprs` parameter.
sort_byanyThe 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.
max_pricestring | number | booleanUpper bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter.
min_pricestring | number | booleanLower bound of price range query. This parameter overrides corresponding filter embedded into `shoprs` parameter.
free_shippingstring | number | booleanShow only products with free shipping. This parameter overrides corresponding filter embedded into `shoprs` parameter.
google_domainstring | number | booleanThe Google domain to use. It defaults to `google.com`. Head to the Google domains for a full list of supported Google domains.
small_businessstring | number | booleanShow only products from small business. This parameter overrides corresponding filter embedded into `shoprs` parameter.
json_restrictorstring | number | booleanThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Google Shopping SearchEsta API Google Shopping | $0.015 por llamada | JSON asíncrono |
Google Shopping | $0.01 por llamada | JSON |
Google Shopping | $0.00015 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/google-shopping/search con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.015 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: q (string | number | boolean). Opcionales: gl (string | number | boolean), hl (string | number | boolean), safe (string | number | boolean), uule (string | number | boolean), start (string | number | boolean) y device (string | number | boolean) y 9 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Un resultado JSON. Este endpoint se ejecuta de forma asíncrona, así que la respuesta indica cómo obtener el resultado final. El README de esta página incluye una respuesta de ejemplo.
No. Google Shopping Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Google Shopping por separado.