Build a local-business lead list from Google Maps and state license files
For teams selling to local trades, Claude Code joins Google Maps listings with the state's public license records, so you get a sized, licensed and tagged list that paid databases do not hand to every competitor.
Curated by Andrew Donato, Editor. Reviewed .
Get one setup like this every Thursday, by email.
Written for sales leaders running leaner teams.
Free. One email a week. Unsubscribe anytime.
Paste this into ChatGPT, Claude or your agent tool. See the prompt
- Prospecting / Outbound
- intermediate
- SDR / BDR
- SDR manager
- Founder
- RevOps
- Category
- Prospecting / Outbound
- Difficulty
- Intermediate
- Est. cost
- Sourced: Clay's Google Maps source is included in Clay plans; Apify's Google Maps actor is listed at about $4 per 1,000 places on its free plan (which includes $5 of monthly usage); state license files are free; Claude Code needs a paid Claude plan; Prospeo credits extra
What problem does this solve?
Contractors, roofers, electricians and plumbers are thin or stale in paid contact databases, and every competitor exports the same filters. A rep ends up emailing the same inboxes everyone else already hit.
How is the agent set up?
Alex Vacca (Frontal) lays out a six-step build for teams selling to local trades. Listings come from Google Maps, pulled with Clay's Google Maps source for a single city test or an Apify Google Maps actor for a whole state, searching every name the buyer goes by. All exports land as CSV files in one folder where Claude Code works. Claude Code merges the files and removes duplicates on place ID then phone, then applies a review-count floor (to drop one-person shops) and ceiling (to drop chains, found as names that appear in three or more cities). Next it joins the state's free license file (the source walks through Texas TDLR, California CSLB and Florida DBPR) on phone digits, then on normalized name and city, keeping only current licenses and adding license number, status and dates. For states that only offer a search page, Claude Code writes a polite scraper after you read the site's terms. A final pass tags what each business sells so each niche gets its own message, and Prospeo finds and verifies named work emails before the list moves to Instantly or lemlist. The source publishes the exact Claude Code prompts for the merge, size filter, license match and scraper steps.
What prompt does it use?
Combine the Google Maps CSVs in this folder into 1 file called listings.csv. Remove the duplicate businesses, matching on the place ID first, then on the phone number. Tell me how many you removed. Read listings.csv. List every business name that shows up in 3 or more cities, with the cities and the review count for each. Keep the rows in listings.csv with between [floor] and [ceiling] reviews, and drop the chains you found. Save the result over listings.csv and tell me how many rows are left. Keep only the [license type] rows in licenses.csv, and drop the expired licenses: Texas by the expiration date, every other state by the status column. Then match licenses.csv to listings.csv, on the phone number's digits first, then on the business name and city, ignoring Inc, LLC, punctuation and capital letters. Add the license number and every status, date and name column the license file has to each matched row, and save the result as matched.csv. Put the listings with no match in unmatched.csv, and tell me how many matched. This state only has a search page: [URL]. Write a Python script called scraper.py that pulls the business name, the person named on the license, phone number, city, license number, license status and issue date for [license type] in [county] into licenses.csv. Wait 2 seconds between pages, and save after every page so a stopped run picks up where it left off. Test it on 20 rows first and show me the results.
Replace every {{PLACEHOLDER}} before running. Works with any capable LLM and runner.
Get 5 setups like this every week, free.
Real agent setups with prompts, sources and failure modes, in one short weekly email.
Free. One email a week. Unsubscribe anytime.
What tools does it use?
How do you set it up?
- Make one working folder for Claude Code. Pull Google Maps listings for each business type and city you sell in (Clay for a one-city test, Apify for a full state), running every name your buyer uses, and save each search as a CSV.
- Ask Claude Code to merge the CSVs and remove duplicates on place ID, then phone.
- Set a review-count floor by checking the smallest listings by hand for signs of staff, and a ceiling by having Claude Code list names that appear in 3 or more cities (chains). Apply both.
- Download the state's free license file for your trade, keep current licenses only, and have Claude Code match it to the listings on phone digits, then normalized name and city. Read 20 matches yourself.
- For states with only a search page, read the terms, then have Claude Code write a rate-limited scraper and test it on 20 rows against the live page.
- Tag what each business sells, find and verify one named contact per business with Prospeo, and load the list into Instantly or lemlist by niche.
What results are reported?
No reply or meeting figures are published for this build. The source frames it as the list method its agency uses for clients selling to local trades, and notes that state license files are free and refreshed daily or weekly depending on the state.
What goes wrong
Where does this break?
- One Clay Google Maps search returns at most about 1,000 businesses, so big cities need to be split into neighborhoods.
- Each state's license file differs. The source notes Texas has no status column (filter by expiration date), Texas does not license roofers at state level, and California keeps renewable expired licenses in the master file.
- Some Texas contractor rows carry only a county, not a city or phone, so matching has to fall back to business name plus county.
- Scrapers for search-only state sites can return blank rows when results load in the browser. The source switches to Playwright and checks 20 rows by eye before a full run. Read each site's terms first.
- Review counts are a rough proxy for size. Spot-check listings near your floor and ceiling before trusting the cut. (editor note)
- Google Maps gives every office its own row, and directory or link-in-bio pages listed as a business website can wrongly merge unrelated businesses. Kenny Damian of Frontal, in a Nov 4, 2026 X article on a similar build, blanks websites like yelp.com, facebook.com and linktr.ee before merging on website domain, then on name plus street address, and counts the market from trade directories before paying for a full scrape.
This is where most teams get stuck. Want us to handle the setup?
Source and credit
Alex Vacca (@itsalexvacca), Google Maps + Claude Code = your next lead list · x
Source dated 2026-10-15 · last reviewed 2026-11-05. Summarized in our own words; see the source for details.