# 🚀 B2B Leads Scraper ✅ $1.5/1k Leads ✅ Emails & Phones (`opility/b2b-lead-generator`) Actor

$1.5/1k Leads — Scrape B2B leads with verified decision-maker Emails, Phone Numbers, & Socials across Google Maps & Directories. High-speed alternative to Apollo, ZoomInfo, & Lusha!

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

## Pricing

from $0.00005 / actor start

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

## 🚀 B2B Leads Scraper ✅ $1.5/1k Leads ✅ Emails & Phones

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-orange?logo=apify)](https://apify.com/store)
[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC)
[![Node.js](https://img.shields.io/badge/Node.js-v20-green?logo=node.js)](https://nodejs.org)

$1.5/1k Leads — Scrape B2B leads with verified decision-maker Emails, Phone Numbers, & Socials across Google Maps & Directories. High-speed alternative to Apollo, ZoomInfo, & Lusha!

***

### 🌟 Key Features

- **Multi-Category Scraping**: Input multiple target business categories (e.g. `Home Care Agencies`, `Medical Clinics`, `Dental Practice`, `IT Consultants`).
- **Geographic Targeting**: Filter target location by city, state, or country (e.g. `New York, NY`, `London, UK`, `Tel Aviv`).
- **Deep Email & Social Extraction**: Crawls business domain pages to locate decision-maker contact emails (`info@`, `contact@`, `sales@`, `owner@`) and social profiles.
- **Apify Proxy Support**: Integrates seamlessly with Apify Proxies to bypass anti-scraping blocks and IP rate limits.
- **Structured Export**: Download leads in **JSON**, **CSV**, **Excel**, **XML**, or **HTML** formats directly from Apify Console or API.

***

### 📥 Input Configuration

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :--- | :--- | :--- |
| `searchTerms` | Array | **Yes** | `["Home Care Agencies", "Healthcare Clinics"]` | List of target business keywords or categories. |
| `location` | String | **Yes** | `"New York, NY"` | Target city, region, or country. |
| `maxResults` | Integer | No | `100` | Maximum total leads to extract per run. |
| `extractEmails` | Boolean | No | `true` | Deep scan business websites to extract contact emails & social links. |
| `proxyConfiguration` | Object | No | `{ "useApifyProxy": true }` | Apify Proxy configuration. |

#### Example Input JSON

```json
{
  "searchTerms": [
    "Home Care Agencies",
    "Medical Clinics"
  ],
  "location": "New York, NY",
  "maxResults": 50,
  "extractEmails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### 📤 Output Format Example

Each lead item generated by the Actor contains the following structured fields:

```json
{
  "title": "CareGivers Home Health Agency",
  "category": "Home Care Agencies",
  "location": "New York, NY",
  "snippet": "Providing premium home care services in New York. Call (212) 555-0199...",
  "website": "https://www.caregiversexample.com",
  "phone": "(212) 555-0199",
  "email": "contact@caregiversexample.com",
  "allEmails": [
    "contact@caregiversexample.com",
    "info@caregiversexample.com"
  ],
  "socialLinks": {
    "linkedin": "https://www.linkedin.com/company/caregivers-home-health",
    "facebook": "https://www.facebook.com/caregiversny",
    "twitter": null,
    "instagram": null
  },
  "scrapedAt": "2026-08-01T23:00:00.000Z",
  "source": "Opility B2B Engine"
}
```

***

### 🛠️ Local Development & Testing

1. **Clone the repository**:
   ```bash
   git clone https://github.com/Opility/b2b-lead-generator.git
   cd b2b-lead-generator
   ```

2. **Install dependencies**:
   ```bash
   npm install
   ```

3. **Run locally using Apify CLI**:
   ```bash
   npx apify-cli run
   ```

***

### 🏢 Developed & Maintained By

**Opility**\
*Empowering Businesses with B2B Lead Automation & Micro-SaaS Engines.*\
🌐 Website: [opility.com](https://opility.com)\
📧 Inquiry: `support@opility.com`

# Actor input Schema

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

List of B2B business categories or keywords to scrape (e.g. Software Companies, Marketing Agencies, IT Services, Real Estate Brokers, Healthcare Clinics).

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

Target city, state, or country (e.g. New York, NY, London UK, Miami FL).

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

Maximum number of B2B business lead records to extract.

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

Perform deep web crawling on company websites to extract verified emails & social profiles.

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

Apify Proxy options to prevent IP rate limits and anti-scraping blocks.

## Actor input object example

```json
{
  "searchTerms": [
    "Software Companies",
    "Marketing Agencies",
    "IT Services",
    "Real Estate Brokers",
    "Healthcare Clinics"
  ],
  "location": "New York, NY",
  "maxResults": 100,
  "extractEmails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Default dataset containing extracted B2B leads

# 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("opility/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 = {}

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

```

## MCP server setup

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