# LocalLeads Pro — Google Maps Business Lead Extractor (`edgeofcali/localleads-pro`) Actor

LocalLeads Pro — Google Maps Business Lead Extractor — high-performance Apify actor.

- **URL**: https://apify.com/edgeofcali/localleads-pro.md
- **Developed by:** [Edward Martinez](https://apify.com/edgeofcali) (community)
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🗺️ LocalLeads Pro — Google Maps Business Lead Extractor

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-brightgreen)](https://apify.com) [![Node.js 20](https://img.shields.io/badge/Node.js-20%2B-blue)](https://nodejs.org) [![License MIT](https://img.shields.io/badge/License-MIT-yellow)](LICENSE) [![Playwright](https://img.shields.io/badge/Playwright-Powered-orange)](https://playwright.dev)

> **One actor replaces a 3-step manual workflow.** Search Google Maps, extract business details, visit websites for verified emails — all in one run. CRM-ready CSV/JSON output.

***

### 🚀 What Does This Actor Do?

**LocalLeads Pro** is a complete local lead generation pipeline built on Google Maps. Simply provide a keyword and city, and the actor will:

1. 🔍 **Search Google Maps** for businesses matching your keyword + location
2. 🏢 **Extract business details** — name, address, phone, website, rating, reviews, hours, categories
3. 🌐 **Visit business websites** (optional) to find verified email addresses
4. 🤖 **Generate AI insights** and lead quality scores for each business
5. 📊 **Export CRM-ready data** in CSV or JSON format

***

### 💼 Use Cases

| Industry | Example Use Case | Keyword Example |
|---|---|---|
| Marketing Agencies | Find local businesses needing SEO | `"digital marketing" Chicago` |
| SaaS Sales | Target restaurants for POS software | `"restaurant" Austin` |
| Insurance | Generate SMB leads by city | `"plumber" Denver` |
| Recruitment | Find local hiring companies | `"law firm" Miami` |
| Real Estate | Identify commercial property clients | `"gym" Seattle` |
| B2B Suppliers | Find wholesale buyers | `"bakery" Portland` |

***

### 📥 Input Fields

| Field | Type | Default | Description |
|---|---|---|---|
| `keyword` | String | `coffee shop` | Business type or keyword to search (e.g. `plumber`, `dentist`) |
| `location` | String | `New York` | City, state, or region to search in |
| `maxBusinesses` | Number | `50` | Maximum number of businesses to extract (1–200) |
| `visitWebsites` | Boolean | `true` | Whether to visit business websites to extract emails |

***

### 📤 Output Fields

| Field | Type | Description |
|---|---|---|
| `name` | String | Business name |
| `address` | String | Full street address |
| `phone` | String | Phone number |
| `website` | String | Business website URL |
| `email` | String | Extracted email address (from website visit) |
| `rating` | Number | Google Maps star rating (0–5) |
| `reviewCount` | Number | Total number of Google reviews |
| `hours` | Array | Opening hours by day of week |
| `categories` | String | Business category/type |
| `mapsUrl` | String | Direct Google Maps URL for the business |
| `aiInsight` | String | AI-generated 1-sentence business intelligence note |
| `aiScore` | Number | Lead quality score (0–10, computed from rating) |
| `scrapedAt` | String | ISO 8601 timestamp of when data was scraped |
| `actorVersion` | String | Version of the actor used |

***

### 🤖 AI Insights & Scoring

Every record includes:

- **`aiInsight`** — A human-readable sentence like: *"Top-rated coffee shop with 800+ reviews — exceptional lead with strong social proof."*
- **`aiScore`** — Numeric score from 0–10 computed as `(rating / 5) × 10`

This helps you prioritize outreach without manual review.

***

### 📋 Example Output

```json
{
  "name": "Blue Bottle Coffee",
  "address": "450 W 15th St, New York, NY 10011",
  "phone": "+1 718-387-4160",
  "website": "https://bluebottlecoffee.com",
  "email": "hello@bluebottlecoffee.com",
  "rating": 4.6,
  "reviewCount": 843,
  "hours": [
    { "day": "Monday", "hours": "7AM–6PM" },
    { "day": "Tuesday", "hours": "7AM–6PM" },
    { "day": "Wednesday", "hours": "7AM–6PM" },
    { "day": "Thursday", "hours": "7AM–6PM" },
    { "day": "Friday", "hours": "7AM–6PM" },
    { "day": "Saturday", "hours": "8AM–6PM" },
    { "day": "Sunday", "hours": "8AM–5PM" }
  ],
  "categories": "Coffee shop",
  "mapsUrl": "https://www.google.com/maps/place/Blue+Bottle+Coffee/...",
  "aiInsight": "Top-rated coffee shop with 843 reviews — exceptional lead with strong social proof.",
  "aiScore": 9.2,
  "scrapedAt": "2024-06-15T14:32:17.000Z",
  "actorVersion": "0.1.0"
}
```

***

### 💰 Pricing

| Plan | Price | Includes |
|---|---|---|
| Starter | $9/month | 500 leads/month |
| Pro | $29/month | 5,000 leads/month + email extraction |
| Agency | $99/month | Unlimited leads + priority support |
| Pay-as-you-go | $0.01/lead | No subscription needed |

***

### ⚙️ Technical Details

- **Runtime**: Node.js 20+ with ESM modules
- **Browser**: Chromium via Playwright (pre-installed in Docker)
- **Anti-bot**: Apify Proxy with residential IP rotation
- **Rate limiting**: Random delays between requests (800–2000ms)
- **Pagination**: Automatic scroll-to-load-more for Google Maps results
- **Validation**: All output records validated with Zod schema

***

### 🔧 Tips for Best Results

1. **Be specific with keywords**: `"Italian restaurant"` gets better results than `"food"`
2. **Use city + state**: `"Chicago, IL"` is more precise than just `"Chicago"`
3. **Enable visitWebsites** for maximum data including emails
4. **Start with 20–30 results** to test before running large batches
5. **Use Apify proxy** to avoid rate limiting from Google Maps

***

### 📞 Support

For issues, feature requests, or custom solutions, contact us through the Apify platform. We respond within 24 hours.

# Actor input Schema

## `startUrls` (type: `array`):

List of URLs to start scraping from.

## `maxItems` (type: `integer`):

Maximum number of results to return.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("edgeofcali/localleads-pro").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("edgeofcali/localleads-pro").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call edgeofcali/localleads-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,edgeofcali/localleads-pro"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/6X1kRsWkNqHaK9cP6/builds/8W4J6FRaus1Rhe4nC/openapi.json
