apify/awesome-skills/apify-google-maps-leads
Claude Code and agent skill by apify/awesome-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Build a local-business lead database from Google Maps in one Apify pipeline: search by target audience + geography, enrich each place with company contacts from its website, leads enrichment (names, emails, phones, LinkedIn), Instagram + Facebook profiles, and optionally reviews for lead scoring. For places with no named contacts, escalate to apify/ai-web-scraper to pull owner / decision-maker names from the business website. Backfill missing phones via scalelist/phone-finder and missing emails via scalelist/email-finder. Use when the user asks to build a lead list from Google Maps, scrape local businesses, generate B2B leads by city/industry, find owner/decision-maker contacts for restaurants / dentists / gyms / hotels / any local vertical, score leads by review volume or rating, or says "Google Maps lead-gen pipeline", "leads from Maps", "prospect local businesses", "scrape Google Maps for outreach", "find companies in <city>", or mentions chaining Google Maps + AI web scraper + Scalelist Actors.
Install
npx vskill@latest install apify/awesome-skills/apify-google-maps-leadsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as apify/awesome-skills/apify-google-maps-leads.
Google Maps Leads (with Scalelist backfill)
Build a lead CSV from Google Maps in one pipeline:
- Interview — ask target audience, target geography, and whether to use reviews for lead scoring.
- Scrape — one
compass/crawler-google-placesrun with four add-ons pre-configured (leads enrichment, website contacts, Instagram + Facebook profiles, optional reviews). - Filter & score — apply a review-based score if scoring is on.
- Discover missing names — for places that came back with zero (or unnamed) leads, call
apify/ai-web-scraperon the business website to extract owner/decision-maker names. Scalelist can't work without a name. - Backfill contacts — call
scalelist/phone-finderfor leads with a missing phone,scalelist/email-finderfor leads with a missing email. - Deliver — a deduplicated CSV plus a
run_metadata.jsonsidecar.
Prerequisites
- Apify account (sign up)
- Auth via one of:
apify login(OAuth, if using the Apify CLI)APIFY_TOKENenv var- Token from Apify Console → Settings → Integrations
Either the Apify CLI (recommended for portability) or the Apify MCP connector works. Commands below use the CLI; the MCP path is a drop-in via the call-actor and get-dataset-items tools.
Workflow
Track progress with this checklist:
Step 1: Interview
Ask three questions as one block — don't drip them one by one.
- Target audience — the business type(s) to search for. Free text. Examples:
"dentists","vegan restaurants","boutique hotels","dog groomers, pet stores"(comma-splittable → array). - Target geography — one location per run. City + country reads best (
"Berlin, Germany","Austin, TX"). If the user gives a country only, warn that Maps runs perform best on city-scoped searches. - Use reviews for lead scoring? (y/n) — if yes, we pull reviews (
maxReviews) and filter by review volume + star rating post-run. If no, we skip reviews to cut cost.
Follow-ups only if the user asks for more control:
maxCrawledPlacesPerSearch— default50. Bigger runs = bigger cost.maximumLeadsEnrichmentRecords— default3per place (people to enrich per business). Never0— that disables leads enrichment, which is the point.leadsEnrichmentDepartments— default[](any). Enum values are listed in references/actor-inputs.md.- Minimum star rating pre-filter (
placeMinimumStars) — cheaper than post-filtering when scoring is off. - Review-scoring thresholds — default is
≥ 10 reviews AND ≥ 4.0 rating.
Cost warning threshold. Compute expected_leads = maxCrawledPlacesPerSearch × maximumLeadsEnrichmentRecords. If it exceeds 200, restate the number back to the user and confirm before running. Leads enrichment is the dominant cost line; a slip here is what surprises people.
Step 2: Build the Google Maps input
Set every field below on every run. Full field reference in references/actor-inputs.md.
| Field | Value | |
|---|---|---|
searchStringsArray | audience as array (e.g. ["dentists"]) | |
locationQuery | geography free text | |
maxCrawledPlacesPerSearch | user override or default 50 | |
language | "en" unless user specifies | |
scrapePlaceDetailPage | true — needed for phone + hours + address | |
skipClosedPlaces | true — permanent/temporary closures are dead leads | |
scrapeContacts | true — Add-on: Company contacts enrichment (from website) ($) | |
scrapeSocialMediaProfiles | {"instagrams": true, "facebooks": true, "youtubes": false, "tiktoks": false, "twitters": false} — Instagram + Facebook profile enrichment | |
maximumLeadsEnrichmentRecords | user override or default 3 — Add-on: Business leads enrichment ($) | |
leadsEnrichmentDepartments | user override or [] | |
verifyLeadsEnrichmentEmails | true — always, never false | |
maxReviews | 10 if scoring is on, 0 otherwise | |
reviewsSort | "newest" if scoring is on |
scrapeSocialMediaProfiles auto-enables scrapeContacts. Both are billed on top of the base scrape — see the Actor's pricing tab.
Step 3: Run compass/crawler-google-places
Capture id (runId) and defaultDatasetId. Pull the dataset:
Leads enrichment adds 30–90 s per place — expect long runs. If a run times out, the dataset already holds partial results; pull by datasetId.
Step 4: Filter and score
Applied to the raw places.json in order. Full logic in references/scoring-and-backfill.md.
- Spurious-match filter (always on). Drop leads whose
leadsEnrichment[].companyWebsitehostname doesn't match theplace.websitehostname. Same failure mode asapify-verified-email-finder— a global-fallback lead attributed to unrelated places by substring. Count drops inrun_metadata.json. - Review-based score (only if scoring is on).
- Default keep-logic:
place.reviewsCount >= 10 AND place.totalScore >= 4.0. - Emit a numeric
Lead Scorecolumn:round(place.totalScore * log10(place.reviewsCount + 1), 2). Higher = better local reputation. - If scoring is off,
Lead Scoreis blank.
- Empty-lead surfacing. If a place has zero enriched leads, keep one row for the place with blank person fields — the user sees the business but knows nobody was found. Never silently drop.
Step 5: Discover missing names via apify/ai-web-scraper
Scalelist needs a person name (or LinkedIn URL) to look anything up. When a place has zero enriched leads — or leads with blank firstName / lastName — but has a working website, run apify/ai-web-scraper on that website to extract owner/decision-maker names.
When to run this step per place (all conditions must hold):
place.websiteis non-empty (nothing to scrape otherwise)- Either
leadsEnrichment[]is empty, or every lead has a blankfirstName - The place survived Step 4's scoring filter (don't spend on places we're going to drop)
Payload — same input pattern as the Apify AI Web Scraper "list of writers" example, retargeted from blog authors to local-business decision-makers:
Defaults trimmed vs. the blog example (which uses maxPagesToVisit: 100 / maxCrawlDepth: 5) — small-business sites are typically shallow, and this is one call per website.
One place per call — the Actor's crawl fans out from startUrls, so batching multiple business sites in one startUrls array would mix results. Run one call per place website. Parallelize across places if you have many.
Merge results back onto the place:
- The Actor returns rows with
url,data,markdown.dataholds the extracted people — expect{ "people": [{ "name": "...", "jobTitle": "..." }] }or an array of such objects (LLM output shape varies). - For each extracted person, split
nameon the last space intofirstName/lastName. - Append a new lead into
place.leadsEnrichment[]withfirstName,lastName,jobTitle,companyWebsite = place.website, and markBackfill Source = "ai-web-scraper". - Cap at 3 new leads per place — the Actor sometimes returns lots of tangential names (past employees, testimonial subjects).
Skip conditions:
- Skip entirely if the user opts out of name discovery up front (offer this as a follow-up when running large batches — this is the priciest step per place).
- Skip if
place.websitereturns a redirect to a social profile (Facebook page, Instagram) — the AI scraper handles JS sites but Meta login walls will burn budget for nothing.
Step 6: Backfill missing contacts
For every lead surviving Step 5, check what's missing.
Phone backfill. Collect leads with a non-blank name and a blank phone. Group into batches of 100. Payload for scalelist/phone-finder:
linkedin_profile_url alone is sufficient; otherwise supply first_name + last_name + company_domain (preferred) or company_name.
Email backfill. Collect leads with a non-blank name and a blank email. Payload for scalelist/email-finder:
first_name + last_name are required; company_domain beats company_name for match rate.
Both Actors are pay-per-event: you're only charged for successful matches. Merge the returned phones/emails back onto the original leads by lowercased first_name + last_name + company_domain.
Skip conditions. Don't call scalelist if the lead has no first+last name AND no LinkedIn URL — nothing to look up. Don't call it if the user says "skip backfill" up front (surface this as an offer if the initial maximumLeadsEnrichmentRecords was high, since the cost stacks).
Step 7: Deduplicate and render the CSV
Full column schema in references/output-format.md. Twenty columns including Lead Score, Instagram Followers, Facebook Followers, Backfill Source.
- Dedupe by lowercased
emailwhere present; otherwise by lowercasedfirst_name + last_name + place_id. - Sort by
Lead Scoredescending when scoring is on; otherwise byBusinessalphabetically. - Deliverable header: state whether scoring was on, the review thresholds, and the spurious-match drop count. Offer to re-render without scoring if the kept-row count is low.
- Write a
run_metadata.jsonsidecar next to the CSV withrunId,datasetId, and stats (placesScraped,rawLeads,spuriousDropped,phonesBackfilled,emailsBackfilled,keptRows).
Worked example
See examples/example-dentists-berlin.md — full inputs + sample CSV rows for a "dentists in Berlin, Germany, scoring on" run.
Quality rules (always enforce)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/apify-google-maps-leads/SKILL.md
Popularity
- Repository stars
- 256
- Repository forks
- 67
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/apify/awesome-skills/apify-google-maps-leads)