Weekly
Collect local business leads from Google Maps into a sheet
Every week, local businesses that match your search are added to your leads sheet with their phone number, website and rating, and none are added twice.
- Runs
- Weekly
- Apps
- Google Sheets, SerpApi
- AI
- Not needed
- Access
- Sheets write; SerpApi key
Send this to your assistant
Create a ClickRuntime automation: every Monday, search Google Maps for "dentists in Austin" and add any new businesses to my Leads sheet with name, address, phone, website and rating.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small agency that builds websites and runs ads for dental practices finds its clients one city at a time. Their lead lists come from searching Google Maps and copying names, phone numbers and websites into a spreadsheet by hand. It is dull work, it goes stale as new practices open, and it is easy to call the same practice twice from two lists.
This automation keeps the list current. Every Monday it runs your Google Maps search through SerpApi, pages through the results and adds any business it has not seen before to your sheet. You get an email saying how many new leads were added, and the list only ever grows with genuinely new names.
What you get out of it
A lead list that keeps itself current
New businesses open and move all the time. A weekly search catches them soon after they appear on Google Maps, before competitors have called.
No duplicate calls
Each business is recognised by its Google Maps place, so it is only ever added once. Your team never embarrasses itself by pitching the same practice twice.
Useful details in every row
Phone, website, address and rating come in together. Reps can qualify a lead from the sheet, such as skipping practices with no website or a low rating.
No copy and paste
Hours of manual searching and pasting are gone. The time goes into calling and pitching instead.
How it works
What happens, step by step
Every Monday, ClickRuntime runs your Google Maps search through SerpApi and pages through the results.
It checks each business against the ones it has added before and skips any it has already seen.
New businesses are added as rows in your Leads sheet with name, address, phone, website and rating.
You get an email saying how many new leads were added that week.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- Connect SerpApi
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Google Sheets and SerpApi steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, notify
SHEET_ID = "your-spreadsheet-id"
SEARCH = "dentists in Austin, TX"
@on_trigger
def run(event):
seen = set(state.get("place_ids") or [])
rows = []
for start in range(0, 100, 20):
res = http.get("https://serpapi.com/search", params={"engine": "google_maps", "q": SEARCH, "start": start,
"api_key": credentials.secret("SERPAPI_API_KEY")}).json()
for p in res.get("local_results", []):
if p["place_id"] not in seen:
seen.add(p["place_id"])
rows.append([p["title"], p.get("address", ""), p.get("phone", ""), p.get("website", ""), p.get("rating", "")])
if "next" not in res.get("serpapi_pagination", {}):
break
if rows:
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Leads!A:E", valueInputOption="RAW", body={"values": rows}).execute()
state.set("place_ids", list(seen))
notify.email_me(f"{len(rows)} new leads: {SEARCH}", "\n".join(r[0] for r in rows) or "No new businesses this week.")
return {"added": len(rows)}FAQ
Common questions
Can I search more than one city or category?
How many results does each search return?
Does it include email addresses?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get daily content ideas from search trends in a sheet
Each morning five post ideas based on what people are searching and reading in your niche are added to your content sheet.
See how it worksFill in company research for every row in a sheet
Add a company name to your sheet and the empty columns fill in with what they do, their size, recent news and their LinkedIn page.
See how it worksWrite SEO content briefs for new keywords in a sheet
Add a keyword to your SEO sheet and a content brief based on the current top ten Google results appears in the next column.
See how it worksKeep exploring
Set up “Collect local business leads from Google Maps into a sheet” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.
