Skip to main content
Martechs
List buildingGoogle Maps/google-maps-list-builder

Local SMB lists from Google Maps

Scrape Google Maps by business type and place, any country, into a deduped CSV. Sweeps every neighbourhood and every synonym: thousands of rows, not 100.

How to use this skill

Three steps. Nothing to build.

A skill is one Markdown file your AI agent reads before it works. You do not need to read the guide below to use it; your agent does.

  1. Install it

    Copy the command into your terminal, or download SKILL.md and drop it into your agent's skills folder.

    npx skills add automatewithuday/GTM-Skills
  2. Ask your agent

    Open Claude Code, Codex, or Cursor in your project and type /google-maps-list-builder. The agent reads this guide and asks for what it needs.

    /google-maps-list-builder

  3. Check the result

    Skills build lists, draft copy, and set up campaigns. You review the output before it reaches a prospect.

Use this when

Targeting local SMBs (restaurants, clinics, gyms, salons, contractors, agencies) by category and place in any country and the list should come from Google Maps as a CSV ready for enrichment. Also use when someone says 'scrape Google Maps', 'all the dentists in New York / Pune / Manchester', or wants a web app that builds local business lists.

Prefer it done for you?

We run this skill inside client programs every week. Book 15 minutes and we will tell you whether it fits your pipeline.

Book a call

Inside this skill

The complete operating guide your agent follows. Read it before you install it.

Give it a business type and a place, anywhere in the world, and get a deduplicated CSV of every matching business on Google Maps: name, category, address, phone, website, company_domain, rating, review count, coordinates. Two ways to run it:

  • Local CLI (Node + a treg token), the default: runs on your machine, writes a CSV. See references/core-files.md.
  • Web app (Claude Artifact), optional: pick country → area, press Run, download the CSV. No install, but it needs a claude.ai connector named treg (one-time setup, see below). See references/artifact-app.md.

Both call Google Maps through treg, a pay-per-call gateway to scraping providers (0% markup, $1 free credit, no provider accounts): crawl4ai for city searches at about $0.00023 per search, DataForSEO for grid tiles at $0.002. Other providers are listed in references/artifact-app.md.

Both share one place database: data/cities.csv, 34,000 GeoNames places with 15,000+ people in 244 countries, including neighbourhood-level rows (Harlem, Astoria, Navi Mumbai, Brent). That is what lets "dentists in New York" expand to the five boroughs, 60-odd neighbourhoods and the nearby towns in New York State (113 places, about $0.03 of searches) without anyone typing a zip code.

What this skill does, and why it is built this way

The problem with Google Maps. Maps is a viewport, not a database. Any search, through the website, the Places API or a scraper, answers "what is near the centre of this view", and stops at roughly 20 results per page and 100–120 per query. New York has several thousand dentists; "dentist in New York" shows you a hundred of them, chosen by Google's ranking, and there is no page 7. The number of results you can get is the number of distinct places you search, not the size of the query.

Why zip codes were the old answer. Searching "dentist in 10014", then 10013, then 10012, moves the viewport across the map in small steps. Each step surfaces a different hundred businesses, and deduping by place_id gives you the full set. That is why every serious Maps scraper is really a geography splitter with a Maps client underneath. Zip codes worked as a splitter for the US only: nowhere else has dense, numeric, public postal areas with centroids, and the free US zip databases come with redistribution terms that stop you shipping them in a repo (which is exactly why the first version of this skill shipped without its CSV).

What we use instead. A worldwide place list from GeoNames (CC-BY 4.0): 34,000 cities, towns and neighbourhoods with 15,000+ people, in 244 countries, with coordinates and population. "New York, US" resolves to New York City and every GeoNames place in the state within 30 km: the five boroughs, 60-odd neighbourhoods (Harlem, Astoria, Bushwick, Jamaica…) and the nearby towns, 113 places. "Pune, IN" gives Pune plus Pimpri, Shivaji Nagar and five more. That list drives one search per place. For categories so dense that even a neighbourhood has more than 100 (restaurants, cafés, salons in a capital), grid mode lays 2.4 km tiles over the area and searches each tile from its centre coordinate, which is the exhaustive version of the same idea.

Direct scraper vs this skill

One query into Apify / SerpAPI / a browser scraperThis skill
Results per run20–120, Google's pickone search per place, deduped; thousands for a city
Geographyyou type a location stringresolves a city to its neighbourhoods and towns, any country
Dense categoriessilently truncatedgrid mode, with saturated tiles flagged
Duplicatesyours to cleandeduped by place_id across every search
Cost controlper-result pricing, no previewdry run with place count and cost before any call
Outputprovider's raw fieldscompany_domain column, ready for owner lookup
Qualificationnonerequired /icp-prompt-builder pass before enrichment spend

Example, measured on 1 Dec 2026 ("dentist", crawl4ai via treg, $0.00023 per search):

