gosom/google-maps-scraper

▲ 44 stars today★ 6,068⑂ 966

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

About gosom/google-maps-scraper

gosom/google-maps-scraper is an open-source project on GitHub, mainly written in Go. scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude It currently holds 6,068 stars and 966 forks with 58 open issues, and was last pushed on 2026-09-24 (repository created 2023-04-22).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #64 with 44 new stars today.

GitHub Repository Details

Repository gosom/google-maps-scraper · default branch main · size 27274 KB · watchers 34 · source: GitHub REST API and repository README

README

Google Maps Scraper

https://github.com/gosom/google-maps-scraper/blob/HEAD/GitHub Stars https://github.com/gosom/google-maps-scraper/blob/HEAD/GitHub Forks https://github.com/gosom/google-maps-scraper/blob/HEAD/Tweet

Build Status Go Report Card GoDoc License: MIT Discord

Extract Google Maps business leads, emails, reviews, phone numbers, websites, ratings, coordinates, and more with a free open-source CLI, Web UI, REST API, and optional self-hosted platform.

Use it for lead generation, local business research, sales prospecting, data enrichment, or developer automation.

Ask an AI Agent to Get Leads

The easiest way to use Google Maps Scraper is with an AI coding agent such as Claude Code, Codex, Cursor, GitHub Copilot, or any Agent Skills-compatible tool. You describe the leads you want; the agent plans the searches, runs a small validation, starts the full local scrape, monitors it, and helps you work with the results.

Install the skill:

npx skills add gosom/google-maps-scraper

Then ask your agent in plain language:

Find dentists in Berlin and include their websites and email addresses.

The agent automatically checks for the latest skill and Docker image, then asks only for details it still needs. For larger crawls, you can provide your own proxy, continue without one, or review three randomly selected proxy sponsors. Proxy credentials are entered through a masked local terminal prompt and are never pasted into the agent chat.

Requires Docker and Node.js on macOS, Linux, or Windows through WSL. See how the agent workflow works.

| Goal | Start here | |---|---| | Get leads into CSV/JSON | Command Line | | Ask an AI coding agent to run a scrape | AI Agent Skill | | Run a browser UI locally | Web UI | | Automate scraping from your app | REST API | | Run a multi-user scraping platform | SaaS Edition | | Follow common workflows | Recipes |

Example GIF

If this project is useful to you, a GitHub star helps others discover it. Sponsorships help fund maintenance and new work.

---

Sponsored By

This project is made possible by our amazing sponsors

Coreclaw - Full-stack web scraping and data extraction platform

Coreclaw - Full-stack web scraping and data extraction platform

Find ready-made workers for public websites, run them instantly, and get structured data you can export or connect anywhere. Get free test for $3 →

---

G Maps Extractor - No-code Google Maps scraper

G Maps Extractor

Chrome extension that extracts emails, social profiles, phone numbers, reviews & more. Get 1,000 free leads →

---

Scrap.io - Extract ALL Google Maps listings at country-scale

Scrap.io - Extract ALL Google Maps Listings

No keywords needed. No limits. Export millions of businesses in 2 clicks. Try it free →

---

SerpApi - Google Maps API and 30+ search engine APIs

SerpApi

Fast, reliable, and scalable. Used by Fortune 500 companies. View all APIs →

---

SearchApi - Google Maps API for SERP scraping

SearchApi

Real-time Google Maps data with a simple integration. Explore the API →

---

Evomi - Swiss quality proxies for scraping

Evomi

Swiss quality proxies from $0.49/GB across 150+ countries, with 24/7 support and 99.9% uptime. Visit Evomi →

---

HasData - No-code Google Maps Scraper & Email Extraction

HasData Google Maps Scraper

Extract business leads, emails, addresses, phones, reviews and more. Get 1,000 free credits →

---

RapidProxy - High-Performance Proxy Solution

RapidProxy

Unlock global access with consistent, high-speed connections from $0.65/GB, 90M+ real residential IPs worldwide, and traffic that never expires. Try it free →

---

Swiftproxy - Reliable Residential Proxies for Web Scraping

Swiftproxy - Reliable Residential Proxies for Web Scraping

