# Local Business Lead Enrichment (`devwithbobby/local-business-lead-enrichment`) Actor

Find local businesses by niche + location, then enrich with email, phone, social profiles, tech stack, and lead score. The complete lead list; not just a raw scrape.

- **URL**: https://apify.com/devwithbobby/local-business-lead-enrichment.md
- **Developed by:** [Dev with Bobby](https://apify.com/devwithbobby) (community)
- **Categories:** Automation, Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 enriched leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Local Business Lead Enrichment

Find local businesses by niche + location, then enrich with email, phone, social profiles, tech stack, and a transparent lead score. The complete lead list -- not just a raw scrape.

### What This Does

Most "Google Maps scrapers" give you a spreadsheet of names and addresses. This actor gives you a **finished lead list** ready for outreach:

1. **Collects** businesses from Google Maps by niche + city/state
2. **Deduplicates** by Place ID, phone, website domain, and name
3. **Enriches** each lead's website for email, social profiles, and tech stack
4. **Scores** every lead 0-100 with a transparent per-factor breakdown
5. **Exports** structured, CRM-ready data

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `businessType` | String | `"pool builders"` | Niche to search (e.g., "roofers", "dentists", "med spas") |
| `location` | String | `"Phoenix, AZ"` | City and state/region |
| `maxResults` | Integer | `100` | Maximum leads to return (1-1000) |
| `enrichDepth` | String | `"full"` | `"basic"` (fast, no website crawl) or `"full"` (email/social/tech/score) |
| `minRating` | Number | `0` | Minimum Google rating filter (0-5) |
| `maxConcurrency` | Integer | `5` | Parallel enrichment requests |
| `proxyConfig` | Object | Residential | Proxy settings |

#### Example Input

```json
{
    "businessType": "pool builders",
    "location": "Phoenix, AZ",
    "maxResults": 500,
    "enrichDepth": "full",
    "minRating": 3.5
}
````

### Output

#### Lead Row

```json
{
    "businessName": "ABC Pools & Spas",
    "category": "Swimming pool contractor",
    "address": "1234 E Camelback Rd",
    "city": "Phoenix",
    "state": "AZ",
    "zipCode": "85016",
    "phone": "(602) 555-0123",
    "website": "https://abcpools.com",
    "email": "info@abcpools.com",
    "emailConfidence": "mailto",
    "googleRating": 4.7,
    "reviewCount": 138,
    "googleMapsUrl": "https://www.google.com/maps/place/...",
    "placeId": "ChIJ...",
    "facebook": "https://facebook.com/abcpools",
    "instagram": "https://instagram.com/abcpools",
    "linkedin": "https://linkedin.com/company/abc-pools",
    "twitter": null,
    "youtube": null,
    "tiktok": null,
    "techStack": ["WordPress", "Elementor", "Google Analytics", "reCAPTCHA"],
    "leadScore": 87,
    "scoreBreakdown": {
        "reputation": 25,
        "reachability": 27,
        "digitalMaturity": 15,
        "opportunity": 20
    },
    "enrichmentStatus": "full",
    "scrapedAt": "2026-06-18T12:00:00.000Z"
}
```

#### Run Summary

Saved to key-value store as `RUN_SUMMARY`:

```json
{
    "query": "pool builders in Phoenix, AZ",
    "totalLeads": 247,
    "enrichedLeads": 198,
    "withEmail": 142,
    "withPhone": 231,
    "withWebsite": 198,
    "withSocials": 167,
    "avgLeadScore": 64,
    "topLeads": [...]
}
```

### Lead Score (0-100)

The score is transparent and broken into four factors:

| Factor | Max Points | What It Measures |
|--------|-----------|------------------|
| **Reputation** | 25 | Google rating + review volume |
| **Reachability** | 30 | Has website + phone + email + social presence |
| **Digital Maturity** | 25 | Tech stack depth, analytics, CRM, chat tools |
| **Opportunity** | 20 | High reputation but missing digital tools = upsell target |

**High score (70+):** Established business with good reputation and digital presence.
**Opportunity score:** Businesses with great reviews but weak tech stack -- ideal prospects for agencies selling websites, SEO, CRM, or marketing services.

### Enrichment Depth

#### Basic Mode (`enrichDepth: "basic"`)

- Name, address, phone, rating, reviews from Google Maps
- No website crawling
- Fast, low cost
- Best for: initial prospecting, volume lists

#### Full Mode (`enrichDepth: "full"`)

- Everything in basic, plus:
- Email extraction (with confidence: `mailto`, `contact_page`, `pattern`)
- Social profiles: Facebook, Instagram, LinkedIn, Twitter/X, YouTube, TikTok
- Tech stack detection (30+ technologies)
- Lead scoring with breakdown
- Best for: qualified outreach lists, agency prospecting

### Dataset Views

Three pre-built views in the Apify Console:

1. **Lead List** - Business, phone, email, website, rating, score
2. **Enriched Details** - Full enrichment data with socials, tech stack, score breakdown
3. **Location View** - Addresses and Google Maps links

### Use Cases

#### For Lead Gen Agencies

Search for businesses with high reviews but low digital maturity (high opportunity score). These are your ideal clients.

```json
{
    "businessType": "roofers",
    "location": "Dallas, TX",
    "maxResults": 500,
    "enrichDepth": "full",
    "minRating": 4.0
}
```

#### For Local SEO

Build prospect lists of businesses in specific niches. Filter by those without analytics or modern CMS.

```json
{
    "businessType": "dentists",
    "location": "Miami, FL",
    "maxResults": 200,
    "enrichDepth": "full"
}
```

#### For SaaS Sales

Find businesses using (or not using) specific tools. Export and filter by tech stack.

```json
{
    "businessType": "HVAC contractors",
    "location": "Chicago, IL",
    "maxResults": 300,
    "enrichDepth": "full"
}
```

### Pricing

- **Basic leads:** ~$5 per 1,000 results
- **Enriched leads:** ~$15 per 1,000 results
- Pricing depends on Apify platform compute and proxy usage

### Technical Notes

- Uses Playwright for Google Maps (requires JS rendering)
- Residential proxies recommended for best results
- Rate-limited to avoid blocks
- Deduplication by Place ID, phone, domain, and business name
- All leads sorted by lead score (highest first)

### Support

For issues or feature requests, contact the author or open an issue on the actor's page.

# Actor input Schema

## `businessType` (type: `string`):

The type of business to search for (e.g., 'pool builders', 'roofers', 'dentists', 'med spas', 'plumbers').

## `location` (type: `string`):

City and state/region to search (e.g., 'Phoenix, AZ', 'Dallas, TX', 'Miami, FL').

## `maxResults` (type: `integer`):

Maximum number of leads to return. The actor will collect up to this many unique businesses.

## `enrichDepth` (type: `string`):

How deeply to enrich each lead. 'basic' = name/address/phone/rating only (fast). 'full' = adds email, social profiles, tech stack, and lead score (slower but higher value).

## `minRating` (type: `number`):

Only include businesses with at least this Google rating (0-5). Set to 0 to include all.

## `maxConcurrency` (type: `integer`):

Number of parallel enrichment requests. Higher = faster but more resource usage.

## `proxyConfig` (type: `object`):

Proxy settings. Residential proxies recommended for best results.

## Actor input object example

```json
{
  "businessType": "pool builders",
  "location": "Phoenix, AZ",
  "maxResults": 10,
  "enrichDepth": "basic",
  "minRating": 0,
  "maxConcurrency": 5,
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

Quick view of all leads with key contact info and scores

## `enriched` (type: `string`):

Full enrichment data including emails, socials, tech stack, and score breakdown

## `locations` (type: `string`):

Address and location data for all leads

## `allData` (type: `string`):

Complete raw JSON data for all leads

## `runSummary` (type: `string`):

Summary statistics for this run

# 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 = {
    "businessType": "pool builders",
    "location": "Phoenix, AZ",
    "maxResults": 10,
    "enrichDepth": "basic",
    "proxyConfig": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devwithbobby/local-business-lead-enrichment").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 = {
    "businessType": "pool builders",
    "location": "Phoenix, AZ",
    "maxResults": 10,
    "enrichDepth": "basic",
    "proxyConfig": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("devwithbobby/local-business-lead-enrichment").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "businessType": "pool builders",
  "location": "Phoenix, AZ",
  "maxResults": 10,
  "enrichDepth": "basic",
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call devwithbobby/local-business-lead-enrichment --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=devwithbobby/local-business-lead-enrichment",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Local Business Lead Enrichment",
        "description": "Find local businesses by niche + location, then enrich with email, phone, social profiles, tech stack, and lead score. The complete lead list; not just a raw scrape.",
        "version": "1.0",
        "x-build-id": "hkf075UzFjQvOIaTl"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/devwithbobby~local-business-lead-enrichment/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-devwithbobby-local-business-lead-enrichment",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/devwithbobby~local-business-lead-enrichment/runs": {
            "post": {
                "operationId": "runs-sync-devwithbobby-local-business-lead-enrichment",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/devwithbobby~local-business-lead-enrichment/run-sync": {
            "post": {
                "operationId": "run-sync-devwithbobby-local-business-lead-enrichment",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "businessType",
                    "location"
                ],
                "properties": {
                    "businessType": {
                        "title": "Business Type / Niche",
                        "type": "string",
                        "description": "The type of business to search for (e.g., 'pool builders', 'roofers', 'dentists', 'med spas', 'plumbers')."
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City and state/region to search (e.g., 'Phoenix, AZ', 'Dallas, TX', 'Miami, FL')."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of leads to return. The actor will collect up to this many unique businesses.",
                        "default": 10
                    },
                    "enrichDepth": {
                        "title": "Enrichment Depth",
                        "enum": [
                            "basic",
                            "full"
                        ],
                        "type": "string",
                        "description": "How deeply to enrich each lead. 'basic' = name/address/phone/rating only (fast). 'full' = adds email, social profiles, tech stack, and lead score (slower but higher value).",
                        "default": "basic"
                    },
                    "minRating": {
                        "title": "Minimum Google Rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Only include businesses with at least this Google rating (0-5). Set to 0 to include all.",
                        "default": 0
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Number of parallel enrichment requests. Higher = faster but more resource usage.",
                        "default": 5
                    },
                    "proxyConfig": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Residential proxies recommended for best results."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