RunSearchesBusinessesUnique
Direct: "dentist" in New York City1100 (capped)100
Our sweep, first 5 of 113 places (Brooklyn, Harlem, Astoria, Jamaica, Staten Island)5500500, zero overlap with the direct query
Both together6600600

Every one of those five neighbourhood searches came back full, so each has more than 100 dentists on its own; the full 113-place sweep (about $0.03) lands in the thousands, and grid mode would go further. A direct query costs the same $0.00023 and stops at 100.

Example, both modes on one city (measured 1 Dec 2026, "dentist", Pune, India):

RunCallsRowsUniqueCostTime
City sweep only (--no-grid): Pune + 7 places8618517$0.001664 s
Grid only: 5 km radius, 2.2 km tiles212,100853$0.042280 s
Those two merged291,193$0.044
Full job (--area, 3 km grid): sweep 8 + grid 5 + refine 20333,091976$0.052327 s

Only 177 businesses appeared in both the sweep and the grid, so the passes are complementary, not substitutes: the sweep reaches the suburbs, the grid digs into the centre, refine digs deeper. Central Pune is dense enough that 18 of the 20 refined tiles were still full, which the run reports along with the exact flag to go one level further. Field completeness was the same in every pass: 60–63% had a website, 93–94% a phone, 96–97% a rating.

Example, dense category: "restaurant" in London. City mode: 157 places in England within 30 km, 157 searches, about $0.04, most central places saturated. Grid mode at 10 km: 69 tiles at $0.002, about $0.14; expect the central tiles to be full, then re-run those with 1.1 km tiles.

How this fits in the cold email flow

Google Maps gives you COMPANIES (name, domain, phone, address, ratings). It does NOT give you PEOPLE or EMAILS, and a Maps row cannot go straight into /email-waterfall, which needs a person's name or LinkedIn URL. The step in between is /local-contact-finder.

  1. Run this skill → CSV of businesses with company_domain (60–63% of rows have a website, 93–94% a phone).
  2. Run /icp-prompt-builder on a sample of 50 (required, below). Drop chains and franchises here if the GTM excludes them: they are the rows that cost money in step 3 and return a manager in another city.
  3. Run /local-contact-finder on the filtered CSV. Per domain, cheapest first: QuickEnrich's free contact finder (their crawl of the site's published email), a plain fetch of the home, contact and about pages, crawl4ai for sites the plain fetch could not read, then QuickEnrich Domain Search with owner titles, then Filtrat verification on every address. Output adds generic_email, owner_first_name, owner_email, owner_phone and a status per email. For a one-truck shop the generic inbox is the owner's inbox, so it is the primary contact; the owner lookup runs only where no inbox was published (--owners=auto, the default).
  4. Optional: /blitz-list-builder then /email-waterfall for rows that still need a named buyer (multi-location groups where someone screens info@).
  5. Split by status. verified rows go to /cold-email-starter-kit's smartlead-add-leads.ts → Smartlead, addressed to the business by name on generic inboxes and by first name on owner emails. catch_all and unknown go to a call or LinkedIn track. Rows with no website keep their phone.

Measured, 1 Dec 2026:

ListRowsVerified inboxOwner emailRows with a verified emailSpendTime
Austin plumbers (US), --owners=all5023 (46%)21 found, 18 verified35 (70%)$0.443 min
Pune dentists (IN), --owners=auto976 (522 usable sites)253 (48% of sites)0253 (26% of rows)$0.057 min

Outside the US the people databases are thin, so the owner stage misses at no charge and the inbox stages carry the list; in Pune 210 of the 253 verified inboxes were Gmail addresses the clinic published itself.

How to apply this skill

Inputs to gather (ask only for what the request leaves out):

  • Business type, as someone would type it into Google Maps: "dentist", "roofing contractor", "pizza restaurant". Ask for synonyms the trade uses and pass them all, ;-separated, in one --query.
  • Place and country: "New York, US", "Pune, IN", "Manchester, GB". Country is ISO-2.
  • Coverage: thorough (default, one search per place, ≤100 rows each) or exhaustive (grid mode: tiles the city at zoom 14, 100 rows per tile; use for dense categories like restaurants, salons, cafés).
  • Exclusions, if any: rating floor or ceiling, minimum reviews, rated or unrated only, website or phone required, category must contain a word. These map to CLI flags (--min-rating, --max-rating, --min-reviews, --rated=only|unrated, --has-website, --has-phone, --category) and to the web app's filter row. "Under 4 stars with a website" is --max-rating=3.9 --has-website; "new places with no reviews yet" is --rated=unrated. Filters run after the fetch and cost nothing. Any rating bound drops unrated listings, so say so when the person asks for a rating range.
  • Which runner: the CLI unless they ask for the web app. The web app needs a claude.ai custom connector named treg; if they want it and don't have one, walk them through creating it (steps under Web app) before publishing the page.

