Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Google Shopping Product Details

API dokümanları
https://api.sandbase.ai/v1/api/google-shopping/product

One Google Shopping product's merchant offers, prices, specifications, reviews and related products.

Fiyat
$0.00015USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 11 isteğe bağlı

Oynatma Alanı

Girdi
Required search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers.
Product cluster ID from a shopping result. Required unless prds is supplied; follow litescrape_product_link for a ready-made request.
Optional headline offer document ID from the same shopping result; use with gpcid.
Optional image document ID from the same shopping result; use with gpcid.
Google product selector token from a previous response. Mutually exclusive with gpcid and its companion document IDs.
Human-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.
Pre-encoded Google location token. Mutually exclusive with location.
Google domain used for the request.
Two-letter country code used to localize results.
Language code such as en, en-GB, or de.
Google device layout. Each device is served Google's real layout for it.
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 call is not billed and returns 503 request_deadline_exceeded with retryable=true an
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Google Shopping Product Details API

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.

Use cases

  • Pull the specification list for a coffee maker to build a side-by-side comparison table.
  • Fetch the product description and images to fill a catalog page for an item found in a shopping search.
  • Check which product title and gpcid Google resolves for a search term and ID pair.
  • Collect thumbnail URLs for a product to show in a price-tracking dashboard.

Request

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.

Parameters

NameTypeRequiredDescription
qstringYesRequired search term from the shopping request that found the product. Google resolves the product page against it as well as the identifiers.
devicestringNoGoogle device layout. Each device is served Google's real layout for it.
glstringNoTwo-letter country code used to localize results.
google_domainstringNoGoogle domain used for the request.
gpcidstringNoProduct cluster ID from a shopping result. Required unless prds is supplied; follow litescrape_product_link for a ready-made request.
headline_offer_docidstringNoOptional headline offer document ID from the same shopping result; use with gpcid.
hlstringNoLanguage code such as en, en-GB, or de.
image_docidstringNoOptional image document ID from the same shopping result; use with gpcid.
locationstringNoHuman-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.
prdsstringNoGoogle product selector token from a previous response. Mutually exclusive with gpcid and its companion document IDs.
timeoutnumberNoOptional 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
uulestringNoPre-encoded Google location token. Mutually exclusive with location.

Example response

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"
  }
}

Response fields

FieldMeaning
product_result.titleProduct name as Google Shopping shows it.
product_result.descriptionText description of the product. Long descriptions may be cut off in the sample.
product_result.gpcidProduct cluster ID of the product. It matches the gpcid you sent.
product_result.headline_offer_docid / product_result.image_docidDocument IDs for the headline offer and the product image. Use them with gpcid in later requests.
product_result.specifications[].nameName of a product attribute, such as Capacity or Depth.
product_result.specifications[].valueValue of that attribute, written with its unit, such as 10 cups or 7.97 in.
product_result.thumbnailURL of the main product thumbnail image.
product_result.thumbnails[]URLs of additional thumbnail images for the product.
offersMerchant offers for the product. This is null in this response, so no offers were returned for this request.

Notes

  • Get gpcid, headline_offer_docid and image_docid from one result of the same shopping search, for example with Google Shopping Search.
  • Send q with every request. It is the only required parameter.
  • Use either prds or gpcid with its companion IDs, not both. location and uule are also mutually exclusive.
  • The data is in outputs[0].data. The offers key can be null, so check it before you read it.

Pricing

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

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Google Shopping$0.00015 çağrı başınaJSON
Google Shopping$0.01 çağrı başınaJSON
Google Shopping$0.015 çağrı başınaAsenkron JSON

Kılavuzlar:Best Google Shopping API in 2026: Pricing Compared

Sorular

SSS

Google Shopping Product Details API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/google-shopping/product adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Google Shopping Product Details API'sinin fiyatı nedir?

çağrı başına $0.00015, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Google Shopping Product Details API'si hangi parametreleri kabul eder?

Gerekli: q (string). İsteğe bağlı: gpcid (string), headline_offer_docid (string), image_docid (string), prds (string), location (string) ve uule (string) ve 5 tane daha. Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Google Shopping Product Details API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Google Shopping geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Google Shopping Product Details, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Google Shopping API erişimi için ayrıca başvuru yapmanız gerekmez.