# Smart Lead Scraper (`som1/smart-lead-scraper`) Actor

🚀 Get B2B leads + AI Sales Pitches in 1 click! Scrapes Google Maps & uses Gemini AI to write personalized outreach messages for any business. 📍 Extract phone, address, & ratings globally. 💰 Zero AI cost with BYOK! Perfect for marketing agencies & sales teams.

- **URL**: https://apify.com/som1/smart-lead-scraper.md
- **Developed by:** [somveer](https://apify.com/som1) (community)
- **Categories:** AI, Agents, Automation
- **Stats:** 5 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.01 / 1,000 verified ai-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

## 🎯 AI Lead Hunter - Find & Pitch Prospects Automatically

**Stop Manual Lead Research. Start Closing Deals.**

Scrape unlimited qualified leads from Google Maps and get AI-powered sales pitches written in seconds—no manual work, no setup fees.

---

### 💡 What Is AI Lead Hunter?

AI Lead Hunter is the fastest way to discover prospects and generate personalized sales pitches at scale. In minutes, you can:

✅ **Scrape thousands of leads** from Google Maps (any industry, any location)  
✅ **Extract verified business data** (name, phone, website, rating, address)  
✅ **Generate AI sales pitches** in any language in seconds  
✅ **Export leads to CSV** ready for your next campaign  

**No coding required. No monthly software fees. Cloud-powered.**

---

### 🚀 Key Features

#### 🌍 **Global Lead Scraping**
Search any industry, any location, any language. Google Maps covers billions of businesses worldwide. Extract verified contact information instantly.

#### 🤖 **AI-Powered Sales Pitches**
Forget generic emails. AI Lead Hunter analyzes each prospect's website and generates personalized, industry-specific sales pitches—all automatically. Save 10+ hours per week on research.

#### 💰 **Zero Monthly Cost (BYOK)**
Bring Your Own Key (Google Gemini). No hidden fees. No seat limits. Just pay for Google's Gemini API—literally pennies per lead analyzed.

#### ☁️ **Cloud-Based (No Setup)**
Everything runs on Apify Cloud. No installation, no servers, no IT headaches. Just input your search and watch the magic happen.

#### 📊 **Structured Data Export**
Get organized, ready-to-use lead lists. Seamlessly integrate with your CRM, email campaigns, or sales team.

---

### 📋 How It Works

#### **Step 1: Define Your Search**
Tell AI Lead Hunter what you're looking for:
- Industry (e.g., "Digital Marketing Agencies", "Local Plumbers", "Fitness Centers")
- Location (e.g., "San Francisco, CA", "Dallas, TX", Worldwide)
- How many leads you want (up to 500 per run)

#### **Step 2: AI Analyzes Each Prospect**
The system:
- Visits each business's website
- Analyzes their content and needs
- Scores them for sales potential

#### **Step 3: Generate Pitches**
AI instantly creates 2 personalized sales lines tailored to each prospect:
- In any language you want
- Highlighting their specific pain points
- Addressing their industry challenges

#### **Step 4: Export & Use**
Download your leads as structured data:
```json
{
  "business_name": "TechFlow Solutions",
  "phone": "+1-555-0123",
  "website": "www.techflow.com",
  "category": "Digital Marketing Agency",
  "rating": 4.8,
  "address": "123 Market St, SF",
  "ai_analysis": {
    "sales_pitch_line_1": "Your website could convert 3x more leads with modern UX redesign.",
    "sales_pitch_line_2": "Let's audit your conversion funnel—it typically uncovers $50K in revenue."
  }
}
````

Ready to import into your CRM, email tool, or sales follow-up sequences.

***

### 👥 Who Is This For?

#### 📱 **Digital Marketing Agencies**

Find local B2B clients at scale. Use AI pitches to personalize outreach. Land new retainer clients faster.

#### 💼 **Freelance Consultants**

Stop cold-calling. Get warm leads with AI-researched pitches. Spend time closing, not researching.

#### 🔥 **Sales Teams**

Bypass gatekeepers with intelligent, personalized angles. Increase reply rates by 10-30%. Move opportunities faster.

#### 🎯 **Business Development Managers**

Automate lead research. Scale outreach without hiring more headcount. Track ROI per dollar spent.

***

### 💻 Quick Start

#### Input Example

```json
{
  "search_query": "digital marketing agencies in San Francisco",
  "max_results": 50,
  "gemini_api_key": "your-free-google-gemini-key",
  "ai_model": "gemini-1.5-flash",
  "language": "English"
}
```

#### Get Your Free Google Gemini API Key

1. Go to [Google AI Studio](https://aistudio.google.com/app/apikey)
2. Click "Create API Key"
3. Copy your free key
4. Run AI Lead Hunter

**That's it. No credit card. No setup. No waiting.**

***

### 📊 What You Get

| Feature | AI Lead Hunter | Manual Research | Other Tools |
|---------|-----------------|-----------------|------------|
| **Speed** | 500 leads in 5 mins | 500 leads in 200 hours | 500 leads in 50 mins |
| **Cost** | $0-10/run | 100+ hours labor | $500-5000/month |
| **AI Pitches** | ✅ Included | ❌ Manual | ⚠️ Generic |
| **Setup Time** | < 1 minute | Hours | Hours |
| **Languages** | ✅ Any | ❌ English only | ⚠️ Limited |

***

### 🎁 Enterprise Features (Coming Soon)

🔄 Scheduling & Automation\
📈 Lead Quality Scoring\
🔗 Direct CRM Integration\
📧 Built-in Email Campaign Tools\
👥 Team Collaboration

***

### ❓ FAQ

**Q: Is this legal?**\
A: Yes. We follow all Google Terms of Service and scrape publicly available data only.

**Q: How much does it cost?**\
A: Zero. You only pay for Google's Gemini API ($0.50-2 per 1M tokens, typically $1-5 per 500 leads).

**Q: Can I use it internationally?**\
A: Yes. Search any country, any city, any language.

**Q: How many leads can I scrape?**\
A: Up to 500 per run. You can run unlimited times.

**Q: What if I already have an OpenAI key?**\
A: Switch to Google Gemini (free tier includes 15 requests/min). Or contact support.

***

### 🚀 Ready to Scale Your Lead Generation?

**Stop wasting time on manual research.** Get thousands of qualified leads with AI-crafted pitches—today.

#### Start Now (Free)

1. Sign up on Apify
2. Run AI Lead Hunter
3. Export your first 50 leads in 5 minutes

**No credit card. No complicated setup. Just results.**

***

**Questions?** Contact: support@ailead hunter.com\
**Docs:** [Full Documentation](https://docs.apify.com)\
**Made for:** Marketing Agencies, Sales Teams, Business Development Professionals

# Actor input Schema

## `search_query` (type: `string`):

The search term for Google Maps (e.g., 'restaurants in New York', 'dentists in Los Angeles')

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

Maximum number of businesses to scrape

## `gemini_api_key` (type: `string`):

Your Google Gemini API key for AI-powered business analysis. Get it free at https://aistudio.google.com/app/apikey. If not provided, only basic scraping will be performed.

## `ai_model` (type: `string`):

The Gemini model to use for analysis

## `language` (type: `string`):

Language for AI-generated sales pitches

## Actor input object example

```json
{
  "search_query": "digital marketing agencies in San Francisco",
  "max_results": 20,
  "gemini_api_key": "AIza...",
  "ai_model": "gemini-1.5-flash",
  "language": "Spanish"
}
```

# 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("som1/smart-lead-scraper").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("som1/smart-lead-scraper").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 '{}' |
apify call som1/smart-lead-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Smart Lead Scraper",
        "description": "🚀 Get B2B leads + AI Sales Pitches in 1 click! Scrapes Google Maps & uses Gemini AI to write personalized outreach messages for any business. 📍 Extract phone, address, & ratings globally. 💰 Zero AI cost with BYOK! Perfect for marketing agencies & sales teams.",
        "version": "1.0",
        "x-build-id": "Oktx6NrQ1ua0opjaX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/som1~smart-lead-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-som1-smart-lead-scraper",
                "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/som1~smart-lead-scraper/runs": {
            "post": {
                "operationId": "runs-sync-som1-smart-lead-scraper",
                "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/som1~smart-lead-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-som1-smart-lead-scraper",
                "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": [
                    "search_query"
                ],
                "properties": {
                    "search_query": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "The search term for Google Maps (e.g., 'restaurants in New York', 'dentists in Los Angeles')"
                    },
                    "max_results": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of businesses to scrape",
                        "default": 20
                    },
                    "gemini_api_key": {
                        "title": "Google Gemini API Key",
                        "type": "string",
                        "description": "Your Google Gemini API key for AI-powered business analysis. Get it free at https://aistudio.google.com/app/apikey. If not provided, only basic scraping will be performed."
                    },
                    "ai_model": {
                        "title": "AI Model",
                        "enum": [
                            "gemini-1.5-flash",
                            "gemini-1.5-pro"
                        ],
                        "type": "string",
                        "description": "The Gemini model to use for analysis",
                        "default": "gemini-1.5-flash"
                    },
                    "language": {
                        "title": "Output Language",
                        "type": "string",
                        "description": "Language for AI-generated sales pitches",
                        "default": "English"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