What to do: one command does the whole job.

  1. Dry-run: npm run scrape -- --query="dentist" --area="New York, US" --dry-run. It resolves the place (biggest GeoNames match, then every place in the same state within 30 / 20 / 10 km by population), lays a 10 km grid over the centre, and prints the plan with the cost: typically $0.10–$0.20, worst case under $1, capped by --budget (default $2). Tell the person the numbers.
  2. Run the same command without --dry-run. It does three passes, deduped on place_id: city sweep (one search per place, reaches the suburbs), grid (100 rows per tile, digs into the centre), refine (every full tile split into four smaller ones). It stops before any call that would pass the budget and saves what it has.
  3. Read the closing lines. "N tiles still full after refine" means an even denser core; re-run with the suggested --tile-km if completeness matters more than the extra cost. "City searches were full" names suburbs with their own dense centre; add --grid="Suburb, CC" for those.
  4. Apply the person's exclusions as filter flags, hand over the CSV and the counts: rows fetched, unique businesses, share with website and phone, spend.
  5. Then the required qualification step, then /local-contact-finder for emails.

Cheaper variants when the person says so: --no-grid (city sweep only, cents), --no-refine, --region for a whole state, --cities for a hand-typed list.

What to report: place list used, calls made and spend, unique businesses, share with website and phone, and what was still saturated.

Required step: qualify with /icp-prompt-builder

Do not skip this. Google Maps will happily return 4,000 "dentists in New York", and most won't match the real ICP (chains, hospitals, closed practices). Before paying for enrichment, sample ~50 results and run /icp-prompt-builder: evaluate 10, correct, refine, repeat until two rounds need no corrections, then apply the prompt to the rest. /local-contact-finder is cheap (about a cent per US row with owner lookup on every row, near zero outside the US), but the expensive rows are exactly the ones qualification removes: chains and franchises, whose domain pages carry dozens of titled staff at $0.005 each and return a manager in another city. The person-level waterfall after it costs $0.10–$0.30 per contact; on 4,000 businesses that is $400–$1,200, and qualifying first saves 50–80% of it.

Web app (optional)

assets/maps-list-builder.html + data/cities.csv, published as a Claude Artifact with the mcp (treg) and downloads capabilities. Ask Claude to publish it; the exact publish call is in references/artifact-app.md.

treg connector, one-time, per person. The page calls Google Maps through a claude.ai connector that must be named exactly treg. A treg server added to Claude Code (claude mcp add) is not visible to a browser page. Agent: before publishing, ask whether a connector named treg exists in claude.ai → Settings → Connectors. If not, give these steps and wait: Settings → Connectors → Add custom connector → Name: treg → URL: https://treg.to/mcp/ → Add → sign in to treg when prompted. Then publish, open the page, and the first Run asks once to allow the page to use treg. Without the connector the page loads, shows an "add treg" notice, and nothing else works.

What the page does: country and area pickers backed by data/cities.csv; a checklist of the places it will sweep; free-text extra locations (postcodes work: "411015, IN", "CR0, GB"); City / Grid mode; live cost estimate and per-call spend cap; progress log; filters (has website, has phone, rating range, min reviews, rated or unrated only, category contains), applied to the table and the CSV; CSV download with company_domain. No API keys anywhere: calls go through the viewer's treg connector, which must exist in claude.ai as a custom connector named treg (URL https://treg.to/mcp/, then sign in). A treg server added only to Claude Code is not visible to a browser page.

No treg? references/artifact-app.md lists Apify, SerpAPI, DataForSEO, Serper and RapidAPI alternatives.

Local CLI

Setup

bash
mkdir google-maps-scraper && cd google-maps-scraper
npm init -y
npm install typescript bottleneck
npm install -D @types/node tsx
mkdir -p src data
# copy data/cities.csv from this skill folder, and each src/*.ts from references/core-files.md

package.json scripts: "scrape": "tsx src/index.ts". tsconfig.json:

json
{ "compilerOptions": { "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler",
  "esModuleInterop": true, "strict": true, "types": ["node"], "outDir": "dist", "rootDir": "src", "skipLibCheck": true },
  "include": ["src"] }

