Google is the most popular search engine. Any local business are featured in the Local Pack can lead to increased visibility and more customers.
Local Pack is a powerful result for both users and local businesses. Scraping Google Local Pack results is helpful for any business to understand its competitors and its position in the market.

When you do a search, Google Local Pack results will be displayed on top of the search results. They will show the top 3 local businesses relevant to the search query. The Local Pack results will show the business name, address, phone number, hours of operation, and often user reviews.

You can scrape Google Local Pack results to improve local SEO, understand your competitors, manage reputation, do market research or generate leads. This is a great way to get the most relevant local businesses in your area.


Scraping Google results is always challenging because Google has many anti-scraping mechanisms, it's even more challenging when scraping Google Local Pack results because the data is generated dynamically and it's not easy to scrape.


With SerpApi, we carefully handle all the hard work for you. We provide high-quality Google Local Pack APIs(scrapers) that are easy to use. Let's see how it works.

Setting Up a SerpApi Account

SerpApi offers a free plan for newly created accounts. Head to the sign-up page to register an account and complete your first search with our interactive playground. When you want to do more searches with us, please visit the pricing page.

Once you are familiar with all the results, you can utilize SERP APIs using your API Key.

Scrape your first Google Local Pack results with SerpApi

Head to the Google Local Pack API from the documentation on SerpApi for details.

Let's find the top pizza stores in Austin. The data contains: "position", "title", "rating", "reviews", "description", "thumbnail", "address", "hours" and more. You can also scrape more information with SerpApi.

First, you need to install the SerpApi client library.

pip install google-search-results

Set up the SerpApi credentials and search.

from serpapi import GoogleSearch
import os, json, csv

params = {
    'api_key': 'YOUR_API_KEY',             # your serpapi api
    'engine': 'google',                    # SerpApi search engine
    'q': 'pizza',
    'location': 'Austin, Texas, United States'
}

To retrieve Google Local Pack Results for a query, you can use the following code:

results = GoogleSearch(params).get_dict()['local_results']['place']

You can store Google Local Pack Results JSON data in databases or export them to a CSV file.

import csv

header = ["position", "title", "rating", "reviews", "description", "thumbnail", "address", "hours"]

with open("google_local_pack.csv", "w", encoding="UTF8", newline="") as f:
    writer = csv.writer(f)
    writer.writerow(header)
    for item in results:
        writer.writerow([item.get('position'), item.get('title'), item.get('rating'), item.get('reviews'), item.get('description'), item.get('thumbnail'), item.get('address'), item.get('hours')])

This example uses Python, but you can also use all your favorite programming languages like Ruby, NodeJS, Java, PHP, and more.

If you have any questions, please feel free to contact me.