Google 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
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.
Localization
google_domain
Optional
Parameter defines the Google domain to use. It defaults to google.com
. Head to the Google domains page 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 page for a full list of supported Google countries.
hl
Optional
Parameter defines the language to use for the Google Product 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 page 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 and Reviews.
page
Optional
Parameter defines the page number for Google Online 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 and Reviews.
Advanced Filters
filter
Optional
Parameter defines filters and sorting for reviews and offers results.
Offers filters:freeship:1
Show only products with free shippingucond:1
Show only used productsscoring:p
Sort by base pricescoring:tp
Sort by total pricescoring:cpd
Sort by current promotion deals (special offers)scoring:mrd
Sort by sellers rating
Reviews filters:rsort:0
Sort by relevancersort:1
Sort by datepub:{source}
{source} is where the review originated, e.g. Best Buyrnum:{number}
Number of results (100 is max). rnum
takes the precedence over the start
and page
parametersrpt:{number}
Encoded pagination offset (check serpapi_pagination.next
for the value)
Serpapi Parameters
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 Results
JSON Results
JSON output includes structured data for product page, reviews results, specs results, and online sellers.
A search status is accessible through search_metadata.status
. It flows this way: 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.
API Examples
JSON structure overview
{
...
"product_results": {
"product_id": "String - Product ID",
"title": "String - Product title",
"reviews": "Integer - Number of reviews",
"rating": "Float - Rating",
"extensions": "Array - Product extensions",
"description": "String - Product description",
"media": [
{
"type": "String - Media type",
"link": "String - Link to the media"
},
],
"prices": [
{
"price": "Float - Price of the item",
"conditions": "Array - Conditions of the item",
"typical_prices": {
"low": "Float - Low price of the item",
"high": "Float - High price of the item",
"shown_price": "Float - Shown price of the item",
}
},
],
"sizes": {
"size of the item": {
"link": "String - Link to the item with the size",
"product_id": "String - Product ID of the item with the size",
"serpapi_link": "String - SerpApi link to the item",
"selected": "Boolean - Is the size selected",
},
},
"highlights": "Array - Product highlights",
"features": [
{
"name": "String - Feature name",
"text": "String - Feature description",
},
],
},
"sellers_results": {
"online_sellers": {
"position": "Integer - Position of the seller",
"name": "String - Name of the seller",
"rating": "String - Rating of the seller",
"link": "String - Link to the seller",
"base_price": "String - Base price of the item",
"additional_price": {
"tax": "String - Tax price of the item",
"shipping": "String - Shipping price of the item",
},
"badge": "String - Pricing status tag (Low Price, Great Pick, etc.)",
"total_price": "String - Total price of the item",
"installments": "String - Installments of the item",
"condition": "String - Condition of the item",
},
"local_sellers": {
"position": "Integer - Position of the seller",
"name": "String - Name of the seller",
"address": "String - Address of the seller",
"number": "String - Phone number of the seller",
}
},
"related_products": {
"different_brand": [
"title": "String - Title of the brand",
"link": "String - Link to the brand",
"thumbnail": "String - Thumbnail of the brand",
"price": "String - Price of the item",
"rating": "Float - Rating of the item",
"reviews": "Integer - Number of reviews of the item",
"extensions": "Array - Extensions of the item",
]
},
"specs_results": {
"universal_product_identifiers": {
"brand": "String - Brand of the item",
"gtin": "String - GTIN of the item",
"part_number": "String - Part number of the item",
}
},
"reviews_results": {
"ratings": [
{
"stars": "Integer - Number of stars",
"amount": "Integer - Number of reviews",
}
],
"reviews": [
{
"position": "Integer - Position of the review",
"title": "String - Title of the review",
"date": "String - Date of the review",
"rating": "Integer - Rating of the review",
"source": "String - Source of the review",
"content": "String - Content of the review",
}
]
},
"product_variations": [
{
"thumbnail": "String - Thumbnail of the item",
"link": "String - Link to the item",
"serpapi_link": "String - SerpApi link to the item",
}
],
"potential_interests": [
{
"title": "String - Title of the item",
"link": "String - Link to the item",
"extensions": "Array - Extensions of the item",
}
]
...
}
Example with product_id: 4172129135583325756

