Google Shopping API

The Google Shopping Results API allows a user to scrape the results of a Google Shopping search.

The API is accessed through the following endpoint: /search?engine=google_shopping.

You can query: https://serpapi.com/search?engine=google_shopping&q=coffee utilizing a GET request. Head to the playground for a live and interactive demo.

API Parameters

Search Query

q

Required

Parameter defines the query you want to search. You can use anything that you would use in a regular Google Shopping search.

Geographic Location

location

Optional

Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy.

uule

Optional

Parameter is the Google encoded location you want to use for the search. uule and location parameters can't be used together.

Localization

google_domain

Optional

Parameter defines the Google domain to use. It defaults to google.com. Head to the Google domains for a full list of supported Google domains.

gl

Optional

Parameter defines 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.

hl

Optional

Parameter defines the language to use for the Google Shopping search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French) Head to the Google languages for a full list of supported Google languages.

Advanced Filters

shoprs

Optional

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.

min_price

Optional

Lower bound of price range query.

This parameter overrides corresponding filter embedded into shoprs parameter.

max_price

Optional

Upper bound of price range query.

This parameter overrides corresponding filter embedded into shoprs parameter.

sort_by

Optional

Parameter defines 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.

free_shipping

Optional

Show only products with free shipping.

This parameter overrides corresponding filter embedded into shoprs parameter.

on_sale

Optional

Show only products that are on sale.

This parameter overrides corresponding filter embedded into shoprs parameter.

small_business

Optional

Show only products from small business.

This parameter overrides corresponding filter embedded into shoprs parameter.

Pagination

start

Optional

Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., 0 (default) is the first page of results, 60 is the 2nd page of results, 120 is the 3rd page of results, etc.).

For the new layout, the parameter is not recommended. To easily retrieve paginated results accurately, it is advisable to follow the link provided in serpapi_pagination.next.

num

Optional

Parameter defines the maximum number of results to return. (e.g., 60 (default) returns 60 results, 40 returns 40 results, and 100 (maximum) returns 100 results).
Any number greater than maximum number (100) will default to 100.
Any number lesser than minimum number (1) will default to 60.

For the new layout, the parameter is no longer supported.

Serpapi Parameters

engine

Required

Set parameter to google_shopping to use the Google Shopping API engine.

device

Optional

Parameter defines 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.

no_cache

Optional

Parameter will force SerpApi to fetch the Google Shopping results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

json_restrictor

Optional

Parameter defines the fields you want to restrict in the response. For example, setting it to organic_results[].{title,snippet} will only return the title and snippet of the organic results. See JSON Restrictor for more details.

API Results

Full results for  q: Office Chair

Full results for  q: Office Chair

JSON Example

