Google Product API
Using Google Product API you can scrape Google Product results without worrying about proxy rotation and data parsing. Our API is fast and reliable.
Each successful request will cost you 5
API credits.
You have to send a GET request to http://api.scrapingdog.com/google_product
with the below-given parameters.
Google Product API pricing is available here.
Parameters
Parameter | Description |
---|---|
api_key required | Your personal API key. Available on your dashboard Type: String |
product_id required | The id of the Google Shopping Product you want to get results for. It can be found from the URL: |
country | This is the ISO code of the country from which you are seeking Google search results.
Default Value - Type - String |
page | This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on. This parameter is used for pagination and can only be used with online sellers and reviews. Default Value - |
filters | This parameter is used for filtering and sorting reviews and offers results.
Type: |
uule | Used to encode a place in an exact location(with latitude and longitude) into a value used in a cookie, a URL, or an HTTP header.
Type: |
Search Type
type | description |
---|---|
offers | It is used for scraping offers results. It can be set to 1.
Default: |
specs | It is used for scraping product specifications. It can be set to 1.
Default: |
reviews | It is used for scraping product reviews. It can be set to 1.
Default: |
Some relevant values for "filters" parameter in the offers results
| It shows only used products |
| It sorts the results by base price |
| It sorts the results by total price |
| It sorts the results by current promotion deals (special offers) |
| It sorts the results by sellers score or rating |
| It shows products with free shipping only. |
API Example
curl "https://api.scrapingdog.com/product?product_id=2515929089120399478&country=us&api_key=APIKEY"
import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/google_product"
params = {
"api_key": api_key,
"product_id": "2515929089120399478",
"country": "us"
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
const axios = require('axios');
const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const url = 'https://api.scrapingdog.com/google_product';
const params = {
api_key: api_key,
product_id: '2515929089120399478',
country: 'us'
};
axios
.get(url, { params: params })
.then(function (response) {
if (response.status === 200) {
const data = response.data;
console.log(data)
} else {
console.log('Request failed with status code: ' + response.status);
}
})
.catch(function (error) {
console.error('Error making the request: ' + error.message);
});
<?php
// Set the API key and request parameters
$api_key = '5eaa61a6e562fc52fe763tr516e4653';
$product_id = '2515929089120399478';
$country = 'us';
// Set the API endpoint
$url = 'https://api.scrapingdog.com/google_product/?api_key=' . $api_key . '&product_id =' . $product_id . '&country=' . $country;
// Initialize cURL session
$ch = curl_init($url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute the cURL request
$response = curl_exec($ch);
// Check if the request was successful
if ($response === false) {
echo 'cURL error: ' . curl_error($ch);
} else {
// Process the response data as needed
echo $response;
}
// Close the cURL session
curl_close($ch);
require 'net/http'
require 'uri'
# Set the API key and request parameters
api_key = '5eaa61a6e562fc52fe763tr516e4653'
product_id = '2515929089120399478'
country = 'us'
# Construct the API endpoint URL
url = URI.parse("https://api.scrapingdog.com/google_product/?api_key=#{api_key}&product_id=#{product_id}&country=#{country}")
# Create an HTTP GET request
request = Net::HTTP::Get.new(url)
# Create an HTTP client
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true # Enable SSL (https)
# Send the request and get the response
response = http.request(request)
# Check if the request was successful
if response.is_a?(Net::HTTPSuccess)
puts response.body # Process the response data as needed
else
puts "HTTP request failed with code: #{response.code}, message: #{response.message}"
end
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
try {
// Set the API key and request parameters
String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
String product_id = "2515929089120399478";
String country = "us";
// Construct the API endpoint URL
String apiUrl = "https://api.scrapingdog.com/google_product/?api_key=" + apiKey
+ "&product_id =" + product_id
+ "&country=" + country
// Create a URL object from the API URL string
URL url = new URL(apiUrl);
// Open a connection to the URL
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
// Set the request method to GET
connection.setRequestMethod("GET");
// Get the response code
int responseCode = connection.getResponseCode();
if (responseCode == 200) {
// Read the response from the connection
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = reader.readLine()) != null) {
response.append(inputLine);
}
reader.close();
// Process the response data as needed
System.out.println(response.toString());
} else {
System.out.println("HTTP request failed with response code: " + responseCode);
}
// Close the connection
connection.disconnect();
} catch (IOException e) {
e.printStackTrace();
}
}
}
Response
{
"product_results": {
"title": "Google Pixel 6 Pro 5G Unlocked (128GB) - Cloudy White",
"prices": [
"$899.00",
"$888.00",
"$609.99"
],
"conditions": [
"Refurbished item"
],
"typical_prices": {
"low": "$649.00",
"high": "$899.00",
"shown_price": "$899.00 at Google Store"
},
"reviews": "3,963",
"rating": "3.7",
"features": [
"The powerful Google Tensor processor is the first processor designed by Google and made for Pixel; takes performance to a whole new level",
"Advanced camera system with wide and ultrawide lenses, 4x optical zoom, and a main sensor that captures 150% more light",
"Pixel’s fast charging all day battery adapts to you and saves power for apps you use the most",
"Keeps your phone protected with the next gen Titan M2 chip, 5 years of security updates, and the most hardware layers of any phone",
"What's in the box: USB Cable & Cell Phone"
],
"extensions": [
"Smartphone",
"Dual SIM",
"Android",
"5G",
"With Wireless Charging",
"With Fast Charging",
"Triple Lens",
"GSM",
"With OLED Display",
"Fingerprint Scanner"
]
},
"online_sellers": [
{
"position": 1,
"name": "store.google.com",
"link": "https://google.com/url?q=https://store.google.com/us/config/pixel_6_pro%3Fhl%3Den-US&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIbQ&usg=AOvVaw0ls6g_Q7lmXUA-8N0xv7yX",
"delivery": "Free delivery by Sun, Oct 9",
"base_price": "$899.00",
"total_price": "$968.67"
},
{
"position": 2,
"name": "www.visible.com",
"link": "https://google.com/url?q=https://www.visible.com/shop/smartphones/google-pixel-6-pro/%3Fsku%3DGA03150-US%3Futm_source%3Dgoogle_feed%26utm_medium%3Dsurfaces%26utm_campaign%3Dshopping_feed%26utm_term%3Dunpaid%26utm_content%3Dgoogle_unpaid_shopping&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIcA&usg=AOvVaw248BJdz66UYDTpYA5l-69U",
"delivery": "Free delivery by tomorrow14-day returns",
"base_price": "$888.00",
"total_price": "$956.82"
},
{
"position": 3,
"name": "www.ebay.com",
"link": "https://google.com/url?q=https://www.ebay.com/itm/165641118590%3Fchn%3Dps%26mkevt%3D1%26mkcid%3D28%26var%3D465154727621&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIdw&usg=AOvVaw0znhyVTnuMwX-X9UrCzyPG",
"delivery": "Free delivery by Wed, Sep 21",
"base_price": "$609.99",
"total_price": "$657.26"
},
{
"position": 4,
"name": "www.shopping.com",
"link": "https://google.com/url?q=https://www.shopping.com/item.html%3Fid%3Dv1-304453355887-0%26offer%3Dtrue%26provider%3D0%26itemId%3Dv1-304453355887-0%26a%3DitemName_Google%2BPixel%2B6%2BPro%2B128GB%2B(Unlocked)%2B6.7%2522%2BCloudy%2BWhite%2BGA03150-US%2B-%2BSealed!%26zipCode%3D95125%26trackableItemId%3Dv1-304453355887-0%26trackFor%3DEPN&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIfA&usg=AOvVaw36Xzm7xkLVB5QQepyXoaap",
"delivery": "Delivery date & cost shown at checkout",
"base_price": "$749.99",
"total_price": "$808.11"
},
{
"position": 5,
"name": "www.newegg.com",
"link": "https://google.com/url?q=https://www.newegg.com/p/23B-001E-00311%3Fitem%3D9SIAEJWG9S7520%26nm_mc%3Dknc-googleadwords%26cm_mmc%3Dknc-googleadwords-_-cell%2520phones%2520-%2520unlocked%2520cell%2520phones-_-google-_-9SIAEJWG9S7520%26source%3Dregion&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIfw&usg=AOvVaw3rVJ7nEMODNGPVJBXKs1RA",
"delivery": "Free delivery",
"base_price": "$965.00",
"total_price": "$1,039.79"
},
{
"position": 6,
"name": "fusionelectronix.com",
"link": "https://google.com/url?q=https://fusionelectronix.com/google-pixel-6-pro-5g-android-phone-unlocked-smartphone-with-advanced-pixel-camera-and-telephoto-lens/%3Fsku%3DGA03150-US%26srsltid%3DAdGWZVRzWpdUEMLahHsKdQRMV8gVdrJKSwfFWD2tAb8JvAOt8UIpVVbupZE&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIggE&usg=AOvVaw2BZuMz993whf8B776krIdW",
"delivery": "Free delivery by Thu, Sep 2230-day returns",
"base_price": "$849.99",
"total_price": "$926.49"
},
{
"position": 7,
"link": "https://google.comundefined",
"delivery": "Free delivery by Thu, Sep 22Free deliveryFree delivery means no shipping and service fees. Orders must meet store minimums before taxes and fees in select delivery areas.Discount shown at checkout30-day returnsReturn policyIf anything goes wrong with this order, you can count on Google to help.",
"base_price": "$849.99",
"total_price": "$915.86"
},
{
"position": 8,
"name": "www.designinfo.in",
"link": "https://google.com/url?q=https://www.designinfo.in/google-pixel-smartphone/google-pixel-6-pro-5g-android-phone-unlocked-smartphone-with-advanced-pixel-camera-and-telephoto-lens-128gb-cloudy-white-Buy-India-12292.html%3FSubmitCurrency%3D1%26id_currency%3D3&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIpwE&usg=AOvVaw3OU429UoWYFBn6KC-D6nEC",
"delivery": "Free delivery by Wed, Sep 14Free 7-day returns",
"base_price": "$1,038.16",
"total_price": "$1,038.16"
},
{
"position": 9,
"name": "brookpad.com",
"link": "https://google.com/url?q=https://brookpad.com/products/google-pixel-6-pro-5g-android-phone-unlocked-smartphone-with-advanced-pixel-camera-and-telephoto-lens-128gb-cloudy-white%3Fvariant%3D42795043422447%26currency%3DUSD%26utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_campaign%3DEFLcomEN%2520USD%26utm_content%3DGoogle%2520Pixel%25206%2520Pro%2520-%25205G%2520Android%2520Phone%2520-%2520Unlocked%2520Smartphone%2520with%2520Advanced%2520Pixel%2520Camera%2520and%2520Telephoto%2520Lens%2520-%2520128GB%2520-%2520Cloudy%2520White&sa=U&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQ2ykIrgE&usg=AOvVaw2Y8vMFR7WWCHbJkaWXnYrY",
"delivery": "Free delivery",
"base_price": "$779.00",
"total_price": "$839.37"
}
],
"related_products": [
{
"title": "Apple iPhone 11 64GB A2223 Dual ...",
"link": "https://google.com/shopping/product/15803068371519325321?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:10631478861498867201,oid:10631478861498867201,pid:8943183604683076901,rsk:PC_8023149794696260886&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhIIvAE",
"price": "$383.00"
},
{
"title": "Apple iPhone 13 Pro Max - 128 ...",
"link": "https://google.com/shopping/product/437651240330897754?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:12092745641898811330,oid:12092745641898811330,pid:16627194887412580682,rsk:PC_8217023720749633348&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhIIwAE",
"price": "$1,505.00"
},
{
"title": "Samsung Galaxy Z Flip4 256GB ...",
"link": "https://google.com/shopping/product/7122562219288976666?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:16920866743550249733,oid:16920866743550249733,pid:3561175075735285781,rsk:PC_2259866432285326910&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhIIxAE",
"price": "$1,039.99"
},
{
"title": "Apple iPhone 13 Pro - 128 GB ...",
"link": "https://google.com/shopping/product/3687170449830135457?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:16656761546560440730,oid:16656761546560440730,pid:12785372938347343599,rsk:PC_12721096405768421674&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhIIyAE",
"price": "$1,150.00"
},
{
"title": "Apple iPhone 13 Mini - 128 GB ...",
"link": "https://google.com/shopping/product/9605877161972811703?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:8491221753191645156,oid:8491221753191645156,pid:17062421298967806788,rsk:PC_1686283355608115465&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhIIzAE",
"price": "$569.99"
},
{
"title": "Apple iPhone 13 - 128 GB - Green",
"link": "https://google.com/shopping/product/3628886803268507508?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:14568268246630545116,oid:14568268246630545116,pid:11865528305208463674,rsk:PC_8971650804785857268&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhII0AE",
"price": "$1,065.00"
},
{
"title": "Samsung Galaxy Z Flip3 5G 256GB ...",
"link": "https://google.com/shopping/product/13312216002509535198?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:11624618888767727737,oid:11624618888767727737,pid:16540539309733388515,rsk:PC_16887429298718313848&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhII1AE",
"price": "$849.99"
},
{
"title": "Apple iPhone 12 Pro Max - 128 ...",
"link": "https://google.com/shopping/product/5492645873506991877?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:15728576390396903694,oid:15728576390396903694,pid:8785319130127152524,rsk:PC_8614981451121089051&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhII2AE",
"price": "$949.00"
},
{
"title": "Google Pixel 6 5G Unlocked ...",
"link": "https://google.com/shopping/product/11209475922215274808?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=epd:8502432159441856059,oid:8502432159441856059,pid:11873849009401935557,rsk:PC_18445383168216468507&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhII3AE",
"price": "$722.00"
},
{
"title": "Samsung Galaxy S21 FE 5G - 128 ...",
"link": "https://google.comhttps://www.bestbuy.com/site/samsung-galaxy-s21-fe-5g-128gb-unlocked-graphite/6466003.p?skuId=6466003&contractId=unactivated&ref=NS&loc=101&extStoreId=1021&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQrhII4AE",
"price": "$599.99"
}
],
"specifications": {
"details": {
"Manufacturer Part Number": "GA03150-US",
"Product Line": "Pixel 6 Pro",
"Product Name": "Pixel 6 Pro Smartphone",
"Product Type": "Smartphone",
"Phone Style": "Bar"
}
},
"reviews_results": {
"ratings": [
{
"name": "5",
"amount": "1,800"
},
{
"name": "4",
"amount": "754"
},
{
"name": "3",
"amount": "488"
},
{
"name": "2",
"amount": "351"
},
{
"name": "1",
"amount": "570"
}
],
"reviews": [
{
"position": 1,
"title": "Next-Generation Features in a Beautiful Package",
"date": "February 10, 2022",
"rating": "5",
"source": "Garrett111 · Review provided by store.google.com",
"description": "Pros Easy data transfer Great speaker Sharp, high-resolution screen Seamless integration with pixel buds Great design Responsive fingerprint reader Ip68 water/dust resistance UI is fast and easy to use Fantastic camera and camera software Reasonable price for a flagship phone Improved security with Tensor chip Cons Some software issues The all-glass body feels fragile Screen brightness seems low From first unboxing I’ve been in love with this phone! It is a dream to hold and the 2k screen is the sharpest I’ve had the pleasure of using. The included USB-C to USB-C cable made transferring data from my old phone (Samsung S21 5G) fast and easy. With the camera and software, I am taking photos that are on par with or even better than my DSLR. It’s incredible what Google ... MorePros Easy data transfer Great speaker Sharp, high-resolution screen Seamless integration with pixel buds Great design Responsive fingerprint reader Ip68 water/dust resistance UI is fast and easy to use Fantastic camera and camera software Reasonable price for a flagship phone Improved security with Tensor chip Cons Some software issues The all-glass body feels fragile Screen brightness seems low From first unboxing I’ve been in love with this phone! It is a dream to hold and the 2k screen is the sharpest I’ve had the pleasure of using. The included USB-C to USB-C cable made transferring data from my old phone (Samsung S21 5G) fast and easy. With the camera and software, I am taking photos that are on par with or even better than my DSLR. It’s incredible what Google has done tailoring the software to work with their new Tensor chip. I haven’t had a chance to use the live transcribe/translate feature yet, but I am encouraged to book a trip in the future knowing I have such capabilities in my pocket. The fingerprint reader has worked flawlessly, though it does light up the screen in that area, which was a surprise the first time I unlocked it in the dark. Compared to my S21, the screen brightness has to be turned up further in order to have a comparable brightness, though at maximum brightness there is little difference between phones. I suspect the brightness curve is just calibrated differently, possibly to improve battery life. The battery easily lasts a whole day for me and I love the feature where it will sync the charging speed to finish right as your morning alarm goes off, saving unnecessary battery wear. The speaker is the best I have experienced on a phone. I was surprised at the dynamic range the first time I turned on some music; this has by far the best bass/mid response I’ve ever heard from a phone speaker, and the treble side holds its own too. While I love the feel of this phone in my hand, I’d recommend a case for long term use as it is a glass body. I have encountered a few bugs and software hiccups so far, but there have already been several updates, so I see no reason to believe that things won’t be polished. Overall, this phone provides top of the line security, hardware, and software in a beautiful package. It truly lives up to Flagship status. Less"
}
]
},
"product_variations": [
{
"thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcTYdUS0M3Qssgzn_ALynruF40QacaALu-TNnmVI49IqaOttbMr1sIBX5LJL4vWfGf5yzhGk-Cpm8qbptz4gs2kBUCA8S6uE1j9oFGRyUoqpiG1vtiyDtQ&usqp=CAY"
},
{
"link": "https://google.com/shopping/product/7259312469429982789?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=opd:11506453431541392925,rsk:PC_5803332436479017245&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQlIUHCD4oAQ",
"product_id": "https://api.serpdog.io/product?api_key=APIKEY&hl=en&gl=us&product_id=7259312469429982789",
"thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcRTUYAWQ6jsqpKzBg7H9AEn0bxjcIvhOPQ9LTSa9ZrwJwQGIKiBDh3StyOcXbdHXAa9eSf4jSe4VkUTHl9f56zhBsqHPKoZk_GrgGifU0rPryIbdV9SrA&usqp=CAY"
},
{
"link": "https://google.com/shopping/product/2940402033531438677?gl=us&hl=en&sourceid=chrome&ie=UTF-8&prds=opd:11506453431541392925,rsk:PC_5803332436479017245&sa=X&ved=0ahUKEwjhh8_wtY_6AhWGmmoFHSBYD_oQlIUHCD8oAg",
"product_id": "https://api.serpdog.io/product?api_key=APIKEY&hl=en&gl=us&product_id=2940402033531438677",
"thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcRYNdGaeo4kqCW5NEH-Neb5_OkntVfV0t6VVO4jNvhGF7Nd3ql-Af1rZITttD7ovisbtlqGlMJjCHWJwO8k_sOBSY1pdpK6H6tDEmhe0Q&usqp=CAY"
}
]
}
Last updated