# YouTube Public Business Email Scraper (`datapilot/youtube-public-business-email-scraper`) Actor

extract publicly available business emails, channel names, subscriber counts, and channel URLs. Supports multiple keywords, email domain filtering, YouTube API integration, proxy support, and duplicate removal. Ideal for influencer research, lead generation, and marketing outreach.

- **URL**: https://apify.com/datapilot/youtube-public-business-email-scraper.md
- **Developed by:** [Data Pilot](https://apify.com/datapilot) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 46.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 scraped youtube channel business emails

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

📧 **YouTube Public Business Email Scraper** is an Apify Actor designed to find YouTube channels by keyword and collect the **public business email addresses** that channel owners have written in their channel descriptions. This **YouTube Public Business Email Scraper** returns the channel name, the email address, the subscriber count, and the channel link for each address it finds. Whether you're building a B2B outreach list, finding creators for partnerships, or researching a niche, the YouTube Public Business Email Scraper delivers structured contact data from public information efficiently.

With keyword search, two collection modes (with or without a YouTube Data API key), noise filtering, domain filtering, duplicate removal, and reliable Apify Dataset delivery, this **YouTube Public Business Email** actor turns channel descriptions into a clean contact list. It reads only what channel owners chose to publish, making **YouTube Public Business Email** collection straightforward and transparent.

***

### 📋 Table of Contents

- [Features](#-features)
- [Data Source](#-data-source)
- [How It Works](#-how-it-works)
- [Input](#-input)
- [Output](#-output)
- [Technical Stack](#-technical-stack)
- [Data Fields](#-data-fields-explained)
- [Use Cases](#-use-cases)
- [Quick Start](#-quick-start)
- [Configuration](#-configuration)
- [Pricing & Free Usage](#-pricing--free-usage)
- [Performance](#-performance)
- [Important Notes](#-important-notes)
- [License & Legal](#-license--legal)

***

### 🔥 Features

- **Keyword-Based Channel Search** – Finds YouTube channels for each keyword you enter. This is the core of the **YouTube Public Business Email Scraper**.
- **Public Email Extraction** – Reads email addresses from channel descriptions that owners made public.
- **Two Modes** – Use the official YouTube Data API with your own key, or run in direct mode with no key.
- **Domain Filter** – Keep only emails from specific domains, such as `gmail.com`.
- **Noise Filtering** – Ignores technical and platform addresses (for example from `sentry.io`, `youtube.com`, `google.com`, `schema.org`, `example.com`) and file-like text such as `image@2x.png`.
- **Duplicate Removal** – Each channel and email pair is saved once per run.
- **Subscriber Counts** – Includes the channel's subscriber count when available.
- **Configurable Limits** – Control channels per keyword and total results.
- **Apify Proxy Support** – Residential proxy by default, with a direct retry on failure.
- **Pay-Per-Event Billing** – Each saved email is one billable event, with a free allowance (see [Pricing & Free Usage](#-pricing--free-usage)).
- **Detailed Logging** – Logs the mode, keywords, and progress for every **YouTube Public Business Email** run.

***

### 📊 Data Source

#### **YouTube Channel Descriptions**

- **Source**: YouTube search results and public channel About pages (direct mode), or the YouTube Data API v3 (API mode)
- **Access Method**: HTTP requests via `curl_cffi` (Chrome 124 fingerprint). No browser and no login are used.
- **Coverage**: Public YouTube channels that match your keywords and have an email in their description
- **Data**: Channel name, email address, subscriber count, and channel URL
- **Access**: No login. An API key is optional and only used if you provide one.
- **Update Frequency**: Reflects YouTube at time of run

This Actor is not affiliated with or endorsed by YouTube or Google.

***

### ⚙️ How It Works

For each keyword, the Actor finds channels and looks for email addresses in their descriptions. Each email found becomes one record, which is saved and billed right away.

**Direct mode (no API key):** The Actor loads YouTube's channel search results page, collects channel handles and IDs from it, opens each channel's About page (5 at a time), and reads the description. If no email is found in the description, it scans the rest of that page's content as a fallback.

**API mode (with `youtubeApiKey`):** The Actor searches for channels through the YouTube Data API, loads their details in batches, and reads emails from each channel description.

**Key Processing Steps:**

1. **Input Parsing** – Read keywords, domain filter, API key, and limits
2. **Proxy Setup** – Configure Apify Proxy (residential by default)
3. **Channel Search** – Find channels for each keyword
4. **Description Reading** – Load each channel's description
5. **Email Extraction** – Find email addresses and remove noise and duplicates
6. **Domain Filtering** – Keep only allowed domains if you set a filter
7. **Save & Bill** – Save each email record and register one `result-scrape` event
8. **Limit Checks** – Stop at `maxResults`, the free limit, or your spending limit

***

### 📥 Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keywords` | array or string | `["marketing agency", "business coach"]` | Search keywords. A string may be separated by commas or new lines. |
| `domainFilter` | string | `""` (no filter) | Comma-separated email domains to keep, for example `gmail.com, outlook.com`. Values like `any`, `all`, or `none` mean no filter. |
| `youtubeApiKey` | string | `""` | Optional YouTube Data API v3 key. If set, the Actor uses API mode. |
| `channelsPerKeyword` | integer | `20` | Maximum channels to check per keyword. |
| `maxResults` | integer | `50` | Maximum number of emails to save in total. |
| `proxyConfiguration` | object | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` | Apify Proxy configuration. |

The Actor also accepts `keyword`, `apiKey`, `perKeyword`, and `limit` as alternative field names.

**Example Input (direct mode):**

```json
{
  "keywords": ["fitness coach", "real estate"],
  "channelsPerKeyword": 20,
  "maxResults": 50
}
```

**Example Input (API mode, Gmail addresses only):**

```json
{
  "keywords": ["marketing agency"],
  "youtubeApiKey": "YOUR_API_KEY",
  "domainFilter": "gmail.com",
  "maxResults": 100
}
```

***

### 📤 Output

One **YouTube Public Business Email Scraper** record is pushed per email:

| Field | Type | Description |
|-------|------|-------------|
| `keyword` | string | The keyword that led to the channel |
| `channel_name` | string | Channel name |
| `email` | string | Email address, in lowercase |
| `subscribers` | string | Subscriber count, such as `12K` or `1.2M`. Empty if not available. |
| `channel_url` | string | Link to the channel |
| `scraped_at` | string | ISO 8601 UTC timestamp |

**Example Record:**

```json
{
  "keyword": "marketing agency",
  "channel_name": "Example Marketing Co",
  "email": "hello@examplemarketing.com",
  "subscribers": "12K",
  "channel_url": "https://www.youtube.com/@examplemarketing",
  "scraped_at": "2026-10-30T09:00:00Z"
}
```

***

### 🧰 Technical Stack

- **HTTP Client:** `curl_cffi` with Chrome 124 TLS fingerprint impersonation
- **Sources:** YouTube search page and channel About pages, or the YouTube Data API v3
- **Parsing:** JSON data embedded in YouTube pages, and regular expressions for emails
- **Concurrency:** Up to 5 channel pages at a time in direct mode
- **Proxy:** Apify Proxy, residential by default
- **Billing:** Apify pay-per-event charging (`result-scrape`)
- **Logging:** Apify Actor logging system
- **Platform:** Apify Actor serverless environment

***

### 📊 Data Fields Explained

- **keyword**: Which search found the channel
- **channel_name / channel_url / subscribers**: The channel and its size
- **email**: The address found in the channel's public description
- **scraped_at**: When it was collected

***

### 🎯 Use Cases

- **Creator Partnerships** – Find creators in a niche who list a business contact
- **B2B Research** – Build a list of businesses and agencies that publish an email on YouTube
- **Sponsorship Outreach** – Reach channels that invite business inquiries
- **Market Research** – See how many channels in a niche publish contact details

Always follow anti-spam and privacy laws when you contact people (see [Important Notes](#-important-notes)).

***

### 🚀 Quick Start

#### **1. Prepare Input**

Go to Apify Console and enter:

```json
{
  "keywords": ["marketing agency"],
  "channelsPerKeyword": 20,
  "maxResults": 50
}
```

#### **2. Run the Actor**

Click **Start**. The Actor will:

- Search YouTube for channels matching each keyword
- Read each channel's public description
- Extract and clean email addresses
- Save and bill each result

#### **3. Monitor Progress**

Console shows:

```
🛡️ Apify Proxy configured with direct fallback.
🔎 Keywords: ['marketing agency'] | Channels/kw: 20 | Max emails: 50 | Mode: Direct Scrape
Searching YouTube channels for keyword: 'marketing agency'...
👤 User Tier Detected: ...
🎉 Complete! Total public business emails extracted: N (Total charged: N)
```

#### **4. View & Download Results**

- **Results Tab**: All **YouTube Public Business Email** records
- **Export**: JSON, CSV, Excel, or HTML
- **API Access**: Available via the Apify API

***

### ⚙️ Configuration

Domain filter for business domains:

```json
{
  "keywords": ["web design agency"],
  "domainFilter": "gmail.com, outlook.com",
  "maxResults": 30
}
```

Direct connection without proxy:

```json
{
  "keywords": ["coaching"],
  "proxyConfiguration": { "useApifyProxy": false }
}
```

***

### 💳 Pricing & Free Usage

- This Actor uses **pay-per-event** billing. Each saved email counts as one `result-scrape` event.
- **Free allowance**: If events are not being charged on your account, a run is limited to **30 results**. When the limit is reached, the Actor stops.
- **Paying users**: No built-in cap besides `maxResults`. The run stops if your own spending limit for the event is reached.
- Check the Actor's pricing tab in Apify Console for current prices.
- If you use your own YouTube API key, API usage counts against your own Google quota.

***

### 📈 Performance

#### **Processing Speed**

- Direct mode loads one search page per keyword and then one About page per channel (5 at a time)
- API mode makes a few API requests per keyword
- Records are saved and billed one at a time

#### **Resource Usage**

- Memory: Low, since no browser is launched
- Network: Lightweight HTTP requests
- Proxy: Residential proxy by default, with a direct retry on failure

***

### ⚠️ Important Notes

#### **Legal & Compliance**

- **Anti-Spam and Privacy Laws**: Even business email addresses can be personal data (for example an owner's name in the address). Laws such as GDPR, ePrivacy, CAN-SPAM, and CASL may apply to storing and contacting them. Use the data only for legitimate purposes with a valid legal basis, include clear opt-out options, and honor removal requests. Do not use it for unsolicited bulk email or spam.
- **YouTube Terms**: Automated access to YouTube may be restricted by its Terms of Service. If you use an API key, the YouTube API Services Terms also apply. Review them before use.
- **Public Information Only**: The Actor reads only emails that channel owners placed in their public description. It does not bypass YouTube's "View email address" protection.
- **Affiliation**: Not affiliated with or endorsed by YouTube or Google
- **Legal**: Not legal advice

#### **Data Quality**

- **Not Verified**: Emails are copied as written. The Actor does not check whether an address is valid, active, or monitored.
- **Written Text Only**: Channels that hide their email behind YouTube's button, or write it in an image or in a form like "name at domain dot com", are not found.
- **Direct Mode Fallback**: If a channel's description has no email, the Actor scans the rest of the page content. This can occasionally pick up an address that is not the channel owner's. Review results, or use API mode, which reads descriptions only.
- **Search Coverage**: Direct mode reads only the first page of YouTube's channel search results, so you may get fewer than `channelsPerKeyword` channels.
- **Subscriber Counts**: `subscribers` may be empty (for example when the channel hides its count), and its format can differ slightly between modes.
- **Domain Filter**: It matches the email's domain exactly, so `gmail.com` does not match `googlemail.com`.
- **Blocking**: YouTube may block, rate-limit, or show a consent page, especially for data-center IPs. Residential proxy helps but is not a guarantee.
- **Empty Results**: Many channels have no email in their description, so results can be fewer than expected.

#### **Best Practices**

- Use specific keywords that describe the businesses you want
- Review a sample of results before building a large list
- Keep `maxResults` close to what you need, since each email is billed
- Contact people only in ways that comply with the law, and include an opt-out

***

### 📄 License & Legal

**Terms of Use:**

- Use for legitimate business research and outreach that complies with applicable laws
- Respect YouTube's terms and the privacy of channel owners
- Do not use for spam, harassment, or unlawful data collection
- Use data responsibly and in compliance with applicable privacy and anti-spam laws

**Disclaimer:**
YouTube Public Business Email Scraper is provided as-is for research and lawful business purposes. It is not affiliated with or endorsed by YouTube or Google. Users are responsible for compliance with all applicable laws and the terms of the data source. This is not legal advice.

***

### ⚖️ YouTube Public Business Email Scraper Excellence

This Actor is optimized for **YouTube Public Business Email** collection with:

- ✅ Keyword-based channel discovery
- ✅ Public emails only, no login and no bypassing
- ✅ API mode and direct mode
- ✅ Noise and domain filtering
- ✅ Duplicate removal
- ✅ Production-ready code

# Actor input Schema

## `keywords` (type: `array`):

List of niche keywords to search YouTube channels (e.g., marketing agency, business coach, tech review).

## `channelsPerKeyword` (type: `integer`):

Number of YouTube channels to inspect per keyword.

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

Maximum total number of business email records to collect.

## `domainFilter` (type: `string`):

Optional comma-separated email domains to filter (e.g., gmail.com). Leave empty for all domains.

## `youtubeApiKey` (type: `string`):

Optional YouTube Data API v3 key. Leave empty to use fast direct scraping.

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

Apify Proxy fallback settings if direct connection is rate-limited.

## Actor input object example

```json
{
  "keywords": [
    "marketing agency",
    "business coach"
  ],
  "channelsPerKeyword": 20,
  "maxResults": 50,
  "domainFilter": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `crawlResults` (type: `string`):

No description

## `overview` (type: `string`):

No description

# 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 = {
    "keywords": [
        "marketing agency",
        "business coach"
    ],
    "channelsPerKeyword": 20,
    "maxResults": 50,
    "domainFilter": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("datapilot/youtube-public-business-email-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 = {
    "keywords": [
        "marketing agency",
        "business coach",
    ],
    "channelsPerKeyword": 20,
    "maxResults": 50,
    "domainFilter": "",
}

# Run the Actor and wait for it to finish
run = client.actor("datapilot/youtube-public-business-email-scraper").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 '{
  "keywords": [
    "marketing agency",
    "business coach"
  ],
  "channelsPerKeyword": 20,
  "maxResults": 50,
  "domainFilter": ""
}' |
apify call datapilot/youtube-public-business-email-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datapilot/youtube-public-business-email-scraper"
        }
    }
}
```

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/5vsyFMDpMxMTsp3fD/builds/OikGcZApsS68bS8OS/openapi.json
