# Google Maps Lead Generator (`ahmedraza1026/apify-google-leads`) Actor

Extract high-quality business leads from Google Maps in minutes. Export names, phones, websites, ratings, reviews, and coordinates to CSV, JSON, Excel, or Apify Dataset.

- **URL**: https://apify.com/ahmedraza1026/apify-google-leads.md
- **Developed by:** [Ahmed Raza](https://apify.com/ahmedraza1026) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/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

## Apify Google Leads

Extract business leads from Google Maps for a keyword and location, then enrich each result with website-based signals such as emails, social links, tech stack hints, SEO data, and a lead score.

### What This Actor Does

Give the Actor a search like:

- `Dentists` in `London`
- `Roofers` in `Austin, Texas`
- `Immigration lawyers` in `Dubai`

It will return businesses with structured lead data such as:

- business name
- category
- address
- city and country
- phone number
- website
- extracted emails
- social links
- technology stack hints
- SEO details
- lead score and short reason

All results are written to the default Apify dataset.

### Typical Use Cases

- build local business prospect lists
- find companies with weak web presence
- collect sales leads by niche and city
- enrich Google Maps results before outreach
- export leads for CRM or spreadsheet workflows

### Input

#### Required

- `keyword`: the type of business or search phrase
- `location`: the city, region, or country to search

#### Optional

- `max_results`: maximum number of leads to collect
- `provider_mode`: choose how Google data is collected
- `playwright_headless`: run the browser invisibly or visibly when browser mode is used
- `export_format`: preferred export artifact format
- `enable_ai`: reserved for future AI summary support

### Provider Modes

#### `playwright`

This is the default mode on Apify.

Use it when:

- you want the simplest setup
- you do not want to provide a Google Places API key
- browser-based Google Maps extraction is acceptable

#### `api`

Use this mode when:

- you want to use the Google Places API
- you have a valid `GOOGLE_MAPS_API_KEY`
- you prefer API-backed collection instead of browser extraction

If you choose `api`, add `GOOGLE_MAPS_API_KEY` in the Actor environment variables or secrets.

### Output

Each dataset item contains a structured business record. Common fields include:

- `id`
- `name`
- `category`
- `address`
- `city`
- `country`
- `phone`
- `website`
- `emails`
- `social_links`
- `technology_stack`
- `ai_summary`
- `outreach_message`
- `lead_score`
- `lead_reason`

### How To Use On Apify

1. Open the Actor input form.
2. Enter a `keyword` and `location`.
3. Leave `provider_mode` as `playwright` for the easiest first run.
4. Set `max_results` based on how many businesses you want.
5. Run the Actor.
6. Open the dataset to review and export the results.

### Recommended First Run

- `keyword`: `Dentists`
- `location`: `London`
- `max_results`: `25`
- `provider_mode`: `playwright`

### Notes

- `playwright` mode does not require a Google API key.
- `api` mode requires `GOOGLE_MAPS_API_KEY`.
- Website enrichment depends on whether a business website is publicly available and reachable.
- Some businesses may have partial data if Google Maps or the target website does not expose every field.

### Output Quality Tips

- Use specific keywords like `family dentists`, `solar installers`, or `personal injury lawyers`.
- Use realistic locations such as a city, metro area, or country.
- Start with smaller runs to validate the niche before scaling up.
- If you need a simpler first run, keep the default Playwright mode.

# Actor input Schema

## `keyword` (type: `string`):

Business category or search phrase, for example `Dentists`, `Roofers`, or `Family lawyers`.

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

City, country, or target search area used with the keyword, for example `London`, `Austin, Texas`, or `Dubai`.

## `max_results` (type: `integer`):

Maximum number of businesses to return.

## `provider_mode` (type: `string`):

Default `playwright` runs without a Google API key. Use `api` only if you set `GOOGLE_MAPS_API_KEY` in Actor environment variables or secrets.

## `playwright_headless` (type: `boolean`):

Run Chromium headlessly when `provider_mode` is `playwright`.

## `export_format` (type: `string`):

The engine also builds other export artifacts internally, while the Actor always writes full business objects to the dataset.

## `enable_ai` (type: `boolean`):

Reserved for future AI-backed summaries in the core engine.

## Actor input object example

```json
{
  "keyword": "Dentists",
  "location": "London",
  "max_results": 25,
  "provider_mode": "playwright",
  "playwright_headless": true,
  "export_format": "json",
  "enable_ai": false
}
```

# 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 = {
    "keyword": "Dentists",
    "location": "London"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmedraza1026/apify-google-leads").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 = {
    "keyword": "Dentists",
    "location": "London",
}

# Run the Actor and wait for it to finish
run = client.actor("ahmedraza1026/apify-google-leads").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 '{
  "keyword": "Dentists",
  "location": "London"
}' |
apify call ahmedraza1026/apify-google-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ahmedraza1026/apify-google-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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