qstringwymagane
Required search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers.
https://api.sandbase.ai/v1/api/google-shopping/productOne Google Shopping product's merchant offers, prices, specifications, reviews and related products.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns details for one Google Shopping product, including its title, description, specifications and thumbnail images. You pass a search term q and a product cluster ID gpcid, usually with the companion document IDs from the same shopping result.
gpcid Google resolves for a search term and ID pair.curl -X POST "https://api.sandbase.ai/v1/api/google-shopping/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "coffee maker", "gpcid": "3753285529675071078", "headline_offer_docid": "2823574139643882398", "image_docid": "5002652757944012799"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Required search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers. |
device | string | No | Google device layout. Each device is served Google's real layout for it. |
gl | string | No | Two-letter country code used to localize results. |
google_domain | string | No | Google domain used for the request. |
gpcid | string | No | Product cluster ID from a shopping result. Required unless prds is supplied; follow litescrape_product_link for a ready-made request. |
headline_offer_docid | string | No | Optional headline offer document ID from the same shopping result; use with gpcid. |
hl | string | No | Language code such as en, en-GB, or de. |
image_docid | string | No | Optional image document ID from the same shopping result; use with gpcid. |
location | string | No | Human-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule. |
prds | string | No | Google product selector token from a previous response. Mutually exclusive with gpcid and its companion document IDs. |
timeout | number | No | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal |
uule | string | No | Pre-encoded Google location token. Mutually exclusive with location. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"offers": null,
"product_result": {
"description": "Kickstart your mornings with the invigorating aroma of freshly brewed coffee, th…",
"gpcid": "3753285529675071078",
"headline_offer_docid": "2823574139643882398",
"image_docid": "5002652757944012799",
"specifications": [
{
"name": "Capacity",
"value": "10 cups"
}
],
"thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSE-TeJ2k_-GjVS30DtuitDDc…",
"thumbnails": [
"https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSE-TeJ2k_-GjVS30DtuitDDc…"
],
"title": "Starfrit 10-Cup Drip Coffee Maker"
}
}
| Field | Meaning |
|---|---|
product_result.title | Product name as Google Shopping shows it. |
product_result.description | Text description of the product. Long descriptions may be cut off in the sample. |
product_result.gpcid | Product cluster ID of the product. It matches the gpcid you sent. |
product_result.headline_offer_docid / product_result.image_docid | Document IDs for the headline offer and the product image. Use them with gpcid in later requests. |
product_result.specifications[].name | Name of a product attribute, such as Capacity or Depth. |
product_result.specifications[].value | Value of that attribute, written with its unit, such as 10 cups or 7.97 in. |
product_result.thumbnail | URL of the main product thumbnail image. |
product_result.thumbnails[] | URLs of additional thumbnail images for the product. |
offers | Merchant offers for the product. This is null in this response, so no offers were returned for this request. |
gpcid, headline_offer_docid and image_docid from one result of the same shopping search, for example with Google Shopping Search.q with every request. It is the only required parameter.prds or gpcid with its companion IDs, not both. location and uule are also mutually exclusive.outputs[0].data. The offers key can be null, so check it before you read it.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/google-shopping/product" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "coffee maker",
"hl": "en",
"device": "desktop",
"google_domain": "google.com"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
qstringwymaganeRequired search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers.
gpcidstringProduct cluster ID from a shopping result. Required unless prds is supplied; follow litescrape_product_link for a ready-made request.
headline_offer_docidstringOptional headline offer document ID from the same shopping result; use with gpcid.
image_docidstringOptional image document ID from the same shopping result; use with gpcid.
prdsstringGoogle product selector token from a previous response. Mutually exclusive with gpcid and its companion document IDs.
locationstringHuman-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.
uulestringPre-encoded Google location token. Mutually exclusive with location.
google_domainstringGoogle domain used for the request.
Domyślnie: "google.com"
glstringTwo-letter country code used to localize results.
hlstringLanguage code such as en, en-GB, or de.
Domyślnie: "en"
devicestringGoogle device layout. Each device is served Google's real layout for it.
Domyślnie: "desktop"
Możliwe wartości: desktop, tablet, mobile
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Google Shopping | $0.00015 za wywołanie | JSON |
Google Shopping | $0.01 za wywołanie | JSON |
Google Shopping | $0.015 za wywołanie | Asynchroniczny JSON |
Przewodniki:Best Google Shopping API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/google-shopping/product z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.00015 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: q (string). Opcjonalne: gpcid (string), headline_offer_docid (string), image_docid (string), prds (string), location (string) i uule (string) i jeszcze 5. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Google Shopping Product Details działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Google Shopping.