# B2B Leads Scraper — Search to Contact (`intelscrape/b2b-lead-generator`) Actor

B2B lead generator from search to contact-style results. PPE start ~$0.002 + ~$0.02 per lead; email-found $0.002 when a lead has ≥1 email. Pairs with Contact Info / Skip Trace / Maps Email.

- **URL**: https://apify.com/intelscrape/b2b-lead-generator.md
- **Developed by:** [IntelScrape](https://apify.com/intelscrape) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## B2B Lead Generator

![Actor Banner](https://api.apify.com/v2/key-value-stores/PyvJzfQg02FD3RYhd/records/b2b-lead-generator-banner.png)

> 🇨🇳 **中文简介 (Chinese Summary):**
> 在 Google 地图上查找商家，然后自动从其网站中提取电子邮件、电话、社交资料、技术堆栈和广告像素。一体化潜在客户开发。按条计费；含邮箱的线索另收 email-found $0.002。

The ultimate all-in-one B2B lead generation engine. Search for any business type in any city, and automatically extract their contact information, social profiles, and tech stack.

### 💰 Pricing (Pay-Per-Event)

| Event | When charged | Price |
|---|---|---|
| **Actor start** | Each run start (platform) | **$0.002** |
| **Dataset item** | Each lead / summary row (`pushData`) | **$0.02** |
| **email-found** | Each lead that has **≥1 email** after website extract | **$0.002** |

- `extractEmails` defaults **ON**. Turn it OFF to skip website email harvest (and skip `email-found` charges).
- There is **no** SMTP / mailbox-verification PPE on this Actor.
- SoftCTA mesh rows (Contact Info / Skip Trace / Maps Email / Website Leads / Business License) are free dataset rows for next-step discovery — not an extra paid SoftCTA event.

### 🚀 Features

- **Google Maps Integration:** Search exactly like you would on Google Maps (e.g., "roofers in Austin TX"). The bot finds every matching business.
- **Deep Contact Extraction:** The bot visits each business's website and deeply scans their Contact, About, and Team pages to find hidden email addresses and phone numbers.
- **Social Media Discovery:** Automatically finds Facebook, Instagram, LinkedIn, Twitter/X, YouTube, and TikTok profiles.
- **Tech Stack & Pixel Detection:** Instantly know if a business is running ads by detecting Facebook Pixels, Google Tag Manager, Shopify, WordPress, and more. Perfect for marketing agencies!
- **Bulk Processing:** Upload a massive CSV of search queries and process thousands of locations automatically.
- **CRM Ready:** Send data directly to Zapier, Make.com, or GoHighLevel via webhook.
- **Demo Mode:** Fixture leads (with sample emails) for fast output/billing checks.

### 🛠️ How to Use

1. Enter your search queries (e.g., `["plumbers in Miami FL", "dentists in Chicago"]`).
2. Set the maximum leads you want per query.
3. Keep **Extract Emails** on (default) if you want inbox hunting + the $0.002 email-found layer.
4. Optional QUALIFY filters: minRating, minReviews, skipClosedPlaces, skipWithoutEmail.
5. Click **Start**.

### 📊 Output Format

The scraper provides clean, enriched data perfect for cold email or cold calling campaigns.

```json
{
  "query": "plumbers in Miami FL",
  "businessName": "Miami Elite Plumbing",
  "phone": "+13055551234",
  "website": "https://miamieliteplumbing.com",
  "emails": ["info@miamieliteplumbing.com", "sales@miamieliteplumbing.com"],
  "socialProfiles": {
    "facebook": "https://facebook.com/miamiplumbing",
    "instagram": "https://instagram.com/miamiplumbing"
  },
  "techStack": ["WordPress", "Google Analytics", "Facebook Pixel"]
}
```

### 🔗 Related Actors

- [Google Maps Email Extractor](https://apify.com/intelscrape/google-maps-email-extractor) — local inbox hunting with the same email-found PPE pattern
- [Contact Info Scraper](https://apify.com/intelscrape/contact-info-scraper) — deeper domain crawl
- [Skip Trace PRO](https://apify.com/intelscrape/skip-trace-pro) — people enrichment
- [Website Leads](https://apify.com/intelscrape/website-Leads) — domain-first lists
- [Business License Scraper](https://apify.com/intelscrape/business-license-scraper) — registered company leads

# Actor input Schema

## `searchQueries` (type: `array`):

Enter business search queries like you would on Google Maps. Example: 'plumbers in Miami FL', 'restaurants in Austin TX', 'dentists near Chicago IL'.

## `maxLeadsPerQuery` (type: `integer`):

Maximum number of businesses to find per search query. More leads = longer run time.

## `minRating` (type: `number`):

Only keep places with Google Maps rating ≥ this value (e.g. 4 or 4.5). Leave empty to keep all.

## `minReviews` (type: `integer`):

Only keep places with at least this many Google Maps reviews. Leave empty to keep all.

## `skipClosedPlaces` (type: `boolean`):

Exclude permanently/temporarily closed businesses (passed to Maps crawler + post-filter). Default ON.

## `skipWithoutEmail` (type: `boolean`):

Only keep leads that have at least one extracted email after website scrape. Turn ON to drop no-email rows.

## `skipWebsiteScraping` (type: `boolean`):

If checked, only returns Google Maps data (name, address, phone, rating) without visiting business websites. Faster and cheaper.

## `extractEmails` (type: `boolean`):

Scan business websites for email addresses (contact/about/footer). Default ON. When ON and a lead has ≥1 email, an email-found PPE event is charged at $0.002 (in addition to the per-lead dataset item). No SMTP verification charge.

## `extractSocials` (type: `boolean`):

Find Facebook, Instagram, LinkedIn, Twitter/X, YouTube, and TikTok links.

## `extractTechStack` (type: `boolean`):

Identify CMS (WordPress, Shopify, Wix, etc.), frameworks, and hosting platforms used by the business.

## `extractPixels` (type: `boolean`):

Find Facebook Pixel, Google Analytics, Google Tag Manager, TikTok Pixel, and other tracking scripts. Great for identifying businesses running ads.

## `deepScan` (type: `boolean`):

Crawl /contact, /about, /team, and footer pages for additional emails and phone numbers. More thorough but slower.

## `csvUrl` (type: `string`):

Provide a link to a raw CSV file (e.g. Google Sheets Export) containing 'Name' or 'Query' headers to process thousands of records automatically.

## `webhookUrl` (type: `string`):

We will HTTP POST the final enriched records to this URL as soon as the run finishes.

## `demoMode` (type: `boolean`):

Push fixture leads (including sample emails) without calling Google Maps or crawling sites. Use to verify output + email-found billing. Default OFF.

## Actor input object example

```json
{
  "searchQueries": [
    "plumbers in Miami FL"
  ],
  "maxLeadsPerQuery": 20,
  "skipClosedPlaces": true,
  "skipWithoutEmail": false,
  "skipWebsiteScraping": false,
  "extractEmails": true,
  "extractSocials": true,
  "extractTechStack": true,
  "extractPixels": true,
  "deepScan": true,
  "demoMode": false
}
```

# Actor output Schema

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

B2B lead rows in the default dataset.

# 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 = {
    "searchQueries": [
        "plumbers in Miami FL"
    ],
    "maxLeadsPerQuery": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("intelscrape/b2b-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 = {
    "searchQueries": ["plumbers in Miami FL"],
    "maxLeadsPerQuery": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("intelscrape/b2b-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 '{
  "searchQueries": [
    "plumbers in Miami FL"
  ],
  "maxLeadsPerQuery": 20
}' |
apify call intelscrape/b2b-lead-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,intelscrape/b2b-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/EB6qmV88cFeyg4aR7/builds/vWOHnjQoqAdd67Xcm/openapi.json
