Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Google Shopping Search

Tài liệu 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.

Giá
$0.015USD / lượt gọi
Phương thức
POST
Phản hồi
JSON bất đồng bộ
Tham số
1 bắt buộc · 15 tùy chọn

Phòng thử nghiệm

Đầu vào
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.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Google Shopping$0.015 mỗi lần gọiJSON bất đồng bộ
Google Shopping$0.01 mỗi lần gọiJSON
Google Shopping$0.00015 mỗi lần gọiJSON

Hướng dẫn:Best Google Shopping API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Google Shopping Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/google-shopping/search với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Google Shopping Search có giá bao nhiêu?

$0.015 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Google Shopping Search chấp nhận những tham số nào?

Bắt buộc: q (string | number | boolean). Tùy chọn: gl (string | number | boolean), hl (string | number | boolean), safe (string | number | boolean), uule (string | number | boolean), start (string | number | boolean) và device (string | number | boolean) và 9 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Google Shopping Search trả về gì?

Kết quả JSON. Endpoint này chạy bất đồng bộ, nên phản hồi sẽ cho bạn biết cách lấy kết quả hoàn tất. README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Google Shopping không?

Không. Google Shopping Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Google Shopping.