Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every Monday, ClickRuntime runs your Google Maps search through SerpApi and pages through the results.

  2. It checks each business against the ones it has added before and skips any it has already seen.

  3. New businesses are added as rows in your Leads sheet with name, address, phone, website and rating.

  4. 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

RunsWeekly
Collect local business leads from Google Maps into a sheettoday, 9:00Succeeded
Email · Weekly leads6 new leads: dentists in Austin, TX. Northwind Family Dental, Acme Smile Studio, ...

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
scrape_google_maps_business_leads_into_a_sheet.pyexample
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?
Yes. Give it a list of searches, such as dentists in Austin and orthodontists in Dallas, and each is run on the schedule.
How many results does each search return?
Google Maps results come in pages of about twenty. The automation pages through up to a hundred results per search, which covers most city and category combinations.
Does it include email addresses?
No. Google Maps listings include phone numbers and websites, not emails. Most businesses list a contact email on their website.
What permissions does it need?
Sheets write; SerpApi key. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (weekly). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.