Credentials: a treg account (https://treg.to/app, sign in with GitHub or Google, $1 free credit, then prepaid top-ups). Either install the treg CLI and log in once, after which the scraper needs no token at all:

bash
curl -fsSL https://treg.to/install.sh | sh && treg login

or create a token in the dashboard and export TREG_TOKEN=trg_live_... (or a .env line; add .env to .gitignore). Every call is billed at the provider's own price; a failed call costs nothing; --max-cost makes treg refuse any single call above the cap.

Run

bash
# The full job: city sweep (NYC: 113 places) + 10 km grid over the centre + refine full tiles, under $2
npm run scrape -- --query="dentist" --area="New York, US"

# Same, cheapest form: city sweep only (about $0.03 for NYC)
npm run scrape -- --query="dentist" --area="New York, US" --no-grid

# Whole state / province, places with 500k+ people
npm run scrape -- --query="dentist" --country=IN --region=Maharashtra --min-pop=500000

# Hand-picked locations, any format Google Maps understands (postcodes included)
npm run scrape -- --query="plumber" --cities="Manchester, England, UK;Leeds, UK;CR0, UK"

# Grid + refine only, no city sweep (DataForSEO via treg, $0.002 per tile); smaller tiles for a very dense core
npm run scrape -- --query="restaurant" --grid="Pune, IN" --radius-km=10
npm run scrape -- --query="restaurant" --grid="Pune, IN" --radius-km=5 --tile-km=1.1 --budget=1

# See the location list, call count and cost first, no API calls
npm run scrape -- --query="dentist" --area="New York, US" --dry-run

# Exclude weak listings: rated 4.0+ with 20+ reviews and a website (filters are free, applied after the fetch)
npm run scrape -- --query="dentist" --area="New York, US" --min-rating=4 --min-reviews=20 --has-website

# The opposite segment: under 4 stars, website present (a pitch for reputation or marketing services)
npm run scrape -- --query="dentist" --area="New York, US" --max-rating=3.9 --has-website

Output: ./output/results.csv (or --output=PATH) with place_id,name,category,address,phone,website,company_domain,rating,reviews_count,lat,lng,search_location.

Regenerating the place database

data/cities.csv ships in this folder. To rebuild from GeoNames (CC-BY 4.0, no key):

bash
uv run --no-project python3 scripts/build_geo_db.py

Columns: country,country_name,region_code,region,city,feature,lat,lng,population. feature is the GeoNames code (PPLC capital, PPLA region seat, PPLX neighbourhood).

File structure

google-maps-list-builder/
  SKILL.md
  assets/maps-list-builder.html   # the web app (Claude Artifact page)
  data/cities.csv                 # GeoNames places, worldwide
  scripts/build_geo_db.py         # rebuilds data/cities.csv
  scripts/check-page.mjs          # self-check for the page's helpers (node scripts/check-page.mjs)
  references/core-files.md        # full source of the CLI (src/*.ts)
  references/artifact-app.md      # publishing the web app, provider alternatives, Express option

Tips

  • One query returns at most ~100 businesses. Coverage comes from the number of places you sweep, not from one big query. "Dentist in New York" alone is 20–100 rows; the area sweep is thousands.
  • Dedupe by place_id. Neighbouring places return the same businesses; the tools do this for you.
  • Filter on category, not on the query. Searching "restaurant" also returns bars and cafés.
  • Run category synonyms in one command. A roofer is listed as "roofer", "roofing contractor" or "roofing service", and each term surfaces a different set. --query="roofer;roofing contractor;roofing service" runs every place and tile once per term and dedupes on place_id; cost multiplies by the number of terms. Measured on two Texas towns: "plumber" alone gave 179 businesses; adding "plumbing contractor" and "drain cleaning" gave 272, 52% more, nothing lost, for $0.0014. Write the synonym list before you pull.
  • Narrow categories beat broad ones. "Cosmetic dentist" finds a different, smaller set than "dentist"; put both in --query if the ICP is specific.
  • Saturation: a search or tile that returns 100 rows has more. The CLI refines full tiles once by itself (four quarter tiles each); if tiles are still full, --tile-km halves them again at four times the cost. Shrinking the radius never helps. The web app flags full tiles; refine there by lowering the tile size.
  • Budget: --budget (default $2) is a hard stop; the run saves what it has and tells you how to continue.
  • A place that returns 0 rows is usually a provider miss, not an empty town (crawl4ai's hit rate is about 94%). Re-run that one place; it costs a fraction of a cent. In our Pune test one suburb returned 0 on the first pass and 70 on the second.
  • Under 200 businesses? Your query + place is too narrow. Widen before enriching.
  • Website column hygiene. 2–4% of "websites" are Facebook, Instagram or directory links (Yelp, Thumbtack, Justdial). /local-contact-finder skips them at no cost and marks the row social_or_directory_domain; fix the domain by hand or move the row to the call track.

What to do next

Run /icp-prompt-builder on a 50-business sample. Then /local-contact-finder on the filtered CSV: dry run first, 50 rows for real, then the file (uv run scripts/local_contacts.py out/results.csv --out out/contacts.csv --cap-usd 5). Then /list-quality-scorecard to grade the verified rows before upload.

New skills by email

One email when a new skill ships. No sequence, no sales follow-up. Unsubscribe anytime.

Want this run for you?

We run this playbook, and the 59 around it, inside client programs every week. If you would rather have the pipeline than the project, talk to us.