{
"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",
"rating": 4.5,
"reviews": 30,
"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",
"rating": 4.5,
"reviews": 56,
"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",
"rating": 4.5,
"reviews": 56,
"extensions": [
"Sprint",
"Black",
"Dual Lens",
"With OLED Display",
"Available Nearby"
]
},
...
]
},
"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."
}
]
},
"product_variations": [
{
"thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRRHuZzJFr0Cgk1lTV2RWPBuOA2xrvkDQPqC3NYnOhJ1wHMfs4TbsDojI62H8kppx8CcaETvZJ1cLTqh6Gv_I6_6evFuIEeUvfAbfj2iDNHH1gf9Y8hMLU&usqp=CAY"
},
{
"link": "https://www.google.com/shopping/product/6365527044486619718?hl=en&gl=us&prds=opd:11579479524734831751,rsk:PC_15321614589434804038&sa=X&ved=0ahUKEwi5uYLv7bv5AhVIBzQIHeoaAqoQlIUHCDEoAQ",
"serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=6365527044486619718",
"thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSur_JWdJlOrgxT8Jb-QaNlalV2FCsIlA47tw6UjyncUD0LXT62oBhsUQax7zq6Y3kPw51EyFURNb037ftJBU7qbS86irdBRtrgIMVqk_Tr5NHQmlaiDbE&usqp=CAY"
},
{
"link": "https://www.google.com/shopping/product/14610189294058381957?hl=en&gl=us&prds=opd:11579479524734831751,rsk:PC_15321614589434804038&sa=X&ved=0ahUKEwi5uYLv7bv5AhVIBzQIHeoaAqoQlIUHCDIoAg",
"serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=14610189294058381957",
"thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcQow-v145FgFDRUgtmNl46V0Gks-XOUsNH_lrsIehUIkBP6nx--b8f-AjmZz_e9fwTW1CmQNaFNfGHJrIVJuCVxaosOayopJPs8TjT1gyoH8laCThmSmg&usqp=CAY"
},
...
]
}
Example with product_id: 13760655462333557929