Swiftproxy provides 90M+ clean residential IPs across 220+ locations, with HTTP(S)/SOCKS5 support, flexible targeting, and non-expiring traffic. Ideal for web scraping, data collection, and location-based research. Free testing is available, with 10% off using code PROXY90. Try Swiftproxy now →

---

TalorData - Fast SERP API for Google Maps and Search Data

TalorData

Real-time SERP data APIs for Google Maps and search results, with structured JSON / HTML responses and 1,000 free API responses to start. Start using TalorData → | Learn more

---

Webshare - Premium proxies for scraping at scale

Webshare

The most affordable premium proxies across 195 countries & 80+ million IPs, plus a FREE plan for new users. Learn more

---

BirdProxies - Residential and ISP proxies

BirdProxies

Hey, we built BirdProxies because proxies shouldn't be complicated or overpriced. Fast residential and ISP proxies in 195+ locations, fair pricing, and real support. Try our FlappyBird game on the landing page for free data!

Visit BirdProxies → | Join Discord

---

Proxidize - Proxies for Google Maps Scraping

Proxidize | Proxies for Google Maps Scraping

Mobile and residential proxies for Google Maps scraping, local SEO, lead generation, and data collection. Use code gmaps20 for 20% off. Visit Proxidize →

---

NodeMaven

NodeMaven - The most efficient proxy provider for Web Scraping and Automation

NodeMaven: The most efficient proxy provider for Web Scraping and Automation with the Highest Quality IP on the market.

Why NodeMaven?

Special codes for Google Maps Scraper users: Visit NodeMaven →

---

View all sponsors | Become a sponsor

---

Why Use This Scraper?

| | | |---|---| | Completely Free & Open Source | MIT licensed, no hidden costs or usage limits | | Multiple Interfaces | CLI, Web UI, REST API - use what fits your workflow | | High Performance | ~120 places/minute with optimized concurrency | | 33+ Data Points | Business details, reviews, emails, coordinates, and more | | Production Ready | Scale from a single machine to Kubernetes clusters | | Flexible Output | CSV, JSON, PostgreSQL, S3, LeadsDB, or custom plugins | | Proxy Support | Built-in SOCKS5/HTTP/HTTPS proxy rotation |

---

What's Next After Scraping?

Once you've collected your data, you'll need to manage, deduplicate, and work with your leads. LeadsDB is a companion tool designed exactly for this:

The scraper has built-in LeadsDB integration - just add your API key and leads flow directly into your database.

Start free with 500 leads

---

Table of Contents

---

Quick Start

Command Line

mkdir -p gmaps-output

docker run \ -v gmaps-playwright-cache:/opt \ -v "$PWD/example-queries.txt:/queries.txt:ro" \ -v "$PWD/gmaps-output:/out" \ gosom/google-maps-scraper \ -input /queries.txt \ -results /out/results.csv \ -depth 1 \ -exit-on-inactivity 3m

Useful options:

| Need | Flag | |---|---| | Extract emails from business websites | -email | | Write JSON instead of CSV | -json -results /out/results.json | | Collect extra reviews | -extra-reviews -json -results /out/results.json | | Resume an interrupted file scrape | -resume -results /out/results.csv | | Increase concurrency | -c 4, -c 8, or -c 16 | | Run multiple pages per browser | -pages-per-browser 4 | | Limit browser processes | -browser-pool-size 2 | | Use proxies | -proxies "http://user:pass@host:port,socks5://host:port" | | Read proxies from a credentials file | -proxies-file /path/to/proxies.txt |

-c controls how many scrape jobs run in parallel. Higher concurrency can finish large input files faster, but it also uses more CPU/RAM and can increase blocking or failures, especially without proxies. Start with the default for a first run. For larger jobs on a capable machine, try -c 4, -c 8, or -c 16 and measure the result.

Want to skip CSV files? Send leads directly to LeadsDB:

docker run \
  -v gmaps-playwright-cache:/opt \
  -v "$PWD/example-queries.txt:/queries.txt:ro" \
  gosom/google-maps-scraper \
  -input /queries.txt \
  -depth 1 \
  -leadsdb-api-key "your-api-key" \
  -exit-on-inactivity 3m

Web UI

Start the web interface with a single command:

mkdir -p gmapsdata

docker run \ -v "$PWD/gmapsdata:/gmapsdata" \ -p 8080:8080 \ gosom/google-maps-scraper \ -data-folder /gmapsdata

