Links

Google Product API

Get product details by scraping the Google Product page. All you need is the product ID.
To enable this engine, set the engine=google_product parameter.
Fetching data from Google Products ensures you always deliver up to date information. With our Google Product API, you can now easily scrape product details directly from Google, knowing only the product ID.
Scrape Google Product Page

Google Product API Integration Examples

We will use following URL as an example for this request:
https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=<YOUR_API_KEY>&product_id=11607214845071611155

Ready to Use Google Product API Scraping Scripts

cURL
NodeJS
Python
PHP
Go
Java
.NET
Ruby
curl --request GET --url "https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155"
const http = require("https");
const options = {
"method": "GET",
"hostname": "serpapi.webscrapingapi.com",
"port": null,
"path": "/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
import http.client
conn = http.client.HTTPSConnection("serpapi.webscrapingapi.com")
conn.request("GET", "/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155")
.asString();
var client = new RestClient("https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://serpapi.webscrapingapi.com/v1?engine=google_product&api_key=YOUR_API_KEY&product_id=11607214845071611155")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body

Google Product API Parameters

#1: Query Parameter

Parameter
Type
Description
product_id Required
string
The ID of the product you want to scrape.

#2: Request Customisation Parameters

Parameter
Type
Description
device
string
The device used for your search. Can be set to desktop, mobile or tablet.

#3: Localisation Parameters

Parameter
Type
Description
google_domain
string
The Google domain that you want to use for your search.
location
string
Defines where you want the search to originate from. A list of all the geotargeting locations can be found here.
uule
string
The Google encoded location that you want to use for your search.
hl
string
The language you want to use for your Google search. List of supported languages
gl
string
The country you want to use for your Google search. List of supported countries

#4: Pagination Parameters

Parameter
Type
Description
start
int
The offset of the Google Search Results. Represents the number of results that you want to skip.

#5: Search Type Parameters

Parameter
Type
Description
offers
int
Set this parameter to fetch offers results. It can be set to 1 or true. More information can be found here.
specs
int
Set this parameter to fetch product specifications results. It can be set to 1 or true. More information can be found here.
reviews
int
Set this parameter to fetch product reviews results. It can be set to 1 or true. More information can be found here.

#6: Advanced Filters

Parameter
Type
Description
filter
string
This parameter applies filters and sorting rules only to offers results. It can have the following values: 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
{
"search_parameters": {
"google_url": "https://www.google.com/shopping/product/11607214845071611155?sourceid=chrome&ie=UTF-8",
"engine": "google",
"google_domain": "google.com",
"device": "desktop",
"query": "11607214845071611155"
},
"product_results": {
"title": "Smart TV LG 32LM6300PLA 32\" Full HD LED WiFi Black",
"reviews": 7,
"rating": 4.5,
"description": "If you're passionate about IT and electronics, like being up to date on technology and don't miss even the slightest details, buy Smart TV LG 32LM6300PLA 32\" Full HD LED WiFi Black at an unbeatable price. Colour: BlackBlackConnections: HDMIVideo by components - HDMI 2.0 x 3USB x 2RJ45 x 1CI x 1Resolution: Full HD1920 x 1080 px - Screen: 32\"Technology: LEDHDRProcessor: Quad Core - Tuner: DVB-T2/C/S2Connectivity: WiFiBluetooth 5.0Miracast - Sound: 10 WRecording: USBVESA: 20 x 20 cm - Operating System: web - OS 4.5AI Thin - QPower supply: Electric Network - Energy consumption: 50 kWh/annumEnergy classification: AIncludes: Power CordHolderRemote Control - Approx. dimensions: 73,6 x 43,7 x 8,29 cmLess",
"media": [
{
"type": "image",
"link": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcSD70LN0dBIzJ3-hH_9cfnK4tj1vu4KbRqIMbQgA8qxUcm1nFtSVWnL2mtg8g0K47HO_QtpvjLytq_g9M1pEmj0tmccDTdSjutegCcZrBE5teL4a95sSA&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcSNlSKc4f34dKkpjt41szEuYJi34wvbtUipasDs1QoWyNyK0pnNSlW22XO58n0icCyZbRy9A5i934PDbhIq72ZwB-qjscTZ7Ub1JLf26vJurpoo_kJuwT0&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcT_F0qaxfbk0hePIxqmX5ESWL6vAxw4ZHWXRBRTb55I-M02O7EXzP11KgWq_r9mO9oJUdnt_zUxR1FNH5GjSdc7cLD_OnjfbA80EYxpw6i15-sWX4S8qFc&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcTZ24rvO-JIOyf4YA_cn_r9e12djiANxYslpb-IUKnA3Xdnr75anHsHBP4ttXrgZE4vEJpBv_G4vSanItJ7TQj9YQX1_PjQFyFx9OiZT3ffEYypwayjSQ&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcTfUE-lRwM-KCO0RL2PkUneVRAIbYZjvsUCuXG_m667p4dC0QmsueQXfZm2OhAT3fB5B7HRAralkW5XuoZPwPQQWqvakTxWz7jsoK5U6nqbf3VwipUUAII&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcQtHsZZNomBZacpFoGQpfY_Rt-esNOlanPrRulZriJBVaAhXdiOPOFMUbOL0ucSbukYXEsoQS8I5k9gW_Ue0lbBOzYCH7YzXJr0pKzO1nSBXI_xxJT65sw&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcSwOr9qlt_KLBIr-phEPyzhIq9EymyhIUIZ_PhNLAvouBzxaI6G4YveVXKfUvyxEu3RsLLswTwqwoy-JpZ0lYELOTkdcc3UWHP09mABfilOlAEETUOhCoM&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSVnlAZ0X1SX0kCQ2yvhn7tXoCRb3Ex4jBS9Bf74d4KV_sSTLG2oZTbpH1kQAk4GTIEMhCASbG7IP89BshhNh-wC-3ifP7RhXyfNNOhcmRiyf92OrY93fo&usqp=CAY"
},
{
"type": "image",
"link": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcTuqkSaYsqMQtsp_FTRCmYP7sFhYbD4VXGdA41IBy9nAE-17AjI3jNGaiomps5NR7OzHipJ3hXGGxlcD-7DZZLxIoEFNyEFfkSgc0FsTI6tYkr88FyGaA&usqp=CAY"
}
]
},
"related_products": {
"same_brand": [
{
"link": "/shopping/product/7943992841279412564?sourceid=chrome&ie=UTF-8&prds=epd:826549669653449794,oid:826549669653449794&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIVA",
"title": "LG 50 inch 4K Smart UHD TV",
"price": "$549.95",
"extensions": [
"Higher Resolution",
"Higher Definition",
"Google Assistant",
"Amazon Alexa",
"Siri"
]
},
{
"link": "/shopping/product/5573739280958286389?sourceid=chrome&ie=UTF-8&prds=epd:11220637595558300754,oid:11220637595558300754&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIWA",
"title": "LG 24\" Class LM500-Series Smart ...",
"price": "$147.00",
"extensions": [
"Lower Resolution",
"Lower Definition",
"CEC Enabled",
"60 Hz",
"RF"
]
},
{
"link": "/shopping/product/6098332087268700551?sourceid=chrome&ie=UTF-8&prds=epd:14037990521478686185,oid:14037990521478686185&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIXA",
"title": "LG UHD 70 Series 50 inch Class ...",
"price": "$459.99",
"extensions": [
"Higher Resolution",
"Higher Definition",
"CEC Enabled",
"Google Assistant",
"Amazon Alexa"
]
},
{
"link": "/shopping/product/10443826041525645042?sourceid=chrome&ie=UTF-8&prds=epd:11582064360397833523,oid:11582064360397833523&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIYA",
"title": "Vizio D-Series 32\" Class ...",
"price": "$199.95",
"extensions": [
"Google Assistant",
"Amazon Alexa",
"Siri",
"Google Assistant",
"Amazon Alexa"
]
},
{
"link": "/shopping/product/7270684995632867673?sourceid=chrome&ie=UTF-8&prds=epd:7486941156823331516,oid:7486941156823331516&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIZA",
"title": "LG 32in 1366x768 LED LCD TV ...",
"price": "$287.99",
"extensions": [
"Lower Resolution",
"Lower Definition",
"CEC Enabled",
"60 Hz",
"IrDA"
]
},
{
"link": "/shopping/product/10151285021197632766?sourceid=chrome&ie=UTF-8&prds=epd:6288711368794146871,oid:6288711368794146871&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIaA",
"title": "LG 40LV340H LV340H 40\" LED-LCD ...",
"price": "$364.99",
"extensions": [
"With 24p Playback",
"60 Hz",
"IrDA",
"RF",
"VGA"
]
},
{
"link": "/shopping/product/5853797664658533129?sourceid=chrome&ie=UTF-8&prds=epd:4315271494221486350,oid:4315271494221486350&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIbA",
"title": "LG - 43\" LED 4K UHD N7000 webOS ...",
"price": "$389.24",
"extensions": [
"Higher Resolution",
"Higher Definition",
"CEC Enabled",
"Google Assistant",
"Amazon Alexa"
]
},
{
"link": "/shopping/product/691266230061727599?sourceid=chrome&ie=UTF-8&prds=epd:8761053087640592112,oid:8761053087640592112&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIcA",
"title": "LG 22LJ4540 22\" Full HD 1080p ...",
"price": "$169.99",
"extensions": [
"Fewer HDMI Ports",
"Anti-glare",
"With Energy Saving Mode"
]
},
{
"link": "/shopping/product/9562617417779013621?sourceid=chrome&ie=UTF-8&prds=epd:9823207611473645858,oid:9823207611473645858&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIdA",
"title": "LG UHD 70 Series 65\" 4K HDR LED ...",
"price": "$599.99",
"extensions": [
"Larger Screen",
"Higher Resolution",
"Higher Definition",
"CEC Enabled",
"Google Assistant"
]
},
{
"link": "/shopping/product/14579856646944579535?sourceid=chrome&ie=UTF-8&prds=epd:14696066638296134000,oid:14696066638296134000&sa=X&ved=0ahUKEwj09amp_ZnyAhWjEVkFHbE1D-YQrRIIeA",
"title": "LG 65nano90una NanoCell 90 ...",
"price": "$1,052.72",
"extensions": [
"Larger Screen",
"Higher Resolution",
"Higher Definition",
"CEC Enabled",
"Google Assistant"
]
}
]
},
"specs_results": {
"brand": "LG",
"part_numbers": "32LM6300, S0224968",
"gtin": "08806098382866"
},
"reviews_results": {
"ratings": [
{
"rating": 5307,
"stars": 5
},
{
"rating": 1396,
"stars": 4
},
{
"rating": 216,
"stars": 3
},
{
"rating": 97,
"stars": 2
},
{
"rating": 106,
"stars": 1
}
],
"reviews": [
{
"title": "A perfectly serviceable 32\" television.",
"date": "August 23, 2020",
"rating": 4,
"source": "Chris150 · Review provided by richersounds.com",
"content": "A perfectly serviceable 32\" television. Its support of Bluetooth means that I can listen to content via my Bluetooth headphones which I find useful at times. Not all 32\" televisions support Bluetooth (or even have a headphone socket).\n\nHowever, it's not without its problems.\n\nPerhaps the most serious problem is that there appears to be a fault which, when using some of the more smart-related features of the television, causes that feature to stop working and the television to revert to showing the most recently watched channel. A message is displayed a message at the top right of the screen saying:\n\"This app will now restart to free up more memory\"\n\nWhen I first encountered this error I was trying to play content from an external hard disk. Then every time I went into ... More",
"position": 1
}
]
}
}