---
title: "Google Maps scraper in Python: places, reviews and contacts, open source"
description: "An open-source Google Maps scraper in Python for places, reviews, photos, Q&A and contacts. Tested against Apify on 24 places in five languages: 99.97% of reviews matched, at a fraction of the cost."
url: "https://www.jsonify.com/blog/google-maps-data-extraction-python/"
---

[Blog](https://www.jsonify.com/blog/)Engineering4 min read

# Google Maps data extraction in Python

Open-source Python code that extracts Google Maps places, reviews, photos, Q&A and contacts. Tested against Apify on 24 places in five languages: **99.97% of reviews matched**, at a fraction of the cost.

[![](/assets/images/team/nick.jpg)](https://www.linkedin.com/in/nicklink/)**[Nick Linkevich](https://www.linkedin.com/in/nicklink/)**CTO, Jsonify21 Oct 2026

Share  [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.jsonify.com%2Fblog%2Fgoogle-maps-data-extraction-python%2F) [X](https://x.com/intent/post?url=https%3A%2F%2Fwww.jsonify.com%2Fblog%2Fgoogle-maps-data-extraction-python%2F&text=Google+Maps+scraper+in+Python%3A+places%2C+reviews+and+contacts%2C+open+source) 

## On this page

![A folded paper map with a large red location pin and smaller blue pins, on a teal background.](/assets/images/blog/google-maps-data-extraction-python/cover.png)

**TL;DR:** We built open-source Python code that extracts complete Google Maps business profiles, including reviews, photos, Q&A and contact details. Tested against Apify, it matched **99.97% of reviews**, found **more than twice as many businesses** in a Pittsburgh area search and cost a fraction as much to run.

## Why we built it

Business listings hold a lot of useful data: opening hours, customer reviews, owner responses and contact details. We wanted code that gives you full control over the extraction: you choose exactly what to collect, you run it yourself and you never lose progress if something goes wrong.

We used [Apify’s Google Maps Scraper](https://apify.com/compass/crawler-google-places) as the industry benchmark, to see whether we could build a cheaper, open-source alternative with matching inputs and outputs. It builds on what we learned in our [cloud browsers benchmark](https://www.jsonify.com/blog/cloud-browsers-benchmark/) and in [Instagram data extraction](https://www.jsonify.com/blog/instagram-data-extraction-python/).

## What data can it extract?

![A smartphone lying on a colourful street map, with a blue location pin on its screen.](/assets/images/blog/google-maps-data-extraction-python/places.jpg)

Give it place URLs, place IDs or an area to search with queries such as `restaurant`, `cafe` or `store`. Then choose exactly which sections to collect:

| Target | What you get |
| --- | --- |
| Places | Names, addresses, coordinates, categories, ratings, hours and business details |
| Reviews | Google reviews and partner reviews (Tripadvisor, Priceline and others), with sorting and search |
| Dates | Exact publication, edit and owner-response dates |
| Media and Q&A | Photos with author metadata, plus all questions and answers |
| Contacts | Emails, phone numbers and social links taken from the business’s own website |
| Directories | Businesses inside another place, such as shops in a mall |

If you already use Apify, the code can export data in the exact same format, so your existing code keeps working.

## How it works

You don’t set up Docker containers or fight CAPTCHAs. The browser sessions run remotely on a cloud browser, and your Python script tells them what to extract:

1.  You set the search queries and limits.
2.  A cloud browser opens Google Maps.
3.  The code extracts places and reviews.
4.  Progress is saved to SQLite as it goes.
5.  The results are exported as JSON or CSV.

The code handles map navigation and opens each listing for the details. For area searches, it splits the map into a grid of smaller cells and scans each one, so no business is missed. Its built-in SQLite database saves progress in real time: if a run is interrupted, it resumes where it left off without paying to collect the same data twice. Dates and reviews are cached too, so later runs on the same places are fast and cheap.

## Our code vs Apify

![A folded paper map with a large red pin and four smaller blue pins.](/assets/images/blog/google-maps-data-extraction-python/map.jpg)

Running on a cloud browser saved up to 95% of the cost.

We tested both tools on **24 places in five languages**, asking each to extract full profiles with reviews, photos, contacts and Q&A.

**Data quality.** Our code extracted **3,846 of the 3,847** reviews Apify found (99.97%). It also matched every owner-response date and collected the same questions and answers.

**Finding places by area.** Searching inside a city boundary, our code found **more than twice as many businesses** in Pittsburgh (448 against 200) for a fraction of the cost ($0.05 against $0.60). In Berlin, it cost 95% less ($0.038 against $0.876).

**Cost.** A cloud browser bills only for the compute and bandwidth a session uses, so the code is much cheaper to run. For our sample dataset of 30 places, it cost **$0.78** against Apify’s **$1.35**. With the cache warm, a rerun across all languages cost just **$0.48**.

## How to use it

The whole project is open source: [jsonifyco/gmaps-scraper](https://github.com/jsonifyco/gmaps-scraper) on GitHub.

It runs on bro’s cloud browsers through the bro Python SDK, so you need a bro API key. Clone the repository, add your key and follow the README. You can also give the repository link to an AI coding agent, such as Claude Code or Codex, and ask it to set up the extraction you need.

## Let Jason run it for you

Running the code yourself gives you full control, and you still have to schedule it, watch it and fix it when Google Maps changes. If you need a business list refreshed every week or month, Jsonify does that part. Tell Jason, our AI agent, what data you need and how often. He builds the pipeline, merges Google Maps with other directories if you need them, checks every run and repairs it when a source changes. The rows arrive in Google Sheets, Snowflake, a webhook or an API.

See what Jason collects from [Google Maps business listings](https://www.jsonify.com/sources/google_maps), or [describe the data you need](https://www.jsonify.com/start/data-extraction/) and see what he builds.

## Frequently asked questions

**Do I need a Google account?** No. The code uses anonymous Google sessions, with no cookies.

**Does it extract contact information?** Yes. When you choose to collect contacts, it visits each business’s official website and extracts emails, phone numbers and social media links.

**Can I pause and resume a run?** Yes. A built-in SQLite database saves progress in real time. If a run is interrupted or you pause it, you can resume exactly where you left off without paying to collect the same data twice.

**Can I use a different browser service?** You can, but you’d need to adapt the browser layer. The current code uses one browser SDK, and switching to another provider or a local browser takes code changes. The measurements in this post apply to the current code.

**Which review date will I get?** The Apify-style export follows the activity time Google displays, which can be a later edit. The native export keeps publication and edit times separate when they’re available. Partner review dates we can’t verify stay empty.

## Related on Jsonify

*   [GuideCloud browsers benchmarkWe tested 9 cloud browsers and open-source frameworks against 400 protected sites to see which ones actually load the...](https://www.jsonify.com/blog/cloud-browsers-benchmark/)
*   [ComparisonApify alternativesApify is a platform and marketplace for running Actors. Jsonify builds a connected pipeline for the dataset you need ...](https://www.jsonify.com/compare/apify/)
*   [ComparisonBright Data alternativesBright Data supplies proxy infrastructure, scraping APIs and data products. Jsonify gives teams a pipeline built arou...](https://www.jsonify.com/compare/bright-data/)
*   [GuideHidden prompt injection in AI agentsWe tested 9 ways to hide text on a page that makes AI agents report fake data. Raw HTML pipelines were poisoned by ev...](https://www.jsonify.com/blog/hidden-prompt-injection-ai-agents/)

Sources[Airbnb listings and nightly prices](https://www.jsonify.com/sources/airbnb)[eBay listings and prices](https://www.jsonify.com/sources/ebay)[Yellow Pages business data](https://www.jsonify.com/sources/yellowpages)[Etsy listings and prices](https://www.jsonify.com/sources/etsy)

Start free

## Your next dataset starts here.

Describe the data you need. Build for free with 100 rows a month, no credit card required.

[Build →](https://factory.jsonify.com/setup)[Book a demo](https://calendly.com/paulhunkin/30min)

[**Competitor prices**](https://factory.jsonify.com/setup?q=Track+product+prices%2C+promotions+and+availability+across+competing+retailers+every+day.) [**Restaurant menus**](https://factory.jsonify.com/setup?q=Collect+restaurant+and+bar+menus+from+websites+and+delivery+apps%2C+including+items%2C+prices+and+locations.) [**Job listings**](https://factory.jsonify.com/setup?q=Collect+new+job+listings+from+company+career+pages%2C+with+role%2C+location%2C+salary%2C+requirements+and+application+links.) [**News monitoring**](https://factory.jsonify.com/setup?q=Monitor+news+websites+for+mentions+of+my+company+and+competitors%2C+collecting+headlines%2C+publication+dates%2C+article+text+and+links+every+day.) [**Property listings**](https://factory.jsonify.com/setup?q=Collect+property+listings+from+real+estate+websites%2C+including+price%2C+location%2C+bedrooms%2C+floor+area+and+listing+links%2C+refreshed+daily.) [**Customer reviews**](https://factory.jsonify.com/setup?q=Collect+public+customer+reviews+for+competing+products+and+apps%2C+including+ratings%2C+review+text%2C+dates+and+source+links.) [**Grocery prices**](https://factory.jsonify.com/setup?q=Track+supermarket+grocery+prices+across+chains%2C+including+product+names%2C+sizes%2C+prices+and+promotions%2C+refreshed+daily.) [**Insurance quotes**](https://www.jsonify.com/products/benchmark) [**Rental rates**](https://www.jsonify.com/products/benchmark) [**Broadband offers**](https://www.jsonify.com/products/benchmark)



## Migrate from your current tool

Share what you run on your current tool today. Jason, Jsonify’s AI data engineer, reads it and proposes the same pipelines on Jsonify, with checks and repairs built in.

What do you run on your current tool?

Don’t include passwords or API keys. Exports, task configs and screenshots can be attached in Jsonify on the next step. [Privacy](https://www.jsonify.com/legal/privacy)
