BlogEngineering4 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.

Share LinkedIn X
A folded paper map with a large red location pin and smaller blue pins, on a teal background.

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 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 and in Instagram data extraction.

What data can it extract?

A smartphone lying on a colourful street map, with a blue location pin on its screen.

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.
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 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, or describe the data you need 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.

Start free

Your next dataset starts here.

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

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.

Don’t include passwords or API keys. Exports, task configs and screenshots can be attached in Jsonify on the next step. Privacy

Connect your data assistant

Build datasets and work with your data in Claude, ChatGPT, Copilot or another assistant.

Connect in Claude

  1. Open the Jsonify connector: Open on Claude.ai ↗
  2. Select Connect and sign in to Jsonify.
  3. In a chat, enable Jsonify under + → Connectors and describe the data you need.
Advanced

Team or Enterprise account? Your workspace owner enables Jsonify once for everyone from Admin settings → Connectors. Jsonify is a community connector in the directory — some admins allow those by default, some review them first.

No directory? Add it by hand: Settings → Connectors → + Add custom connector, name it Jsonify, paste the server URL below, then Connect.

Server URLhttps://factory.jsonify.com/mcp

Official Claude custom-connector guide ↗

Then say: “build me a dataset of competitor product prices and availability, refreshed daily”. Full instructions per client on /connect.

What data do you need?

Describe it in a sentence or two. Jason proposes the sources, fields, checks and schedule before anything runs.

Try
100 rows a month free. No credit card.