# Clura Google Maps Lead Generator (`clura/clura-google-maps-lead-generator`) Actor

- **URL**: https://apify.com/clura/clura-google-maps-lead-generator.md
- **Developed by:** [Clura](https://apify.com/clura) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

## Clura Google Maps Lead Generator

One actor covering every Clura Google Maps lead-gen vertical — pick which one via the `niche` input field, no separate actor per business type. Built on a real Chrome browser driven by the actual Clura Chrome extension (not a lightweight HTTP scraper), so it holds up against the same anti-bot measures a real user's browser would face, and self-heals its selectors with AI if Google changes Maps' markup.

### Available niches

| `niche` value | What it does |
|---|---|
| `hvac` | HVAC, AC repair, and heating contractor leads |
| `dental` | Dentist, orthodontist, and healthcare provider leads |
| `real-estate` | Real estate agent and broker leads |
| `lawyer` | Law firm and attorney leads |
| `home-services-extended` | HVAC, plumbing, electrical, roofing, solar, garage door, pest control, and landscaping leads |
| `google-maps-keywords` | Any business type — search by your own keyword, no built-in vertical |
| `google-maps-email-finder` | Same as above, framed around finding a public business email |
| `google-maps-by-urls` | Re-scrape a list of Google Maps place URLs you already have — no search step |

### How it works

1. **Search Google Maps** (every niche except `google-maps-by-urls`) — for each location you provide, searches Google Maps for each of your search terms, rotating across all of them to surface more distinct businesses per area than a single generic query would. Vertical niches (hvac/dental/real-estate/lawyer/home-services-extended) fall back to a built-in rotation of search terms if you leave `searchTerms` empty; `google-maps-keywords`/`google-maps-email-finder` have no defaults and require your own.
2. **Extract listing data** — business name, rating, category, address, phone, website, and Google Maps URL, read directly from the search results (or, for `google-maps-by-urls`, directly from each place page).
3. **Deduplicate** — businesses found under more than one search term are merged into one record, keyed on phone number first, then website domain.
4. **Enrich from each business's website** — visits each website's homepage once and extracts the first email address found, detected services relevant to the niche, whether 24/7 emergency service is advertised, and Facebook/Instagram/LinkedIn/Twitter profile links.

### Input

The `niche` field determines which other fields apply — see the table above. `locations`/`searchTerms` drive every niche except `google-maps-by-urls`, which uses `placeUrls` instead. See `input_schema.json` for full field descriptions and defaults.

### Output

One row per business/listing in the default dataset. Field names differ slightly between the search-based niches and `google-maps-by-urls` (e.g. `name` vs `businessName`, `emergency24_7` vs `emergency247`) — see `dataset_schema.json` for the full field list and which niche populates which.

# Actor input Schema

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

Which lead type to search for. Determines which fields below apply: every option except "Google Maps Listings (by URLs)" searches by locations + search terms; that one re-scrapes a list of place URLs instead.

## `locations` (type: `array`):

Zip codes or city/state to search, e.g. \["75201", "Austin, TX"]. Every search term below is run once per location. Not used when niche is "google-maps-by-urls".

## `searchTerms` (type: `array`):

Business types/keywords to search for, rotated across each location to surface more leads (Google Maps' ranking varies by query wording). Vertical niches (HVAC, Dental, Real Estate, Lawyer, Home Services) default to a built-in rotation if left empty; "Google Maps Leads (by Keywords)" and "Google Maps Email Finder" have no defaults and require your own. Not used when niche is "google-maps-by-urls".

## `placeUrls` (type: `array`):

Direct Google Maps place URLs to refresh — only used when niche is "google-maps-by-urls". Each one is visited directly, no search step.

## `maxLeadsPerSearch` (type: `integer`):

Maximum leads to collect per location x search term combination. Floored at 3 internally — a search page-load costs about the same whether it returns 1 result or several, so a lower cap just wastes searches. Not used when niche is "google-maps-by-urls".

## `maxTotalLeads` (type: `integer`):

Real ceiling on total deduped leads across every location x search term combination — once reached, remaining searches are skipped instead of always running every combo. Not used when niche is "google-maps-by-urls".

## `maxPagesPerSearch` (type: `integer`):

Maximum pagination steps (scrolls) per search before stopping. Not used when niche is "google-maps-by-urls".

## `enrichWebsite` (type: `boolean`):

Visit each lead's website homepage to extract email, detected services, 24/7 emergency availability, and social media links.

## `crawlContactPages` (type: `boolean`):

If the homepage has no email, follow one Contact/About-style link on the site to look there too. Costs one extra page visit per lead that needs it. Default false.

## `openaiApiKey` (type: `string`):

Used only if Google Maps' markup has changed enough that the built-in recipe stops working, to re-map fields via AI. Falls back to the OPENAI_API_KEY env var if omitted.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings to route the browser's traffic through.

## `recipeOverride` (type: `object`):

Advanced use only. Overrides the actor's built-in Google Maps selectors.

## Actor input object example

```json
{
  "niche": "hvac",
  "locations": [
    "Austin, TX"
  ],
  "searchTerms": [],
  "placeUrls": [],
  "maxLeadsPerSearch": 5,
  "maxPagesPerSearch": 2,
  "enrichWebsite": true,
  "crawlContactPages": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Every lead found, one row per business — the actor's main result.

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

Status, which niche ran, total leads found, searches run, searches that needed the contact-page fallback, and how many leads had an email — one JSON record for the whole 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("clura/clura-google-maps-lead-generator").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("clura/clura-google-maps-lead-generator").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 '{}' |
apify call clura/clura-google-maps-lead-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clura/clura-google-maps-lead-generator"
        }
    }
}
```

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/QyVS7qcgGq0HPsF9t/builds/ua8Ac0uozJUzOxLRU/openapi.json