{
  "search_metadata": {
    "id": "6895ae51fc8a2b4359020342",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/cbb345c0f9de6f20/6895ae51fc8a2b4359020342.json",
    "created_at": "2025-08-08 07:59:13 UTC",
    "processed_at": "2025-08-08 07:59:13 UTC",
    "google_shopping_url": "https://www.google.com/search?udm=28&q=Office+Chair&hl=en&gl=us",
    "raw_html_file": "https://serpapi.com/searches/cbb345c0f9de6f20/6895ae51fc8a2b4359020342.html",
    "total_time_taken": 3.32
  },
  "search_parameters": {
    "engine": "google_shopping",
    "q": "Office Chair",
    "google_domain": "google.com",
    "hl": "en",
    "gl": "us",
    "device": "desktop"
  },
  "search_information": {
    "query_displayed": "Office Chair",
    "shopping_results_state": "Results for exact spelling"
  },
  "filters": [
    {
      "type": "Refine results",
      "input_type": "link_with_icon",
      "options": [
        {
          "text": "Nearby",
          "shoprs": "CAEYAyoMb2ZmaWNlIGNoYWlyMgwIAxIGTmVhcmJ5GAJYu6wgYAI",
          "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=Office+Chair+nearby&shoprs=CAEYAyoMb2ZmaWNlIGNoYWlyMgwIAxIGTmVhcmJ5GAJYu6wgYAI"
        },
        {
          "text": "On sale",
          "shoprs": "CAESBEoCGAEYBioMb2ZmaWNlIGNoYWlyMhMIBhIHT24gc2FsZRgCIgRKAhgBWLusIGAC",
          "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=Office+Chair+sale&shoprs=CAESBEoCGAEYBioMb2ZmaWNlIGNoYWlyMhMIBhIHT24gc2FsZRgCIgRKAhgBWLusIGAC"
        },
        {
          "text": "Get it today",
          "shoprs": "CAESDZoBCgoIEAA4AUAFSAEYFCoMb2ZmaWNlIGNoYWlyMiUIFBIMR2V0IGl0IHRvZGF5Ig2aAQoKCBAAOAFABUgBKgQQARgBYAI",
          "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=office+chair&shoprs=CAESDZoBCgoIEAA4AUAFSAEYFCoMb2ZmaWNlIGNoYWlyMiUIFBIMR2V0IGl0IHRvZGF5Ig2aAQoKCBAAOAFABUgBKgQQARgBYAI"
        },
        {
          "text": "Small business",
          "shoprs": "CAESAmoAGBYqDG9mZmljZSBjaGFpcjIcCBYSDlNtYWxsIGJ1c2luZXNzIgJqACoEEAEYAWAC",
          "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=office+chair&shoprs=CAESAmoAGBYqDG9mZmljZSBjaGFpcjIcCBYSDlNtYWxsIGJ1c2luZXNzIgJqACoEEAEYAWAC"
        }
      ]
    },
    ...
  ],
  "inline_shopping_results": [
    {
      "position": 1,
      "block_position": "top",
      "title": "School Chair, Stackable, 18\"H Seat, Ventilated Back",
      "price": "$279.96",
      "extracted_price": 279.96,
      "link": "https://www.schooloutfitters.com/catalog/product_info/pfam_id/PFAM52753/products_id/PRO70826?sc_cid=Google_LNT-118-CSW-SO",
      "tracking_link": "https://www.google.com/aclk?sa=l&ai=DChsSEwj7-emZ3_qOAxUqm1oFHZIEADcYACICCAEQARoCdnU&co=1&ase=2&gclid=EAIaIQobChMI-_npmd_6jgMVKptaBR2SBAA3EAQYASABEgJEUPD_BwE&cid=CAASJeRo-r-QxnpIRLuHggYEXo2d67PjZCwatn2oFcsWMWNelk-U_RY&category=acrcp_v1_48&sig=AOD64_0iyMK2S9kCJesjVv_XAySNByAROA&ctype=5&q=&nis=4&ved=2ahUKEwjE9eWZ3_qOAxWpSjABHZ-mD5gQ5bgDKAB6BAgHEAs&adurl=",
      "source": "school outfitters",
      "rating": 4.5,
      "reviews": 32,
      "thumbnail": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcQjrP2G6joHA7LwEYzqhnm2c-C0XviT7SZUgRKq4BFydKqx2CpMjQx0ICdTtClJugFiSMC_VDWFBQ5m1Y3gGhp8gKGtxXqT80mJBVu6hixobcYwz8l2r8MvgGg5EigKABQPz5MvA5w&usqp=CAc",
      "serpapi_thumbnail": "https://serpapi.com/images/url/3UtI8XicDcnbboIwGADgt9mdnBRlJMaUKnUyFhl4wBujxfwtEWihHOQR9wZ7m-27_X5_mFKicXX9UdL6JdQjm6h7aWrQqJviVKNVoTesEoKXsJLL_3PRV_ZOaJTXe4vM82qLFp_9Jh0lKwuLTrBx7niyiC8H-A7kzPNfWSAHC4swjwbjA2eJws9dCz6PQ3w9rk--F9mFmU6BMOFAQNRwloljFDvv2M4ZH6o7TfvReVq1E3ZAwN5wCJAX7Uc77JDdv7WNFEuM6B98pUd4"
    },
    ...
  ],
  "categorized_shopping_results": [
    {
      "title": "Ergonomic office chairs",
      "shopping_results": [
        {
          "position": 1,
          "title": "Union & Scale Hyken Ergonomic Mesh Swivel Task Chair",
          "product_link": "https://www.google.com/shopping/product/7366082511916788769?gl=us",
          "product_id": "7366082511916788769",
          "serpapi_product_api": "https://serpapi.com/search.json?engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=7366082511916788769",
          "immersive_product_page_token": "eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiNzM2NjA4MjUxMTkxNjc4ODc2OSIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjU0NDA4MDk0MDAxNzk1NDM3ODEiLCJpbWFnZURvY2lkIjoiODkwODUzODk1NzEyNTg0NDY3NyIsInJkcyI6IlBDXzExMzg3NTYxMTcxNzYzNTI5MzEyfFBST0RfUENfMTEzODc1NjExNzE3NjM1MjkzMTIiLCJxdWVyeSI6Ik9mZmljZStDaGFpciIsImdwY2lkIjoiMTEzODc1NjExNzE3NjM1MjkzMTIiLCJtaWQiOiI1NzY0NjI4MTY0NDg1OTI0MDgiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0=",
          "serpapi_immersive_product_api": "https://serpapi.com/search.json?engine=google_immersive_product&page_token=eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiNzM2NjA4MjUxMTkxNjc4ODc2OSIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjU0NDA4MDk0MDAxNzk1NDM3ODEiLCJpbWFnZURvY2lkIjoiODkwODUzODk1NzEyNTg0NDY3NyIsInJkcyI6IlBDXzExMzg3NTYxMTcxNzYzNTI5MzEyfFBST0RfUENfMTEzODc1NjExNzE3NjM1MjkzMTIiLCJxdWVyeSI6Ik9mZmljZStDaGFpciIsImdwY2lkIjoiMTEzODc1NjExNzE3NjM1MjkzMTIiLCJtaWQiOiI1NzY0NjI4MTY0NDg1OTI0MDgiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0%3D",
          "source": "Staples",
          "source_icon": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/a057505f6871eb71655a95ecfaf211dc0a5e9df79d9597c0e3c7e3da30136487f23c68976ec0a57372b875e64b23e0061751233f704afdd850f04b7f355d3219.png",
          "multiple_sources": true,
          "price": "$144.99",
          "extracted_price": 144.99,
          "old_price": "$300",
          "extracted_old_price": 300,
          "rating": 4.4,
          "reviews": 7900,
          "thumbnail": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/a057505f6871eb71655a95ecfaf211dc0a5e9df79d9597c0e3c7e3da30136487f23c68976ec0a57372b875e64b23e006b043570794de6295a7c72c9700fd1e48.webp",
          "tag": "51% OFF",
          "extensions": [
            "51% OFF"
          ],
          "delivery": "Get it by Wed (Free)"
        },
        ...
      ]
    },
    ...
  ],
  "shopping_results": [
    {
      "position": 1,
      "title": "Mainstays Executive Ergonomic High Back Leather Home Office Desk Chair",
      "product_link": "https://www.google.com/shopping/product/7349398578013612374?gl=us",
      "product_id": "7349398578013612374",
      "serpapi_product_api": "https://serpapi.com/search.json?engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=7349398578013612374",
      "immersive_product_page_token": "eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiNzM0OTM5ODU3ODAxMzYxMjM3NCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjI5NDQyMjEyMjk3OTk1ODg2NiIsImltYWdlRG9jaWQiOiIxMDgxODc3MjkzMTAzMTc3NDQ4OCIsInJkcyI6IlBDXzUyMTA4NDQ3NTU1NDQ2NjcyfFBST0RfUENfNTIxMDg0NDc1NTU0NDY2NzIiLCJxdWVyeSI6Ik9mZmljZStDaGFpciIsImdwY2lkIjoiNTIxMDg0NDc1NTU0NDY2NzIiLCJtaWQiOiI1NzY0NjI4MDM3ODkyMjg3OTMiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0=",
      "serpapi_immersive_product_api": "https://serpapi.com/search.json?engine=google_immersive_product&page_token=eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiNzM0OTM5ODU3ODAxMzYxMjM3NCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjI5NDQyMjEyMjk3OTk1ODg2NiIsImltYWdlRG9jaWQiOiIxMDgxODc3MjkzMTAzMTc3NDQ4OCIsInJkcyI6IlBDXzUyMTA4NDQ3NTU1NDQ2NjcyfFBST0RfUENfNTIxMDg0NDc1NTU0NDY2NzIiLCJxdWVyeSI6Ik9mZmljZStDaGFpciIsImdwY2lkIjoiNTIxMDg0NDc1NTU0NDY2NzIiLCJtaWQiOiI1NzY0NjI4MDM3ODkyMjg3OTMiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0%3D",
      "source": "Walmart",
      "source_icon": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/83ef7be2113af3b1dc16130960c26922bd5d7f23fda06c2328337cdbd60fb3ab.png",
      "multiple_sources": true,
      "price": "$92.00",
      "extracted_price": 92.0,
      "rating": 4.3,
      "reviews": 64,
      "snippet": "Easy to set up (24 user reviews)",
      "extensions": [
        "In store, 3 mi"
      ],
      "thumbnail": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/83ef7be2113af3b1dc16130960c26922c61fa58f1c40ac57240b3cc1436e7dde.webp",
      "thumbnails": [
        "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcT4Wet-mo0gAB6bsID5e56lAkReLPhLiRan2ljNHoHXRoiC0KeH1Lwg2GoJ2e_TN1vOSrX8vBjtZ6zQUk8JAYOaw760sxgp"
      ],
      "serpapi_thumbnails": [
        "https://serpapi.com/images/url/ekZGKXicDcltCoIwAADQE6VTcpkQoQWaiZYZWX9C55jzY1tuaHWQ7tZt6v1930-tlJCOrmOGhpdQuJqpkgGNSFUoijTEe13WXAjKyPqx-p_jxtXSR9n8gtWs54C4HizlbmthC3Zum-LoUEc0LZjZNXHAgzzldAP2ODCiiZg-D018z2JjTE5Dbo9eo27wfTy3duhek2JaQCCfRPwAdzQ1Mg"
      ],
      "delivery": "Get it today ($10)"
    },
    {
      "position": 2,
      "title": "Realspace Modern Comfort Pizana Bouclé Fabric High-Back Executive Office Chair",
      "product_link": "https://www.google.com/shopping/product/16877169727909013824?gl=us",
      "product_id": "16877169727909013824",
      "serpapi_product_api": "https://serpapi.com/search.json?engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=16877169727909013824",
      "immersive_product_page_token": "eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiMTY4NzcxNjk3Mjc5MDkwMTM4MjQiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODE0MTc1NTczODI0Nzk5MDcyMyIsImltYWdlRG9jaWQiOiIxMzQ2MDI1MTY4MzY3Nzc1MDY5MyIsInJkcyI6IlBDXzc2MzIzMjE0Mzc4MzIzNDc4MjR8UFJPRF9QQ183NjMyMzIxNDM3ODMyMzQ3ODI0IiwicXVlcnkiOiJPZmZpY2UrQ2hhaXIiLCJncGNpZCI6Ijc2MzIzMjE0Mzc4MzIzNDc4MjQiLCJtaWQiOiI1NzY0NjI3NTg0Mzg4NzY1MzYiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0=",
      "serpapi_immersive_product_api": "https://serpapi.com/search.json?engine=google_immersive_product&page_token=eyJlaSI6IlVxNlZhTVNFTzZtVndia1BuODItd0FrIiwicHJvZHVjdGlkIjoiIiwiY2F0YWxvZ2lkIjoiMTY4NzcxNjk3Mjc5MDkwMTM4MjQiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODE0MTc1NTczODI0Nzk5MDcyMyIsImltYWdlRG9jaWQiOiIxMzQ2MDI1MTY4MzY3Nzc1MDY5MyIsInJkcyI6IlBDXzc2MzIzMjE0Mzc4MzIzNDc4MjR8UFJPRF9QQ183NjMyMzIxNDM3ODMyMzQ3ODI0IiwicXVlcnkiOiJPZmZpY2UrQ2hhaXIiLCJncGNpZCI6Ijc2MzIzMjE0Mzc4MzIzNDc4MjQiLCJtaWQiOiI1NzY0NjI3NTg0Mzg4NzY1MzYiLCJwdnQiOiJoZyIsInV1bGUiOm51bGwsImdsIjoidXMiLCJobCI6ImVuIiwiZW5naW5lIjoiZ29vZ2xlX3Nob3BwaW5nIn0%3D",
      "source": "Office Depot",
      "source_icon": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/83ef7be2113af3b1dc16130960c26922fa481b11342f4c155abdc670be27da95.png",
      "multiple_sources": true,
      "price": "$319.99",
      "extracted_price": 319.99,
      "rating": 4.4,
      "reviews": 55,
      "snippet": "Comfortable (15 user reviews)",
      "extensions": [
        "In store, 7 mi"
      ],
      "thumbnail": "https://serpapi.com/searches/6895ae51fc8a2b4359020342/images/83ef7be2113af3b1dc16130960c26922199e3ffa10344e1ca1378b60d62829e4.webp",
      "thumbnails": [
        "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSdSnOlUOeQILlAf35hqH-EsP2wUgF_qXI0G7t1XOubSVNhmIJsTDfCy5krL_5onSS3qzQAg6ihYq3me2wptSlGE45ckOV3"
      ],
      "serpapi_thumbnails": [
        "https://serpapi.com/images/url/yzRXvnicDcltCoIwAADQE_mRa0VChJSZIS5Ziv2SnNOJOje3EDtId-s29f6-74dpLZRrWZSTaRGaVoYuuW02Sj91S0wyDpZioxAtbw5y_z_Xi6tdQHCFOepTRJMw6r0aQCYvhq9uzpw250LmoR1s9SpHrxJnMRvCq7qf6uMCuykq4MgxBvKdeM2mZQ8JBurMQuM-8NeQdCgDP6DINcE"
      ],
      "delivery": "Free delivery"
    },
    ...
  ],
  "serpapi_pagination": {
    "next": "https://serpapi.com/search.json?device=desktop&engine=google_shopping&gl=us&google_domain=google.com&hl=en&q=Office+Chair&start=10"
  }
}