> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Scrape Google Shopping Results and Details Product Data
- URL: https://serpapi.com/blog/how-to-scrape-google-shopping-results/
- Published: 2023-11-10T08:38:19.000Z
- Updated: 2026-02-02T05:19:08.000Z
- Description: Learn how to scrape Google Shopping results and product information details from Google Shopping using a simple API from SerpApi
- Author: Andy L
- Tags: Google Shopping API

Does Google have its own e-commerce platform? Not exactly. 

Google Shopping is a product discovery and comparison service provided by Google. It allows users to search for products, compare prices, and view offers from multiple online retailers, but the actual purchase happens on the retailer's website, not on Google itself.

Google Shopping aggregates product data such as prices, availability, and merchant information to help users make informed buying decisions, acting as a bridge between shoppers and online stores rather than a marketplace. This aggregated product data is surfaced across different Google products depending on how and where users search.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2025/09/scrape-product-data-from-Google-Shopping-1.webp)

Scrape product data from Google Shopping

Scraping Google product results allows businesses and developers to conduct price comparison research, monitor competitors, identify market trends, track promotions, and optimize product strategies using real-world search data.

In this guide, you’ll learn how to scrape Google Shopping results and product data using SerpApi without managing scraping infrastructure like proxies, captchas, or browser automation.

## Understanding Google Shopping Result Types

Depending on the search context, device, and Google surface being used, Google presents product data in several distinct formats. Each format corresponds to a different stage of product discovery and comparison and is exposed through a different SerpApi endpoint.

- **Google Shopping Results**  
Standard product listings shown within Google’s Shopping (for example, `google.com/shopping`), displaying multiple products from different merchants with pricing and basic product details.
- **Immersive Product Results**  
A detailed product view that appears after selecting a product, grouping the same product across multiple retailers and providing additional discovery features such as price comparisons, similar products, and (for certain categories) style ideas.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/01/google_shopping_result_page_desktop_view.png)

Google Shopping Result Page

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/02/immersive_product.png)

Immersive Product Results

### **Video Tutorial**

Prefer to watch a video? Check out the video below

## 

### Setting up a SerpApi account

First, head to the [sign-up](https://serpapi.com/users/sign%5Fup?plan=free) page to register an account. [SerpApi](https://serpapi.com/) offers a free plan for newly created accounts. Then, you can test your first search with our [interactive playground](https://serpapi.com/playground?engine=google%5Fshopping). 

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/02/google_shopping_api_playground.png)

SerpApi's Google Shopping API Playground

When you want to do more searches with us, please visit the [pricing page](https://serpapi.com/pricing).

Once you are familiar with all results, you can utilize SERP APIs with your [API Key](https://serpapi.com/manage-api-key).

## Part 1: Scrape Google Shopping Results 

In this example, we scrape Google Shopping results for the keyword "**iphone"**. The response includes fields such as `position`, `title`, `product_link`, `product_id`, `price`, `extracted_price`, `rating`, `reviews`, `thumbnail`, and `immersive_product_page_token`

We need `immersive_product_page_token` to scrape the details of the products later.

Head to the Google Shopping Results [documentation](https://serpapi.com/google-shopping-api) on [SerpApi](https://serpapi.com/) for details.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/11/Screenshot-2023-11-08-at-16.27.29.png)

Google Shopping API documentation

First, install the [SerpApi client library](https://github.com/serpapi/serpapi-python).

```python
pip install google-search-results
```

Set up the[ SerpApi](https://serpapi.com/?ref=serpapi.com)[ credentials](https://serpapi.com/manage-api-key?ref=serpapi.com) and search.

```python
import serpapi, os, json

params = {
    'api_key': 'YOUR_API_KEY',         # your serpapi api
    'engine': 'google_shopping',       # SerpApi search engine	
    'q': 'iphone'
}

```

To retrieve Google Shopping Results for a given search term, you can use the following code:

```python
results = GoogleSearch(params).get_dict()['shopping_results']
```

You can store Google Shopping Results JSON data in databases or export it to a CSV file.

```python
import csv

header = ['position', 'title', 'product_link', 'product_id', 'price', 'extracted_price', 'rating', 'reviews', 'thumbnail', 'immersive_product_page_token']

with open('google_shopping.csv', 'w', encoding='UTF8', newline='') as f:
    writer = csv.writer(f)

    writer.writerow(header)

    for item in results:
        print(item)
        writer.writerow([item.get('position'), item.get('title'), item.get('link'), item.get('product_id'), item.get('price'), item.get('extracted_price'), item.get('rating'), item.get('reviews'), item.get('thumbnail'), item.get('immersive_product_page_token')])

```

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/02/google_shopping_results_in_csv-1.png)

Result in CSV format

Alternatively, you can get Google Shopping Results using [Google Search API](https://serpapi.com/search-api) as well. Refer to the post below for a complete tutorial.

[How to scrape Google search results with PythonLearn how to quickly and effortlessly scrape Google search results using the SerpApi Python library. Bonus: export the data to a CSV file or a Database.![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/icon/serpapi-favicon-150.png)SerpApiHilman Ramadhan![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/thumbnail/scrape-google-search-results-with-python-cover-1-2.webp)](https://serpapi.com/blog/how-to-scrape-google-search-results-with-python/)

## Part 2: Scrape Google Shopping Product Data

Next, when we click on a product from the search results, we can see detailed information about the product. We can get this information using our [Google Immersive Product API](https://serpapi.com/google-immersive-product-api) endpoint.

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/02/google_immersive_product_api_documentation.png)

Google Immersive Product API documentation

The information we can get from this API includes:

- Product specs
- Real-time pricing across stores
- Reviews, sentiment & media
- Competitive alternatives
- Google-curated consumer insights

```python
import serpapi, os, json

params = {
    "api_key": SERPAPI_API_KEY,
    "engine": "google_immersive_product",
    "page_token": "token_from_previous_part"
}

results = GoogleSearch(params).get_dict()
print(json.dumps(results, indent=2))
```

**The result**

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2026/02/google_immersive_product_results.png)

Google Immersive Product result

## Conclusion

By using SerpApi, you can easily retrieve:

- Google Shopping results for structured product comparison
- Immersive product data for deeper discovery and analysis

Together, these APIs provide a scalable, reliable way to access Google product data without managing scraping infrastructure.

If you haven’t created an account with SerpApi yet, you can sign up and receive **250 free credits per month** to get started.

If you have any questions, feel free to reach out at [contact@serpapi.com](mailto:contact@serpapi.com) 

Hope you find this useful 🙂

## Related Posts

If you’re interested in learning what you can do with Google product data after scraping it, check out the blog posts below:

[Trend Prediction for Emerging Products using PythonIn today’s fast-paced market, spotting the next big product before it goes viral can be the difference between leading the trend or chasing it. With the explosion of e-commerce and online search activity, every new product leaves a digital footprint, from Google Shopping listings and reviews to news mentions.![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/icon/serpapi-favicon-231.png)SerpApiAutumrose Stubbs![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/thumbnail/download--1--1.png)](https://serpapi.com/blog/trend-prediction-for-emerging-products-using-python/)

[How to Build an AI-Powered Product Recommendation App Using SerpApiBuild an AI product recommender that uses Google Shopping and Amazon APIs through SerpApi to generate smarter search results and product insights - perfect for both personal shopping and product research.![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/icon/serpapi-favicon-232.png)SerpApiGabriela Sosa![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/thumbnail/download-1.png)](https://serpapi.com/blog/how-to-build-an-ai-powered-product-recommendation-app-using-serpapi/)