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

Find local businesses for a niche + location, then enrich each one into a sales-ready prospect row: website, phone, email, contact page, social links, review signals, missing-digital-presence flags and a suggested outreach angle. Built for local SEO agencies and web-design shops.

- **URL**: https://apify.com/vesperxiv/local-business-lead-enrichment.md
- **Developed by:** [Vesper](https://apify.com/vesperxiv) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 price per enriched business rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Local Business Lead Enrichment Pack

Turn a niche + location into a sales-ready prospect list for local outreach.
Give it **"Plumbers, Austin, TX"** and it returns enriched rows — business
name, website, phone, email, contact page, social links, review signals —
plus a flag for every gap in the business's digital presence and a
one-sentence outreach angle for each row.

Built for **local SEO agencies and web-design shops** prospecting small
businesses that need a website, a rebuild, or local SEO.

### What you get per business

| Field | Source |
|---|---|
| Business name, phone, ZIP | BBB directory listing |
| BBB rating (A+ … F) | BBB directory listing |
| Website | DuckDuckGo Lite search for the business name |
| Email, contact page, social links | The business's own homepage |
| Review count (when the site mentions one) | Business homepage text |
| Missing-presence flags | Computed: `no-website`, `no-https`, `no-contact-page`, `no-email`, `no-social-profiles`, `low-review-count`, `review-count-unknown`, `website-unreachable` |
| Suggested outreach angle | Rule-based pitch from the flags |

Example angle: *"My Austin Plumber LLC has no social profiles — pitch social
setup plus review growth to outrank nearby competitors."*

### Input

- **Niche** — business type, e.g. `Plumbers`, `Roofers`, `Dentists`.
- **Location** — city + state, e.g. `Austin, TX`.
- **Max results** — 1–100 businesses per run (default 20).
- **Google Maps URLs (optional)** — place URLs to enrich directly. The
  business name is read from the URL and enriched the same way; these are
  processed first and count toward Max results.
- **Enrich websites** — on by default. Turn off for a fast name/phone-only
  list (no homepage fetches).

### How it works

1. **Discovery** — BBB search pages for the niche + location return a JSON
   list of businesses (name, phone, BBB grade, ZIP). Pages are walked until
   Max results is reached; duplicates are removed.
2. **Website lookup** — each business name is searched on OpenStreetMap
   (Overpass, near the geocoded location); the `website` tag is the
   official site, and `contact:email` / `phone` tags fill gaps. If OSM has
   no website for the business, DuckDuckGo Lite search is the fallback
   (first non-directory, domain-root result).
3. **Enrichment** — the homepage is fetched (HTTPS tried first) and parsed
   for emails (`mailto:` first), a contact page, social links, and review
   mentions such as "312 reviews". HTTPS status is recorded.
4. **Flags + angle** — missing-presence flags are computed and turned into
   a one-sentence pitch. A business whose site fails to load still gets a
   row, flagged `website-unreachable`, instead of breaking the run.

One source failing never kills the run: every per-business step is isolated,
so a dead website or a blocked lookup degrades to a partial row.

### Cost

Pay-per-event: **$0.003 per enriched business row** ($3 per 1,000 rows).
A 20-row run costs $0.06. The event is `enriched-lead`, charged once per
row pushed to the dataset. Rows whose website lookup was unavailable
(`lookup-unavailable`) are **not charged**.

### Platform IP limitation — read before buying

Website lookup needs a search source (OpenStreetMap, then DuckDuckGo).
Both challenge or rate-limit **shared datacenter IPs**, which is what
Apify runs use by default: in platform tests (Nov 2026) Overpass returned
HTTP 429/502 and DuckDuckGo served its bot-challenge page on every
attempt, so rows came back as `lookup-unavailable` with verified
name/phone/BBB rating but no website. **To get full enrichment on the
platform, run the Actor with Apify Proxy residential IPs** (enable a
proxy in the run options) — the same code enriches fully from a clean IP
(verified locally: 3 of 4 test businesses with website + email). Rows
marked `lookup-unavailable` are never billed and never claim the business
has no website.

### Output

One JSON object per business in the default dataset, plus a `SUMMARY`
record in the key-value store with the run totals. Fields match the dataset
schema: `businessName`, `website`, `phone`, `email`, `contactPageUrl`,
`facebookUrl`, `instagramUrl`, `linkedinUrl`, `twitterUrl`, `youtubeUrl`,
`bbbRating`, `reviewCount`, `reviewCountSource`, `zipCode`,
`bbbProfileUrl`, `mapsUrl`, `source`, `flags`, `outreachAngle`,
`enrichmentStatus`.

### Limits (honest)

- **US-focused.** Discovery runs on the BBB directory, which covers US
  businesses. Outside the US, feed the Actor Google Maps URLs instead.
- **No Google review counts.** Google Maps pages are JS-rendered and Yelp /
  YellowPages block datacenter IPs, so review counts come only from the
  business's own website when it mentions them — otherwise the row is
  flagged `review-count-unknown`.
- **BBB profile pages are bot-blocked (403)**, so enrichment never reads
  the profile itself — only the search listing and the business website.
- **Website lookup is a search guess.** The first non-directory result is
  usually the official site, but a business sharing a name with a bigger
  brand can be mismatched; the `website` field should be spot-checked
  before a campaign.
- **Emails are public website emails only.** Businesses that list no email
  anywhere get `no-email` — that itself is a pitch angle.
- Respect the target sites' terms; the Actor fetches public pages at low
  concurrency (5) with delays between directory pages.

# Actor input Schema

## `enrichWebsites` (type: `boolean`):

When on, each business website is fetched to extract email, contact page, social links and review mentions. Turn off for a fast name/phone-only list.

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

City + state (or ZIP) to prospect in, e.g. Austin, TX.

## `mapsUrls` (type: `array`):

Google Maps place URLs to enrich directly, e.g. https://www.google.com/maps/place/Acme+Plumbing/... — the business name is read from the URL and enriched the same way. These count toward maxResults and are processed first.

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

Maximum number of businesses to enrich per run (1-100). Each enriched row is billed at $0.003.

## `niche` (type: `string`):

Business type to prospect, e.g. Plumbers, Roofers, Dentists, Landscapers. Used as the BBB directory search term.

## Actor input object example

```json
{
  "enrichWebsites": true,
  "location": "Austin, TX",
  "mapsUrls": [],
  "maxResults": 20,
  "niche": "Plumbers"
}
```

# 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 = {
    "enrichWebsites": true,
    "location": "Austin, TX",
    "maxResults": 20,
    "niche": "Plumbers"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperxiv/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 = {
    "enrichWebsites": True,
    "location": "Austin, TX",
    "maxResults": 20,
    "niche": "Plumbers",
}

# Run the Actor and wait for it to finish
run = client.actor("vesperxiv/local-business-lead-enrichment").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 '{
  "enrichWebsites": true,
  "location": "Austin, TX",
  "maxResults": 20,
  "niche": "Plumbers"
}' |
apify call vesperxiv/local-business-lead-enrichment --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperxiv/local-business-lead-enrichment"
        }
    }
}
```

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/EpdDnlKmW3HUcP5Ou/builds/XOSwlti3p8YVHabiO/openapi.json