Then open http://localhost:8080 in your browser.

Or download the binary release for your platform.

Note: Results take at least 3 minutes to appear (minimum configured runtime).
macOS Users: Docker command may not work. See MacOS Instructions.

REST API

When running the web server, a full REST API is available:

| Endpoint | Method | Description | |----------|--------|-------------| | /api/v1/jobs | POST | Create a new scraping job | | /api/v1/jobs | GET | List all jobs | | /api/v1/jobs/{id} | GET | Get job details | | /api/v1/jobs/{id} | DELETE | Delete a job | | /api/v1/jobs/{id}/download | GET | Download results as CSV |

Full OpenAPI 3.0.3 documentation available at http://localhost:8080/api/docs

SaaS Edition

Need a multi-user platform with API keys, admin UI, job queue, workers, and cloud provisioning? Use the optional self-hosted SaaS edition:

curl -fsSL https://raw.githubusercontent.com/gosom/google-maps-scraper/main/PROVISION | sh

See SaaS documentation for deployment and operations details. There is also a 5-minute deployment walkthrough and a YouTube video walkthrough.

More examples are available in Recipes. If you need proxies for larger jobs, see Proxy Sponsors.

---

AI Agent Skill

The AI Agent Skill turns a natural-language lead request into a guided local scraping workflow. It is designed for nontechnical users as well as developers and keeps you in control of the search scope, proxy choice, and output.

If you have not installed it yet:

npx skills add gosom/google-maps-scraper

Then just ask your agent:

Find me all dentists in Berlin with their emails

The agent will:

1. Noninteractively check for the latest skill and Docker image. 2. Infer sensible search defaults and ask only for missing essentials. 3. Let you use your own proxy, continue without one, or choose from three randomly selected proxy sponsors. 4. Collect proxy credentials through a masked local terminal prompt instead of chat. 5. Run a small validation scrape before the full job. 6. Start and monitor the Docker crawl in the background. 7. Present the results with options to save, filter, analyze, or export.

Proxy sponsor recommendations are clearly disclosed and shown with equal placement. Any discount or offer is displayed only when it is configured in the skill's active sponsor registry. You can always use another provider or no proxy.

Requires Docker and Node.js on macOS, Linux, or Windows through WSL. See the skill definition for details.

---

Installation

Using Docker (Recommended)

The published Docker image uses Playwright:

docker pull gosom/google-maps-scraper

Build from Source

Requirements: Go 1.26.6+

git clone https://github.com/gosom/google-maps-scraper.git
cd google-maps-scraper
go mod download

go build ./google-maps-scraper -input example-queries.txt -results results.csv -exit-on-inactivity 3m

First run downloads required browser libraries for Playwright.

---

Features

| Feature | Description | |---------|-------------| | 33+ Data Points | Business name, address, phone, website, reviews, coordinates, and more | | Email Extraction | Optional crawling of business websites for email addresses | | Multiple Output Formats | CSV, JSON, PostgreSQL, S3, LeadsDB, or custom plugins | | Proxy Support | SOCKS5, HTTP, HTTPS with authentication | | Scalable Architecture | Single machine to Kubernetes cluster | | REST API | Programmatic control for automation | | Web UI | User-friendly browser interface | | Fast Mode (Beta) | Quick extraction of up to 21 results per query | | AWS Lambda | Serverless execution support (experimental) |

---

Extracted Data Points

Click to expand all 36 data points

