The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Paste this into Codex, Claude Code, Cursor, or another coding agent:
Read https://raw.githubusercontent.com/gosom/google-maps-scraper/main/INSTALL_FOR_AGENTS.md and set up Google Maps Scraper and its agent skill. Prefer a compatible native binary. Ask me what businesses and location I want, then run a small sample and show me the CSV.
Your agent will help you install the scraper, choose a search, and check a small sample. Setup details.
Command Line
With Docker installed, paste these commands into a terminal on macOS, Linux, or Windows with WSL. Change dentists in Berlin to your own search.
Open gmaps-output/results.csv in your spreadsheet app. The first run downloads the image and browser files. The command exits after three minutes without activity.
Add -email to collect emails from business websites. For JSON Lines output (one business per line), replace -results /out/results.csv with -json -results /out/results.jsonl. The file will be saved as gmaps-output/results.jsonl.
Open http://localhost:8080, create a job, and download its results. Your jobs are saved in gmapsdata.
Choose a Mode
What you need
Use
How it works
Business details, with optional reviews and emails
Default mode
Opens individual Google Maps listings. Add -email to visit business websites or -extra-reviews for more reviews.
Business lists without opening a browser
Fast mode
Fetches search results over HTTP. Requires -geo; -depth controls result batches.
Both modes extract names, categories, addresses, phone numbers, websites, hours, ratings, review totals, coordinates, place IDs, listing links, and CIDs when available.
Fast mode includes descriptions, amenities, and booking or ordering links when available. It includes ratings and review totals, but not individual reviews, star-by-star breakdowns, owner details, or emails. See Fast Mode for an example.
Available fields and results depend on what Google returns. A search is not a complete directory of every business in an area.
See the scraper in action
Sponsored By
These sponsors help support development and maintenance of Google Maps Scraper.
The installer downloads a compatible release, checks its SHA-256 checksum, and installs the browser runtime. It prints the executable path. Use that path in place of ./google-maps-scraper in the examples below.
To choose a version or install folder, add --version vX.Y.Z or --install-dir DIR to the last command. Releases without matching binaries and checksums are not supported. Linux may need additional browser system libraries. See the installation guide for details.
Using Docker
The published Docker image uses Playwright:
docker pull gosom/google-maps-scraper
Build from Source
Requirements: Go 1.27.4+
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.
REST API
When running the web server, a full REST API is available:
More examples are available in Recipes. If you need proxies for larger jobs, see Proxy Sponsors.
AI agent skill: setup and workflow
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 dentists in Berlin with their emails
The agent will:
Check setup and the latest skill; check the image when using Docker.
Infer sensible search defaults and ask only for missing essentials.
Let you use your own proxy, continue without one, or review one randomly selected proxy sponsor.
Collect proxy credentials through a masked local terminal prompt instead of chat.
Run a small validation scrape before the full job.
Start and monitor the native or Docker crawl in the background.
Present the results with options to save, filter, analyze, or export.
Proxy sponsor recommendations are clearly disclosed. One provider is selected per request: Webshare has a 50% chance, and the other active sponsors share the remaining 50% equally. If Webshare is inactive, active sponsors have equal chances; a sole active sponsor is always selected. 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.
The agent helpers require Node.js 20+ and either a native binary or Docker on macOS/Linux, or Windows through WSL. The standalone native installer does not require Node.js. See the skill definition for details.
Output fields: 37 CSV columns and JSON differences
The table lists CSV column names. Fields may be empty when Google does not provide the data or the selected mode does not collect it.
With -json, output is JSON Lines: one business object per line, not a JSON array. JSON uses web_site instead of website and description instead of descriptions. It also includes categories and keeps the legacy longtitude key alongside longitude. Lists and objects remain structured JSON values; CSV stores them as text.
#
CSV column
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 Maps CID identifier
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 profile ID, name, and link, when available
31
complete_address
Address parts: street, city, postal code, state, and country
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
Additional anonymously available reviews (requires -extra-reviews)
36
emails
Extracted email addresses (requires -email flag)
37
review_collection
Collection status, method, collected/expected counts, and stopping reason (with -extra-reviews)
With -extra-reviews, the scraper observes the anonymous browser's own review responses and uses visible review cards as a fallback. It does not sign in. Google may expose only a small sample; increasing scroll depth or retrying cannot guarantee the full reported review count.
review_collection.status is complete when the collected count reaches the reported total, limited when Google explicitly serves a limited view, and partial for other stopping conditions. The object includes method (browser, dom, or none), collected, expected, and a reason when incomplete. The JSON field is omitted unless extra reviews were requested; the CSV column is appended after emails.
Resuming an older CSV preserves its existing columns. Start a new output file to include review_collection if the older file does not have that column.
Input formats: search queries, Maps URLs, and custom IDs
Use one search query per line, such as dentists in Berlin.
Custom Input IDs: Add your own ID after #!#:
Matsuhisa Athens #!#MyCustomID
Direct Google Maps URLs: Input lines can be regular search queries or direct Google Maps URLs. Supported URL formats include:
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.
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 Lines (one business per line) instead of CSV
-resume Resume a CLI file scrape by appending missing places
-depth int Max scrolls or fast-mode batches (default: 10)
-c int Concurrency level (default: half of CPU cores)
Email & Reviews:
-email Extract emails from business websites
-extra-reviews Collect anonymously available extra reviews and report status
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; fast mode requires 1-21 (default: 15)
-radius float Keep results within this distance in meters; fast mode only (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)
-grid-strict Keep only places whose coordinates are inside -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
Advanced:
-exit-on-inactivity duration Exit after inactivity (e.g., '5m')
-fast-mode Fetch search results without opening a browser
-debug Show browser window
-writer string Custom writer plugin (format: 'dir:pluginName')
-browser-pool-size int Number of browser processes to launch (default: 0, derived from -c and -pages-per-browser)
-pages-per-browser int Max concurrent pages per browser process (default: 1)
Notes:
-grid-bbox requires a valid zoom level (1-21)
-fast-mode cannot be used together with -grid-bbox
Run ./google-maps-scraper -h for the complete list.
Resuming Interrupted CLI Runs
Use -resume to continue a CLI file scrape after a crash or manual stop:
Resume mode reads the existing CSV or JSONL results file, appends new results, and skips places that were already written. It also writes completed input queries to <results>.resume.json; future resume runs use that sidecar file to skip fully completed queries.
-resume is only supported with regular file output. It requires -results to be a file path and does not support stdout, -writer, or -fast-mode. Resume runs should use the same input and scrape options as the original run.
Using Proxies
For larger scraping jobs, proxies help avoid rate limiting. Here's how to configure them:
Note: Email extraction increases processing time significantly.
Fast Mode
Fast mode gets business data without opening a browser. After installing the native binary, run this example to search for cafés within 5 km of the given San Francisco coordinates:
-geo sets the search center as latitude,longitude. It is required.
-radius keeps results within the given distance in meters. It applies only to fast mode.
-depth 3 requests up to three batches of about 20 results each. The default is 10 batches. Google may return fewer results.
-zoom must be between 1 and 21. The default is 15.
Fast mode includes ratings and review totals, but not individual reviews, star-by-star breakdowns, owner details, or emails. It does not visit business websites.
When available, it also includes descriptions, amenities, booking and ordering links, and opening-status text. A status such as “Closed · Opens 9 AM” describes opening hours; it does not mean the business has closed permanently.
Repeated businesses are removed within each query. Pagination stops when a batch is short, empty, or contains no new businesses. Each batch is sorted by distance; the full output is not globally sorted by distance.
Grid Scraping (BBox)
Grid mode splits a bounding box into cells and runs one search per cell. This is useful when a single search does not return enough places.
-grid-bbox guides where searches are launched from, but results are not strictly clipped to the box.
Add -grid-strict to keep only places whose coordinates fall inside the box, including its edges. This applies to all output formats. Places outside the box are still fetched before filtering.
When resuming, keep the same bounding box and strict-mode setting; use a fresh results file if you change either.
For strict distance filtering, use -fast-mode with -geo + -radius (or post-filter by latitude/longitude).
Browser Page Concurrency
With the default -pages-per-browser 1, each concurrent job (-c) effectively uses its own browser process with a single page tab. This can be inefficient because browser pages can be CPU- and memory-heavy, and each browser process adds overhead.
The -pages-per-browser flag lets you run multiple page tabs inside the same browser process, reducing overhead. Leave -browser-pool-size at 0 to derive the browser count from concurrency and pages per browser, or set it explicitly to cap the number of browser processes independently of concurrency.
How the flags interact:
Flag
What it controls
-c
Total number of concurrent scrape jobs
-browser-pool-size
Number of browser processes to launch (default: 0, derived from -c and -pages-per-browser)
-pages-per-browser
Number of page tabs per browser process (default: 1)
When -pages-per-browser is greater than 1, the scraper opens multiple tabs within each browser process and routes jobs through a shared page pool. This can significantly increase job throughput on the same hardware.
Example — 8 concurrent jobs across 2 browsers with 4 tabs each:
Measured on 2026-11-22 with cafes in Rhodes, depth 3, and concurrency 4. Three runs per mode on an Intel Core Ultra 7 155H with 31 GiB RAM, Ubuntu 24.04.5. No proxies, email extraction, or extra review collection.
Mode
Median time
Time range
Businesses per run
Fast
5.2 seconds
4.9–6.0 seconds
54–55
Detailed (default)
22.6 seconds
22.6–24.9 seconds
28
Times include process startup through CSV output and shutdown. Detailed mode also returned review samples, per-star review counts, and owner information. The modes return different businesses and fields; this is not an identical-output comparison.
Please use this scraper responsibly and in accordance with applicable laws and regulations. Unauthorized scraping may violate terms of service.
SPONSOR DISCLAIMER: Sponsor listings and referral links do not constitute an endorsement. This project and its maintainers are not responsible for sponsors' products, services, representations, conduct, or any resulting loss or damage. Users engage with sponsors at their own risk.