Google Product Results API

/ Home / Google Search API / Product API

/search?engine=google_product API endpoint allows you to fetch the results from Google product pages via our SerpApi service. Head to the playground for a live and interactive demo. You can query https://serpapi.com/search?engine=google_product&product_id={product_id} using a GET request.

API Parameters

Search Query

product_id

Required

Parameter defines the product to get results for. Normally found from shopping results for supported products (e.g., https://www.google.com/shopping/product/{product_id}).

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 a more precise control. location and uule parameters can't be used together.

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 countries for a full list of supported Google countries.

hl

Optional

Parameter defines the language to use for the Google 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.

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, 10 is the 2nd page of results, 20 is the 3rd page of results, etc.) This parameter works only for Google Online Sellers, Local Sellers and Reviews.

page

Optional

Parameter defines the page number for Google Online Sellers, Local Sellers and Reviews. There are 10 results per page. This parameter is equivalent to start (offset) = page * 10. This parameter works only for Google Online Sellers, Local Sellers and Reviews.

num

Optional

Parameter defines the maximum number of results to return. (e.g., 10 (default) returns 10 results, 40 returns 40 results, and 100 returns 100 results). The highest number this may be set at is 25. This parameter works only for Google Online Sellers, Local Sellers and Reviews.

Search Type

sellers

Optional

Parameter for fetching sellers results. It can be set to local or online

specs

Optional

Parameter for fetching specs results. It can be set to 1 or true

reviews

Optional

Parameter for fetching reviews results. It can be set to 1 or true.

Advanced Filters

filter

Optional

Parameter defines filters and sorting for reviews and sellers results.

Sellers filters:
freeship:1 Show only products with free shipping
ucond:1 Show only used products
scoring:p Sort by base price
scoring:tp Sort by total price
scoring:cpd Sort by current promotion deals (special offers)
scoring:mrd Sort by sellers rating

Reviews filters:
rsort:0 Sort by relevance
rsort:1 Sort by date
pub:{source} {source} is where the review originated, e.g. Best Buy.

Serpapi Parameters

engine

Required

Set parameter to google_product to use the Google Product 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 (currently using iPhones).

no_cache

Optional

Parameter will force SerpApi to fetch the Google Product 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.

api_key

Optional

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.

API Results

JSON Results

JSON output includes structured data for product page, reviews results, specs results, online sellers, and local sellers.


A search status is accessible through search_metadata.status. It flows this way: Queued -> Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

HTML output is useful to debug JSON results or support features not supported yet by SerpApi.
HTML output gives you the raw HTML results from Google.

Product Results

Example with product_id:"4172129135583325756" parameter


JSON Example

