Google Shopping Product
Web Scraping API Google Shopping Product Target
The google_shopping_product target is built to obtain Google Shopping product information.
Useful Links
- This target is available with Web API Advanced plans.
- Real-time and Asynchronous integration methods are available for this template
- Batch requests are also supported.
Input Parameters
Request parameters available for the Google Shopping Product target:
Parameter | Type | Required | Description |
|---|---|---|---|
| string | ✅ | Target type must be set to |
| string | ✅ | Product token received from the parsed result of |
| boolean | Automatically parses results when set to | |
| string | Set the country to use when submitting the query. Full list of locations available for the Advanced plan can be found here. | |
| string | Set the value to change your Google search page web interface language. Read more. | |
| string | Specify top-level domain. Read more. | |
| string | Specify device type and browser. Read more. | |
| string | Customize the starting page number within the range of | |
| string | Return results in a specified language. See all options here. | |
| boolean | Set to |
When using the
geoparameter, you must use Google's location name format described here. Single country strings (e.g.,United States) may perform poorly, while more specific locations (e.g.,San Francisco,California,United States) will work better.
Request Examples
curl --request 'POST' \
--url 'https://scraper-api.decodo.com/v2/scrape' \
--header 'Accept: application/json' \
--header 'Authorization: Basic TOKEN VALUE' \ // update with your authorization token
--header 'Content-Type: application/json' \
--data '
{
"target": "google_shopping_product",
"query": "eyJjYXRhbG9naWQiOiAiMTE5NTQ5MDU0ODc2NDk5NDk0NDciLCAiZ3BjaWQiOiAiMTc3MTg2NTEyNzE5MjE3MTM3ODAiLCAiaW1hZ2VEb2NpZCI6ICIxMzg1MTA1MzAwODY3MTkzNDM0IiwgIm1pZCI6ICI1NzY0NjI3ODE4OTcxMTk2MzkiLCAicHZvIjogIjMiLCAicHZ0IjogImhnIiwgInJkcyI6ICJQQ18xNzcxODY1MTI3MTkyMTcxMzc4MHxQUk9EX1BDXzE3NzE4NjUxMjcxOTIxNzEzNzgwIiwgInByb2R1Y3RpZCI6ICIiLCAicXVlcnkiOiAicGl6emEifQ==",
"page_from": "1",
"parse": true,
"google_results_language": "en"
}
'
const scrape = async() => {
const response = await fetch("https://scraper-api.decodo.com/v2/scrape", {
method: "POST",
body: JSON.stringify({
"target": "google_shopping_product",
"query": "eyJjYXRhbG9naWQiOiAiMTE5NTQ5MDU0ODc2NDk5NDk0NDciLCAiZ3BjaWQiOiAiMTc3MTg2NTEyNzE5MjE3MTM3ODAiLCAiaW1hZ2VEb2NpZCI6ICIxMzg1MTA1MzAwODY3MTkzNDM0IiwgIm1pZCI6ICI1NzY0NjI3ODE4OTcxMTk2MzkiLCAicHZvIjogIjMiLCAicHZ0IjogImhnIiwgInJkcyI6ICJQQ18xNzcxODY1MTI3MTkyMTcxMzc4MHxQUk9EX1BDXzE3NzE4NjUxMjcxOTIxNzEzNzgwIiwgInByb2R1Y3RpZCI6ICIiLCAicXVlcnkiOiAicGl6emEifQ==",
"page_from": "1",
"parse": true,
"google_results_language": "en"
}),
headers: {
"Content-Type": "application/json",
"Authorization": "Basic TOKEN VALUE" // update with your authorization token
},
}).catch(error => console.log(error));
console.log(await response.json())
}
scrape()
import requests
url = "https://scraper-api.decodo.com/v2/scrape"
payload = {
"target": "google_shopping_product",
"query": "eyJjYXRhbG9naWQiOiAiMTE5NTQ5MDU0ODc2NDk5NDk0NDciLCAiZ3BjaWQiOiAiMTc3MTg2NTEyNzE5MjE3MTM3ODAiLCAiaW1hZ2VEb2NpZCI6ICIxMzg1MTA1MzAwODY3MTkzNDM0IiwgIm1pZCI6ICI1NzY0NjI3ODE4OTcxMTk2MzkiLCAicHZvIjogIjMiLCAicHZ0IjogImhnIiwgInJkcyI6ICJQQ18xNzcxODY1MTI3MTkyMTcxMzc4MHxQUk9EX1BDXzE3NzE4NjUxMjcxOTIxNzEzNzgwIiwgInByb2R1Y3RpZCI6ICIiLCAicXVlcnkiOiAicGl6emEifQ==",
"page_from": "1",
"parse": True,
"google_results_language": "en"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Basic TOKEN VALUE" # update with your authorization token
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Output
Descriptions for fields in the parsed JSON results section are provided in the table below. Keep in mind that the amount of fields can vary according to the provided search query.
| Results key | Description |
|---|---|
url | URL to the Google Shopping product page. |
title | Title of the product. |
description | Description of the product. |
images | An object of an image results in its detailed information. |
pricing | An array of online pricing data. |
reviews | An object of review data (available in the US only). |
variants | An array of objects with product variants, such as colors, sizes, and more. |
related_items | An array of objects with related items. |
specifications | An array of objects with product specifications. |
Response Example
{
"results": {
"url": "https://www.google.com/search?ibp=oshop&prds=catalogid:11954905487649949447,gpcid:17718651271921713780,imageDocid:1385105300867193434,mid:576462781897119639,pvo:3,pvt:hg,rds:PC_17718651271921713780%7CPROD_PC_17718651271921713780&q=pizza",
"title": "Red Baron Classic Crust Pepperoni Pizza",
"images": {
"full_size": [
"https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcQzPzgYSTCBib8uhyjgpQF1K4_LS17USJrEtFZa_Hem9hOCjmzf1p9FpWYXVrl6Bga2g9ydv0DqMXnC-Vfas2ice-TRpThBVmwpXgIw-W44YOfQYzl57GvRLA",
"https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcSMWx6gbrXFrENKYgHmFq-7mmg6KOnwbSqFxVA_vynlSj8V9hxneEAxMDCvkGcnWDmKP6AIcNg28dA4JPnNE0PUhkZUgp5f-tUcLiJVxHo",
"https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcRr5j5HYiORtjwi5QivQxbhEjWRu3wlVfcCvePFxMeZ-lW_TFit8fQlChy-lwi0uJIYgw0PAUrV4wJfVu3b9RUV0fYduwCR1r9QEJ2TouZpyjeBxN0-Cv9Ehw",
"https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcROKcCoyDYABmZy1krSZwYLcXQQ9qlBOIY3Dt3pJlnAavaPlusO1hEwBSJ87VWHmlSVYfZYXsxWRz5N5VKW_Mj2XrdZ0qDb7rT9Mad02422rUY4KQTOB1cKEg",
"https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcQhTbopzanrf3Bm8mtPmjPyXIbXtVIQRrMvvbzLQQJBuuFFaagIBp_p6D2L6OB7r23Jky5meW0G711jSrNqfsZqm5BvHeIt"
],
"thumbnails": []
},
"pricing": {
"online": [
{
"price": 6.98,
"seller": "Walmart.ca",
"details": "Red Baron Classic Crust Pepperoni 584 G",
"currency": "USD",
"condition": "New",
"seller_link": "https://www.walmart.ca/en/ip/Red-Baron-Classic-Crust-Pepperoni/2Y8WQ3ES4UO9?selectedSellerId=0®ion_id=202200",
"price_shipping": 90
},
{
"price": 7.99,
"seller": "Voilà by Sobeys",
"details": "RedBaron Pizza Pepperoni Classic 16X584G",
"currency": "USD",
"condition": "New",
"seller_link": "https://voila.ca/region-redirect/3809?target=%2Fproducts%2F24117EA%2Fdetails%3Flanguage%3Den-CA",
"price_shipping": 35
},
{
"price": 3.97,
"seller": "Uber Eats",
"details": "Red Baron Classic Crust Pizza, Pepperoni (584 g)",
"currency": "USD",
"condition": "New",
"seller_link": "https://www.ubereats.com/ca/product/b/73990229-adf1-56cb-8d89-d407a8de1bda?utm_campaign=google-shopping-free-listings&utm_medium=organic&utm_source=google&srsltid=AfmBOoolXJi-Vwl5VVUQNYaYHJhtjIjVFx7J7W9ZuEhCXWkKJ3aw7YQKz9I®ion_id=1043729760079263931011120612140615101407060508090208120706100102080508031500111502",
"price_shipping": 10
}
]
},
"reviews": {
"rating": 4.5,
"top_review": {
"text": "We isually buy the Giuseppe thin crust pizzas when they're on sale, but these were on sale for onky $3.98. i picked up the 4 meat and deluxe, amd we had the deluxe for supper last night with homemade wings. Oh my word the pizza was good! I usually make my own using a bread maker, but I like having frozen pizza on sale when I don't have dough or want something quick and easy. I would definitely buy these again. The crust was thin and crispy, and the sauce had a nice flavour. I'm going back to pick up a few more, and I think these will be pur go to brand. Less",
"title": "Jennifer43 months agoDeliciousWe isually buy the Giuseppe thin crust pizzas when they're on sale, but these were on sale for onky $3.98. i picked up the 4 meat and deluxe, amd we had the ... MoreWe isually buy the Giuseppe thin crust pizzas when they're on sale, but these were on sale for onky $3.98. i picked up the 4 meat and deluxe, amd we had the deluxe for supper last night with homemade wings. Oh my word the pizza was good! I usually make my own using a bread maker, but I like having frozen pizza on sale when I don't have dough or want something quick and easy. I would definitely buy these again. The crust was thin and crispy, and the sauce had a nice flavour. I'm going back to pick up a few more, and I think these will be pur go to brand. LessReviewed on walmart.caProvide feedback",
"author": "Jennifer",
"rating": 4,
"source": "Reviewed on walmart.ca"
},
"rating_stars": 4.5,
"reviews_count": 1806,
"reviews_by_stars": {
"1": {
"reviews_count": 80
},
"2": {
"reviews_count": 35
},
"3": {
"reviews_count": 105
},
"4": {
"reviews_count": 307
},
"5": {
"reviews_count": 1279
}
}
},
"specifications": [
{
"items": [
{
"title": "Brand",
"value": "Red Baron"
},
{
"title": "Product Name",
"value": "Classic Crust Pepperoni Pizza"
},
{
"title": "Variety",
"value": "Classic Crust"
},
{
"title": "Number of Servings",
"value": "4"
},
{
"title": "Serving Size Description",
"value": "1/4 Pizza"
},
{
"title": "Serving Suggestion",
"value": "Perfect as part of any meal or occasion and ideal for sharing with family and friends"
},
{
"title": "Flavor Profile",
"value": "Savory"
},
{
"title": "Overall Taste Rating",
"value": "4.6"
},
{
"title": "Texture",
"value": "Crispy"
},
{
"title": "Savory",
"value": "Yes"
},
{
"title": "Tangy",
"value": "Yes"
},
{
"title": "Taste Description",
"value": "Topped with delicious pepperoni."
},
{
"title": "Taste Descriptors",
"value": "Cheesy, Meaty"
},
{
"title": "Instructions",
"value": "Cooking times may vary., Do not thaw pizza., For food safety and quality cook until the internal temperature is 160°F before eating., Pizza is done when center cheese is melted and edges are golden brown., Refrigerate or discard any unused portion., Take pizza out of the box and wrapper before cooking."
},
{
"title": "Cooking Time",
"value": "18-21 minutes (rack), 20-23 minutes (pan), 18-21 minutes, 20-23 minutes"
},
{
"title": "Cooking Temperature",
"value": "400°F"
},
{
"title": "Other Instructions",
"value": "Keep pizza frozen until you're ready to enjoy."
},
{
"title": "Oven Instructions",
"value": "PREHEAT oven to 400°F. PLACE pizza directly on center rack. BAKE pizza for 18-21 minutes. (Rack), PREHEAT oven to 400°F. PLACE pizza on a pan. BAKE pizza for 20-23 minutes. (Pan)"
},
{
"title": "Preparation Steps",
"value": "Take pizza out of the box and wrapper before cooking."
},
{
"title": "Meal Type",
"value": "Dinner"
},
{
"title": "Target Users",
"value": "Families"
},
{
"title": "Use Case",
"value": "Dinner"
},
{
"title": "Occasion",
"value": "Quick Meal"
},
{
"title": "Typical Users",
"value": "Families"
},
{
"title": "Lifestyle",
"value": "Busy"
},
{
"title": "Calories",
"value": "380"
},
{
"title": "Fat",
"value": "18 g"
},
{
"title": "Protein",
"value": "15 g"
},
{
"title": "Sodium",
"value": "800 mg"
},
{
"title": "Carbohydrates",
"value": "40 g"
},
{
"title": "Saturated Fat",
"value": "8 g"
},
{
"title": "Trans Fat",
"value": "Fat"
},
{
"title": "Cholesterol",
"value": "45 mg"
},
{
"title": "Fiber",
"value": "2 g"
},
{
"title": "Sugar",
"value": "1 g (Added Sugars), 8 g (Total Sugars)"
},
{
"title": "Minerals",
"value": "calcium"
},
{
"title": "Vitamins",
"value": "Vitamin D"
},
{
"title": "Main Ingredients",
"value": "Pork"
},
{
"title": "Allergens",
"value": "Milk, Soy, Wheat"
},
{
"title": "Contains",
"value": "Milk, Soybeans, Wheat"
},
{
"title": "Free Of",
"value": "artificial flavors"
},
{
"title": "Meat",
"value": "Beef, Chicken, Pork"
},
{
"title": "Additional Ingredients",
"value": "Cheese, Sauce"
},
{
"title": "Vegetables",
"value": "Tomatoes"
},
{
"title": "Dairy",
"value": "Cheese"
},
{
"title": "Grains",
"value": "Bread"
},
{
"title": "Sauces",
"value": "tomato sauce"
},
{
"title": "Spices",
"value": "FLAVORING"
},
{
"title": "Additives",
"value": "ASCORBIC ACID, BHA, BHT, CITRIC ACID, DOUGH CONDITIONERS (CONTAINS ONE OR MORE OF: WHEAT STARCH, AMMONIUM SULFATE, L-CYSTEINE HYDROCHLORIDE, ENZYMES, ASCORBIC ACID), SODIUM ASCORBATE, SODIUM NITRITE, SOY LECITHIN"
},
{
"title": "Preservatives",
"value": "ASCORBIC ACID, BHA, BHT, CITRIC ACID, SODIUM ASCORBATE, SODIUM NITRITE"
},
{
"title": "Heating Instructions",
"value": "Oven"
},
{
"title": "Ready To Eat",
"value": "No"
},
{
"title": "Ovenable",
"value": "Yes"
},
{
"title": "Preparation Method",
"value": "Bake, Oven"
},
{
"title": "Packaging Type",
"value": "Box, Wrapper"
},
{
"title": "Package Size",
"value": "20.6 oz"
},
{
"title": "Recyclable",
"value": "Yes"
}
],
"section_title": "attributes"
}
],
"parse_status_code": 12000
},
"errors": [],
"status_code": 12000,
"task_id": "7391437139004641282"
}Support
Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].
Updated about 22 hours ago