# google-maps-leads

Business leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.

- **Space:** scraping-automation-public (https://github.com/Tech-Realm/space-scraping-automation-public/tree/main/google-maps-leads)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** APIFY_TOKEN
- **Tools:** python3
- **Routes:** osm-overpass, apify-places; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use scraping-automation-public/google-maps-leads` or MCP `get_pack scraping-automation-public/google-maps-leads`
- **Files:** CHANGELOG.md, code/maps_input.json, code/normalize_places.py, code/osm_places.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/places.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Business leads from Google Maps via an Apify places actor: search terms + city -> places -> deduped, phone-normalized leads CSV.

## Goal

A CSV of unique businesses (name, category, address, phone, website, rating) for a search and area, ready for outreach or a merchant directory.

## Routes (free first)

1. `osm-overpass` (free): `python3 code/osm_places.py --bbox <s,w,n,e> --tag shop=bakery --out places.json` - OpenStreetMap data; coverage thinner than Google, no ratings; be gentle with public Overpass servers
2. `apify-places` (paid): `python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2` - Google Maps data via an Apify actor

## Steps

1. Free route first: `python3 code/osm_places.py --bbox <south,west,north,east> --tag shop=bakery --out places.json` (OpenStreetMap, no key; thinner coverage). Use the Apify route below only when OSM coverage is not enough.
2. Edit code/maps_input.json (search terms, location, max places).
3. Run the places actor with the apify-run-actor pack: `lp run -- python3 ../apify-run-actor/code/apify_run.py run compass/crawler-google-places code/maps_input.json --out places.json --max-cost-usd 2`.
4. Normalize + dedupe: `python3 code/normalize_places.py places.json leads.csv --country PK` (phones to +92 form; dedupe by placeId, then phone, then name+address).
5. Spot-check 5 rows on Google Maps before using the list.

## Edge cases

- Big cities need several narrower searches (by area) to get past per-search result caps.
- Closed or duplicate listings are common; keep `skipClosedPlaces` and the dedupe.
- Phone numbers from Maps are business numbers, but still keep lists private and don't bulk message them.

## Don'ts

- Don't send bulk unsolicited messages or calls to the list.
- Don't publish scraped lead lists.



---

Canonical URL: https://logicpacks.io/packs/scraping-automation-public/google-maps-leads

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
