# 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 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

## 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

Download the OpenAPI definition: https://api.apify.com/v2/actors/vXuZnDq5v1BoR6Mi9/builds/hkf075UzFjQvOIaTl/openapi.json