| # | Field | Description | |---|-------|-------------| | 1 | input_id | Internal identifier for the input query | | 2 | link | Direct URL to the Google Maps listing | | 3 | title | Business name | | 4 | category | Business type (e.g., Restaurant, Hotel) | | 5 | address | Street address | | 6 | open_hours | Operating hours | | 7 | popular_times | Visitor traffic patterns | | 8 | website | Official business website | | 9 | phone | Contact phone number | | 10 | plus_code | Location shortcode | | 11 | review_count | Total number of reviews | | 12 | review_rating | Average star rating | | 13 | reviews_per_rating | Breakdown by star rating | | 14 | latitude | GPS latitude | | 15 | longitude | GPS longitude | | 16 | cid | Google's unique Customer ID | | 17 | status | Business status (open/closed/temporary) | | 18 | descriptions | Business description | | 19 | reviews_link | Direct link to reviews | | 20 | thumbnail | Thumbnail image URL | | 21 | timezone | Business timezone | | 22 | price_range | Price level ($, $$, $$$) | | 23 | data_id | Internal Google Maps identifier | | 24 | street_view_url | Street View URL | | 25 | place_id | Google's unique place id | | 26 | images | Associated image URLs | | 27 | reservations | Reservation booking link | | 28 | order_online | Online ordering link | | 29 | menu | Menu link | | 30 | owner | Owner-claimed status | | 31 | complete_address | Full formatted address | | 32 | credit_cards_accepted | Accepted credit card networks | | 33 | about | Additional business info | | 34 | user_reviews | Customer reviews (text, rating, timestamp) | | 35 | user_reviews_extended | Extended reviews up to ~300 (requires -extra-reviews) | | 36 | emails | Extracted email addresses (requires -email flag) |

Custom Input IDs: Define your own IDs in the input file:

Matsuhisa Athens #!#MyCustomID

Direct Google Maps URLs: Input lines can be regular search queries or direct Google Maps URLs. Supported URL formats include:

https://www.google.com/maps/search/pizza
https://www.google.com/maps/place/Empire+State+Building/@40.7484405,-73.9856632
https://maps.google.com/maps?z=16&q=Empire+State+Building
maps.app.goo.gl/abc123

URLs on google.com subdomains must include a scheme (http:// or https://) and a /maps path. Short maps.app.goo.gl links are also supported without a scheme.

---

Configuration

Command Line Options

``` Usage: google-maps-scraper [options]

Core Options: -input string Path to input file with queries (one per line) -results string Output file path (default: stdout) -json Output JSON instead of CSV -resume Resume a CLI file scrape by appending missing places -depth int Max scroll depth in results (default: 10) -c int Concurrency level (default: half of CPU cores)

Email & Reviews: -email Extract emails from business websites -extra-reviews Collect extended reviews (up to ~300)

Location Settings: -lang string Language code, e.g., 'de' for German (default: "en") -geo string Coordinates for search, e.g., '37.7749,-122.4194' -zoom int Zoom level 0-21 (default: 15) -radius float Search radius in meters (default: 10000) -grid-bbox string Bounding box for grid scraping, format: "minLat,minLon,maxLat,maxLon" -grid-cell float Grid cell size in km (default: 1.0, used with -grid-bbox)

Web Server: -web Run web server mode -addr string Server address (default: ":8080") -data-folder Data folder for web runner (default: "webdata")

Database: -dsn string PostgreSQL connection string -produce Produce seed jobs only (requires -dsn)

Proxy: -proxies string Comma-separated proxy list Format: protocol://user:pass@host:port -proxies-file Path to a file containing one proxy URL per line

Export: -leadsdb-api-key Export directly to LeadsDB (get key at getleadsdb.com)

Advanced: -exit-on-inactivity duration Exit after inactivity (e.g., '5m') -fast-mode Quick mode with reduced data -debug Show browser window -writer string

GitHub Stars & Activity

6,068Stars
966Forks
58Open issues
GoLanguage

GitHub Popularity

GitHub stars6,068
Forks966
Open issues58
Primary languageGo
LicenseMIT
Stars gained today44
Created2023-04-22
Last pushed2026-09-24

Trending History

Daily boardrank #64 · ▲ 44 stars

Related GitHub Projects

1

ollama / ollama

Go★ 181,714⑂ 18,002▲ 119 stars
→
2

golang / go

Go★ 139,008⑂ 20,430▲ 34 stars
→
3

kubernetes / kubernetes

Go★ 127,986⑂ 45,158▲ 38 stars
→
4

SagerNet / sing-box

Go★ 38,300⑂ 4,651▲ 32 stars
→
5

seaweedfs / seaweedfs

Go★ 34,976⑂ 3,010▲ 33 stars
→
6

google / ax

Go★ 11,387⑂ 547▲ 1,386 stars
→
7

Gentleman-Programming / gentle-ai

Go★ 7,293⑂ 795▲ 56 stars
→
8

Gentleman-Programming / engram

Go★ 6,839⑂ 703▲ 36 stars
→

More Trending Repositories