{
"search_metadata": {
"id": "6469f89d944893218434cb05",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/184a4fd7b8476fbd/6469f89d944893218434cb05.json",
"created_at": "2023-05-21 10:55:25 UTC",
"processed_at": "2023-05-21 10:55:25 UTC",
"google_product_url": "https://www.google.com/shopping/product/13760655462333557929?sourceid=chrome&ie=UTF-8&hl=en&gl=us",
"raw_html_file": "https://serpapi.com/searches/184a4fd7b8476fbd/6469f89d944893218434cb05.html",
"total_time_taken": 2.53
},
"search_parameters": {
"engine": "google_product",
"product_id": "13760655462333557929",
"google_domain": "google.com",
"hl": "en",
"gl": "us",
"device": "desktop"
},
"product_results": {
"product_id": 13760655462333559000,
"title": "Nike (GS) Court Borough Low 2 SE White/Pink Foam",
"prices": [
"$64.99",
"$91.00",
"$59.99"
],
"conditions": [
"New",
...
],
"typical_prices": {
"shown_price": "$64.99 at Rack Room Shoes"
},
"reviews": 75,
"rating": 4.5,
"extensions": [
"Kids'",
"Girls'",
"3½",
...
],
"description": "The Nike Court Borough Low 2 brings the power of pink to future all-stars. From the laces to the Swoosh design to the sole, pink isn’t just a color on these kicks—it’s an attitude! Made to be durable, these shoes have a classic look and feel that’s ready for everyday play.",
"media": [
{
"type": "image",
"link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSpbuYxPLjd8AQizNvrCBUe_AvXqPlxWpmVf3kGixzPWbtfytFBsme2Lom6NVEb64J4x4lT1lG_FTNXzApwtizUT3K2FHks-A&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcTySMSzfhW_V10FygjIwE1Qb9LYYnEE2Ps3y6-ZuMlocGO4REKusphBdyXSDaBCRHo34ZzS32z3c2fxPi2K6vsSaDbrZoBweA&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcRNps3SiB9_VELdCuxTyAyDS7bwWMPuIvC6yAd7rYDj80gxLWa_RahGdDSjD_kKyrmHyucqSy6TOxHEw677FC3CEAIs4boHaQ&usqp=CAY"
},
...
],
"sizes": {
"3½": {
"selected": true,
"link": "https://www.google.com/shopping/product/13760655462333557929?sourceid=chrome&ie=UTF-8&hl=en&gl=us",
"product_id": "13760655462333557929",
"serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=13760655462333557929"
},
"4": {
"link": "https://www.google.com/shopping/product/16748689037218953213?hl=en&gl=us&sourceid=chrome&prds=opd:12750616024154186761,rsk:PC_263454006115427060&sa=X&ved=0ahUKEwiAnP3wn4b_AhUtkokEHUyRC6QQlIUHCEAoAQ",
"product_id": "16748689037218953213",
"serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=16748689037218953213"
},
"4½": {
"link": "https://www.google.com/shopping/product/13366448601301049748?hl=en&gl=us&sourceid=chrome&prds=opd:12750616024154186761,rsk:PC_263454006115427060&sa=X&ved=0ahUKEwiAnP3wn4b_AhUtkokEHUyRC6QQlIUHCEEoAg",
"product_id": "13366448601301049748",
"serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_product&gl=us&google_domain=google.com&hl=en&product_id=13366448601301049748"
},
...
},
"highlights": [
"Built to Last.",
"Real and synthetic leather give these kicks a classic court look that's durable. Ground Control.",
...
]
},
"sellers_results": {
"online_sellers": [
{
"position": 1,
"name": "Rack Room Shoes",
"link": "https://www.google.com/url?q=https://www.rackroomshoes.com/p/court-borough-2-low-top-sneaker/807984%3Futm_source%3Dgoogle%26utm_medium%3Dorganicshopping%26utm_campaign%3Dnike&sa=U&ved=0ahUKEwiAnP3wn4b_AhUtkokEHUyRC6QQ2ykIZQ&usg=AOvVaw3C2rFhtdkCJxbRnLbCQzSE",
"base_price": "$64.99",
"additional_price": {
"shipping": "$8.99",
"tax": "$6.47"
},
"total_price": "$80.45"
},
{
"position": 2,
"name": "StockX",
"link": "https://www.google.com/url?q=https://stockx.com/nike-court-borough-low-2-se-white-pink-foam-gs%3Fcountry%3DUS%26currencyCode%3DUSD%26size%3D3.5Y%26srsltid%3DAR57-fC2kGq9pm2-OFAErXkbjs1pmkFPCxW1gikv1FbGbYQkEhKSpyC5JyU&sa=U&ved=0ahUKEwiAnP3wn4b_AhUtkokEHUyRC6QQ2ykIbQ&usg=AOvVaw2a4SEaocVWXYUmFbUbL1vZ",
"base_price": "$91.00",
"additional_price": {
"shipping": "$19.90",
"tax": "$10.92"
},
"total_price": "$121.82"
},
{
"position": 3,
"name": "Shiekh",
"link": "https://www.google.com/url?q=https://www.shiekh.com/nike-gs-court-borough-low-2-se-white-pink-foam.html%3Fsrsltid%3DAR57-fB4dFhMUap2xJuNfHOTJ-iABSY4SmhB5CpzByxgoo9UUAIqlpRSwY4&sa=U&ved=0ahUKEwiAnP3wn4b_AhUtkokEHUyRC6QQ2ykIcQ&usg=AOvVaw3xjKIjjwVaW8hD_7vxsuJU",
"base_price": "$59.99",
"additional_price": {
"shipping": "$13.30",
"tax": "$4.65"
},
"total_price": "$77.94"
},
...
]
},
"specs_results": {
"general": {
"product_type": "Casual Shoes",
"color": "Pink/White",
"shoe_size": "3.5"
}
},
"reviews_results": {
"ratings": [
{
"stars": 1,
"amount": 6
},
{
"stars": 2,
"amount": 2
},
...
],
"reviews": [
{
"position": 1,
"title": "I’m not happy AT ALL",
"date": "November 7, 2022",
"rating": 2,
"source": "Janelle T. · Review provided by jimmyjazz.com",
"content": "I’m not happy AT ALL that I can’t do an exchange in the store!!! The shoes are too big for my daughter and I want to just exchange them for the SAME style of shoe in the actual store so she has her shoes but it’s not an option!!! They don’t allow exchanges if you purchase online, SAME COMPANY mind you!!! So now I have to send them back WAIT for a refund then go get her more shoes. This is such a inconvenience!!!! I think this will be my last time buying from this company. "
}
]
}
}