{
  "search_metadata": {
    "id": "5fa3ae1d59603d0d50c2d9e9",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/4d7bfc62909c1a7c/5fa3ae1d59603d0d50c2d9e9.json",
    "created_at": "2020-11-05 07:47:41 UTC",
    "processed_at": "2020-11-05 07:47:41 UTC",
    "google_product_url": "https://www.google.com/shopping/product/4172129135583325756?sourceid=chrome&ie=UTF-8",
    "raw_html_file": "https://serpapi.com/searches/4d7bfc62909c1a7c/5fa3ae1d59603d0d50c2d9e9.html",
    "total_time_taken": 5.45
  },
  "search_parameters": {
    "engine": "google_product",
    "product_id": "4172129135583325756",
    "google_domain": "google.com",
    "device": "desktop"
  },
  "product_results": {
    "product_id": 4172129135583325756,
    "title": "Apple iPhone 12 Pro - 128 GB - Silver - AT&T",
    "reviews": 38,
    "rating": 4.0,
    "extensions": [
      "Apple",
      "iPhone",
      "iPhone 12 Pro",
      "iOS",
      "6.1″",
      "Facial Recognition",
      "12 MP front camera",
      "Smartphone",
      "With Wireless Charging",
      "AT&T"
    ],
    "description": "5G goes Pro. A14 Bionic rockets past every other smartphone chip. The iPhone 12 Pro features a 6.1” Super Retina XDR display, LiDAR scanner for ultrafast and accurate depth maps of whatever space you're in and MagSafe wireless charging. The Pro camera system takes low-light photography to the next level with Night mode available in both the Wide and Ultra Wide cameras, so it’s better than ever at capturing incredible low-light shots. And Ceramic Shield delivers four times better drop performance.",
    "media": [
      {
        "type": "image",
        "link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcQDYCaTc2z4hzdpIqZCvrAGiA9sgQvxZRR3DFSMFLGcvLkhOy1cwl9RGgrX-marXY5s0L_M9YZb4nHqmAglcK5HTk7go-g2fBlf3G0YSZWyM6L5Fgoz5tk&usqp=CAY"
      },
      {
        "type": "image",
        "link": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcS1MdeEFTGSg_6a6-AzxfAeTt9wzQwe0oM-qVtNhxz8pQPAxE8DDHvyzm4OIl7xfXi4faOpyIWDwCJXzo79L9iFbzVXEaN6Xw&usqp=CAY"
      },
      {
        "type": "image",
        "link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSBnkSVPLstQi4uo5Oknme6Byxp_u0Xx_lcJnkf2xBtQfAmr5qhck6_fe1i1EXjSTEGAhyC4fg-K2jB7qg8Yir4HdF4DcE&usqp=CAY"
      },
      {
        "type": "image",
        "link": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcS1MdeEFTGSg_6a6-AzxfAeTt9wzQwe0oM-qVtNhxz8pQPAxE8DDHvyzm4OIl7xfXi4faOpyIWDwCJXzo79L9iFbzVXEaN6Xw&usqp=CAY"
      }
    ]
  },
  "sellers_results": {
    "online_sellers": [
      {
        "position": 1,
        "name": "Apple",
        "link": "https://www.google.com/aclk?sa=L&ai=DChcSEwihuKX-9OrsAhXKH60GHYRVBZ0YABAEGgJwdg&sig=AOD64_3VdWeKHq7e7U4SviawipclloDDWQ&ctype=5&q=&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQ2ikIUQ&adurl=",
        "base_price": "$0.00 now+$33.30 for 30 mo",
        "additional_price": {
          "tax": "$0.00",
          "shipping": "$97.40"
        },
        "total_price": "$1,096.40"
      },
      {
        "position": 2,
        "name": "AT&T",
        "link": "https://www.google.com/aclk?sa=L&ai=DChcSEwihuKX-9OrsAhXKH60GHYRVBZ0YABADGgJwdg&sig=AOD64_3wqm0fYbvGjatj7HjNSbOWmfnhOQ&ctype=5&q=&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQ2ikIVw&adurl=",
        "base_price": "$0.00 now+$33.34 for 30 mo",
        "additional_price": {
          "tax": "$0.00",
          "shipping": "$97.52"
        },
        "total_price": "$1,097.72"
      },
      {
        "position": 3,
        "name": "Cricket Wireless",
        "link": "https://www.google.com/aclk?sa=L&ai=DChcSEwihuKX-9OrsAhXKH60GHYRVBZ0YABAFGgJwdg&sig=AOD64_0ULpgj5hDAvS62YN05SNHCFiMT6g&ctype=5&q=&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQ2ikIXQ&adurl=",
        "base_price": "$899.99",
        "additional_price": {
          "tax": "$0.00",
          "shipping": "$87.75"
        },
        "total_price": "$987.74"
      }
    ]
  },
  "related_products": {
    "different_brand": [
      {
        "title": "Apple iPhone 11 Pro Max 512gb ...",
        "link": "https://www.google.com/shopping/product/1020244195224082533?sourceid=chrome&ie=UTF-8&prds=epd:4230129420555329768,oid:4230129420555329768&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIZg",
        "price": "$4,500.00",
        "extensions": [
          "More Storage",
          "More SIM Slots",
          "Older Broadband Generation",
          "Unlocked",
          "2688 x 1242"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/12268963920491633248?sourceid=chrome&ie=UTF-8&prds=epd:15517668619462736101,oid:15517668619462736101&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIag",
        "price": "$35.37",
        "extensions": [
          "Sprint",
          "Black",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 256 GB ...",
        "link": "https://www.google.com/shopping/product/17249827133838496377?sourceid=chrome&ie=UTF-8&prds=epd:9804832657962368550,oid:9804832657962368550&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIbg",
        "price": "$39.54",
        "extensions": [
          "Sprint",
          "Black",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/9955406622169157860?sourceid=chrome&ie=UTF-8&prds=epd:2877093884548441199,oid:2877093884548441199&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIcg",
        "price": "$35.37",
        "extensions": [
          "Sprint",
          "PRODUCT(RED) Special Edition",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/1398435809383470316?sourceid=chrome&ie=UTF-8&prds=epd:93768119573329181,local:1,oid:93768119573329181,prmr:2&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIdg",
        "price": "$879.99",
        "extensions": [
          "T-Mobile",
          "Black",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 11 Pro - 512 GB ...",
        "link": "https://www.google.com/shopping/product/10799312067907865279?sourceid=chrome&ie=UTF-8&prds=epd:14348038466379706408,oid:14348038466379706408&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIeg",
        "price": "$4,700.00",
        "extensions": [
          "More Storage",
          "More SIM Slots",
          "Older Broadband Generation",
          "Unlocked",
          "2436 x 1125"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/3805205938126402128?sourceid=chrome&ie=UTF-8&prds=epd:2029527556534871550,oid:2029527556534871550&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIfg",
        "price": "$879.99",
        "extensions": [
          "More SIM Slots",
          "Unlocked",
          "Lightning",
          "GSM",
          "CDMA"
        ]
      },
      {
        "title": "Apple iPhone 11 Pro Max 512gb ...",
        "link": "https://www.google.com/shopping/product/879190210489996703?sourceid=chrome&ie=UTF-8&prds=epd:9097175732969277083,oid:9097175732969277083&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIggE",
        "price": "$1,299.99",
        "extensions": [
          "More Storage",
          "More SIM Slots",
          "Older Broadband Generation",
          "Unlocked",
          "2688 x 1242"
        ]
      },
      {
        "title": "Apple iPhone 12 Pro Max - 256 ...",
        "link": "https://www.google.com/shopping/product/2304871264922459081?sourceid=chrome&ie=UTF-8&prds=epd:7248169223031758938,oid:7248169223031758938&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIhgE",
        "price": "$2,249.00",
        "extensions": [
          "More SIM Slots",
          "Larger Screen",
          "Unlocked",
          "Lightning",
          "GSM"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB - Blue ...",
        "link": "https://www.google.com/shopping/product/14355312768187389689?sourceid=chrome&ie=UTF-8&prds=epd:14947121488111147500,oid:14947121488111147500&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIiQE",
        "price": "$35.37",
        "extensions": [
          "Sprint",
          "Blue",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/13834348762876695903?sourceid=chrome&ie=UTF-8&prds=epd:5801734502900384805,oid:5801734502900384805&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIjQE",
        "price": "$0.00",
        "extensions": [
          "Black",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 11 Pro Max, 512GB ...",
        "link": "https://www.google.com/shopping/product/78126906216813536?sourceid=chrome&ie=UTF-8&prds=epd:349922178630740776,oid:349922178630740776&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIkQE",
        "price": "$969.99",
        "extensions": [
          "More Storage",
          "More SIM Slots",
          "Older Broadband Generation",
          "Unlocked",
          "2688 x 1242"
        ]
      },
      {
        "title": "Apple iPhone 12 - 256 GB - Blue ...",
        "link": "https://www.google.com/shopping/product/5242420177016264142?sourceid=chrome&ie=UTF-8&prds=epd:6313430741735217418,oid:6313430741735217418&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIlQE",
        "price": "$39.54",
        "extensions": [
          "Sprint",
          "Blue",
          "Dual Lens",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 64 GB - Black ...",
        "link": "https://www.google.com/shopping/product/8723398810561324111?sourceid=chrome&ie=UTF-8&prds=epd:17044693462136482517,oid:17044693462136482517&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIImQE",
        "price": "$0.00",
        "extensions": [
          "More SIM Slots",
          "Unlocked",
          "Lightning",
          "GSM",
          "CDMA"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/14006401347372489646?sourceid=chrome&ie=UTF-8&prds=epd:13850728532372424821,oid:13850728532372424821&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIInQE",
        "price": "$35.37",
        "extensions": [
          "T-Mobile",
          "Blue",
          "With OLED Display",
          "Available Nearby"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/17438281481635899605?sourceid=chrome&ie=UTF-8&prds=epd:8857804736152065666,oid:8857804736152065666&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIoQE",
        "price": "$0.00",
        "extensions": [
          "More SIM Slots",
          "Unlocked",
          "Lightning",
          "GSM",
          "CDMA"
        ]
      },
      {
        "title": "Apple iPhone 11 Pro 512gb Space ...",
        "link": "https://www.google.com/shopping/product/6452347297097003825?sourceid=chrome&ie=UTF-8&prds=epd:4630366698306463964,oid:4630366698306463964&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIpQE",
        "price": "$899.99",
        "extensions": [
          "More Storage",
          "Unlocked",
          "Space Gray",
          "Dual Lens",
          "With OLED Display"
        ]
      },
      {
        "title": "Apple iPhone 12 - 256 GB - Blue ...",
        "link": "https://www.google.com/shopping/product/3007678576428313497?sourceid=chrome&ie=UTF-8&prds=epd:8906921713499289097,oid:8906921713499289097&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIqQE",
        "price": "$0.00",
        "extensions": [
          "More SIM Slots",
          "Unlocked",
          "Lightning",
          "GSM",
          "CDMA"
        ]
      },
      {
        "title": "Apple iPhone 11 Pro Max 256gb ...",
        "link": "https://www.google.com/shopping/product/5054544213938769512?sourceid=chrome&ie=UTF-8&prds=epd:2384128908180343198,oid:2384128908180343198&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIrQE",
        "price": "$0.00",
        "extensions": [
          "More SIM Slots",
          "Older Broadband Generation",
          "Verizon",
          "2688 x 1242",
          "Lightning"
        ]
      },
      {
        "title": "Apple iPhone 12 - 128 GB ...",
        "link": "https://www.google.com/shopping/product/7975654800474968733?sourceid=chrome&ie=UTF-8&prds=epd:2087928804052279509,oid:2087928804052279509&sa=X&ved=0ahUKEwivnaP-9OrsAhWpHjQIHem9DHAQrhIIsQE",
        "price": "$0.00",
        "extensions": [
          "Verizon",
          "Blue",
          "Dual Lens",
          "With OLED Display"
        ]
      }
    ]
  },
  "specs_results": {
    "universal_product_identifiers": {
      "brand": "Apple",
      "part_number": "MGJN3LL/A",
      "gtin": "00194252036181"
    }
  },
  "reviews_results": {
    "ratings": [
      {
        "stars": 1,
        "amount": 7
      },
      {
        "stars": 2,
        "amount": 1
      },
      {
        "stars": 3,
        "amount": 1
      },
      {
        "stars": 4,
        "amount": 2
      },
      {
        "stars": 5,
        "amount": 27
      }
    ],
    "reviews": [
      {
        "position": 1,
        "title": "Let’s talk about this great 5G!! No more 3G support!!",
        "date": "October 24, 2020",
        "rating": 1,
        "source": "Corey · Review provided by vzw.com",
        "content": "I purchased a IPhone 12 Pro to replace my IPhone X, the phone still worked but it’s three years old and figured it was a good time to upgrade. Overall the new one is exactly the same as the X with a better camera. Oh let’s not forget the IPhone 12 pro has the blazing fast 5G we all have to have because our phones just aren’t fast enough! Unfortunately getting the 5G has come at a huge cost the iPhone 12 will not run on 3G so you better check your coverage maps and make sure the areas you need your phone support 5G or LTE. In the future this may not be a big deal but right now I can tell you 3G is still very important in areas of Las Vegas!! I guess if you are planning on staying in the city and don’t plan on doing any exploring outside of the city the lack of 5G will not be a problem for you. I will be taking my IPhone 12 and X out this weekend to do some side by side comparison to see how much service area I have lost. Also at my house I am at 1 Bar in 5G or LTE."
      }
    ]
  }
}