# YouTube Email Scraper (`googleapi/youtube-email-scraper`) Actor

Extract only explicitly visible public email addresses from YouTube channel descriptions or mail links.

- **URL**: https://apify.com/googleapi/youtube-email-scraper.md
- **Developed by:** [Google API](https://apify.com/googleapi) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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

### What does YouTube Email Scraper do?

YouTube Email Scraper finds email addresses that a channel has explicitly published in its public channel description or a public `mailto:` link. It pairs each address with the public YouTube channel identity and any available channel/contact context. It does not open YouTube’s sign-in-gated “View email” flow, infer addresses, or fetch private contact information.

[Open YouTube](https://www.youtube.com) · [Open YouTube Email Scraper in Apify](https://apify.com/w3crawler/youtube-email-scraper)

### Why use YouTube Email Scraper?

Use it to collect voluntarily published creator or organization contact details for legitimate outreach, partnership research, or channel directories. The Actor reads public HTTPS channel/search pages and extracts available channel metadata, description text, external links, and explicitly exposed mail links. It makes sequential, bounded requests; it does not sign in, solve CAPTCHA challenges, use stealth, or cross YouTube access controls.

Search-query inputs inspect the first public results page for each query, then check the selected channel pages. Direct channel inputs skip search discovery. Channels without a publicly listed email do not produce an email record.

### What data can YouTube Email Scraper extract?

| Group | Fields |
| --- | --- |
| Public contact | `email`, `allEmails`, `emailCount`, `emailDomain`, `emailDomains`, `emailSource`, `emailSources`, `emailsInDescription`, `emailsInMailLinks`, `emailContacts`, `publicMailLinks`, `publicMailLinkCount` |
| Channel identity | `channelId`, `channelName`, `channelTitle`, `handle`, `channelUrl`, `channelAboutUrl` |
| Public channel details | `description`, `channelDescription`, `joinedAtText`, `country`, `subscriberCount`, `subscriberCountText`, `videoCount`, `videoCountText`, `totalViews`, `totalViewsText` |
| Public links and media | `externalLinks`, `externalLinkCount`, `avatarUrl`, `bannerUrl`, `avatarThumbnailUrls`, `bannerThumbnailUrls` |

A source field is omitted when YouTube does not expose it. Relative or abbreviated count labels are preserved as source text alongside parsed integer counts when available. Email domains and counts are derived only from the explicitly extracted addresses.

Channel descriptions are returned in full when the public page provides them.

### How to scrape YouTube channel emails

1. Open the Actor’s **Input** tab.
2. Add channel handles, channel URLs, request-list start URLs, or public search queries.
3. Set an optional exact `emailDomain` filter and a global `maxItems` limit.
4. Start the Actor and review the contact records in the dataset.

### How much will it cost to scrape YouTube?

Apify compute usage depends on the number and size of public HTML requests, configured delay, retries, and response limits. No fixed platform price is promised here; check the Actor’s current Apify pricing page and your account’s usage. Search mode adds one search-page request per query plus up to `maxItems` channel-page requests. Direct mode uses up to `maxItems` channel-page requests. Requests are sequential and each response is size- and time-bounded.

### Input

Provide at least one channel reference or search query. All supplied source forms are combined; duplicates are skipped by default.

#### Direct channel input

```json
{
  "channelHandles": ["ExampleCreator"],
  "maxItems": 20,
  "page": 1,
  "maxPages": 1,
  "emailDomain": "example.com",
  "includeMedia": true,
  "includeLinks": true
}
```

#### Public search input

```json
{
  "queries": ["independent game studio"],
  "maxItems": 25,
  "page": 1,
  "maxPages": 1
}
```

#### Multiple channel sources

```json
{
  "startUrls": [
    {"url": "https://www.youtube.com/@ExampleCreator"},
    {"url": "https://www.youtube.com/channel/UC1234567890123456789012"}
  ],
  "maxItems": 10,
  "deduplicate": true,
  "page": 1,
  "maxPages": 1
}
```

#### Supported input fields

- `channelUrl`, `channelUrls`, `channelHandles`, `startUrls`, `sourceUrls`, and `url`: public YouTube channel sources. Handles may be entered with or without `@`. `startUrls` uses objects with a `url` property.
- `queries`, `query`, and `searchQuery`: public YouTube channel-search terms. Search discovery inspects the first results page only.
- `includeSampleVideos`: optional public channel Videos-page context; default false. One extra page per matching channel. Emails still come exclusively from channel profiles. `maxSampleVideos` limits samples to 1–5 (default 2).
- `emailDomain`: optional exact, case-insensitive email domain filter; a subdomain does not match its parent.
- `maxItems`: global maximum of channel pages to inspect, 1–100; default 20. The number of output rows may be lower if pages contain no eligible public email.
- `page`: currently fixed to page 1 because the supported channel and search surfaces do not expose a stable later-page contract.
- `maxPages`: currently fixed to 1 search-results page per query. Channel detail/About pages are separately limited by `maxItems`.
- `deduplicate`: skip repeated channels; default true.
- `includeMedia`, `includeLinks`: include or omit public avatar/banner and external-link details; both default true. Public mail links remain available when they supply a matched address.
- `proxyConfiguration`: routes search, channel and optional video-page requests through the configured proxy. Use only proxy groups enabled in your account.
- `locale`: language or language-region request tag; default `en-US`.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Each row represents a channel with at least one email explicitly present in a public description or public mail link. The schema declares 39 business/contact fields, including safe `descriptionHtml`, explicit-or-unknown `isVerified`, source dimensions in `avatarThumbnails` / `bannerThumbnails`, and optional `sampleVideos`; many are optional and appear only when the public page exposes them. For example:

```json
{
  "email": "contact@example.com",
  "allEmails": ["contact@example.com", "partnerships@example.com"],
  "emailCount": 2,
  "emailDomain": "example.com",
  "emailDomains": ["example.com"],
  "emailSource": "public_channel_description_and_link_metadata",
  "emailSources": ["public_channel_description", "public_channel_link_metadata"],
  "emailsInDescription": ["contact@example.com"],
  "emailsInMailLinks": ["partnerships@example.com"],
  "emailContacts": [
    {"emailAddress": "contact@example.com", "disclosureSurface": "channel_description"},
    {"emailAddress": "partnerships@example.com", "disclosureSurface": "mailto_link", "mailtoLink": "mailto:partnerships@example.com", "linkLabel": "Business inquiries"}
  ],
  "channelId": "UC1234567890123456789012",
  "channelName": "Example Studio",
  "channelTitle": "Example Studio",
  "handle": "@ExampleStudio",
  "channelUrl": "https://www.youtube.com/@ExampleStudio",
  "channelAboutUrl": "https://www.youtube.com/@ExampleStudio/about",
  "description": "For partnerships, contact contact@example.com.",
  "channelDescription": "For partnerships, contact contact@example.com.",
  "joinedAtText": "Joined January 1, 2020",
  "subscriberCount": 12000,
  "subscriberCountText": "12K subscribers",
  "videoCount": 85,
  "videoCountText": "85 videos",
  "totalViews": 500000,
  "totalViewsText": "500,000 views",
  "country": "United States",
  "avatarUrl": "https://yt3.googleusercontent.com/example-avatar",
  "bannerUrl": "https://yt3.googleusercontent.com/example-banner",
  "avatarThumbnailUrls": ["https://yt3.googleusercontent.com/example-avatar"],
  "bannerThumbnailUrls": ["https://yt3.googleusercontent.com/example-banner"],
  "externalLinks": [
    {"linkUrl": "https://example.com", "linkLabel": "Website", "destinationDomain": "example.com", "linkType": "website"}
  ],
  "externalLinkCount": 1,
  "publicMailLinks": [
    {"emailAddress": "partnerships@example.com", "mailtoLink": "mailto:partnerships@example.com", "linkLabel": "Business inquiries"}
  ],
  "publicMailLinkCount": 1
}
```

Example values are illustrative; addresses are returned only when they appear on the public channel page.

### Tips and advanced options

- Use direct channel URLs when you already have them; search results are not exhaustive and only page 1 is supported.
- Keep `maxItems` modest for a first run. It is a channel-page inspection limit, not a promise of that many email records.
- Use `emailDomain` when you only need one exact domain.
- Leave `includeMedia` or `includeLinks` off to reduce output size if you do not need those public attributes.
- The scraper does not fetch destinations behind channel links, infer website emails, reveal gated YouTube business-email controls, or follow external links.
- A channel without a publicly visible email will not produce a contact record. This Actor does not access gated email features.

### FAQ, support, and responsible use

**Why did I get fewer rows than channels?** The Actor writes a row only when an email is explicitly published in the public channel description or a public `mailto:` link. Missing addresses remain missing.

**Does it extract YouTube’s hidden business email?** No. It does not sign in, solve CAPTCHA, or use the gated “View email” feature.

**Why are some channel details missing?** YouTube exposes different public fields by channel and page state. Missing names, counts, join text, location, images, or links are omitted rather than invented.

For issues, use the Actor’s **Issues** tab and include a run ID. This Actor is independent and not affiliated with YouTube or Google. Use collected contact data only for a legitimate purpose, respect YouTube’s terms, and follow applicable privacy and marketing laws. Publicly visible emails may still identify individuals.

# Changelog

This Actor's version history is a separate document: https://apify.com/googleapi/youtube-email-scraper/changelog.md

# Actor input Schema

## `channelUrl` (type: `string`):

Public HTTPS YouTube channel URL or @handle.

## `channelUrls` (type: `array`):

Ordered public YouTube channel URLs or @handles.

## `channelHandles` (type: `array`):

Public channel handles with or without @.

## `startUrls` (type: `array`):

Object-form alias for public YouTube channel URLs.

## `sourceUrls` (type: `array`):

Compatibility alias for public YouTube channel URLs.

## `url` (type: `string`):

Compatibility alias for one public YouTube channel URL.

## `queries` (type: `array`):

Optional YouTube search terms used to find channel results. Only the first public search-results page is inspected per query.

## `query` (type: `string`):

Compatibility alias for one public YouTube search query.

## `searchQuery` (type: `string`):

Compatibility alias for one public YouTube search query.

## `emailDomain` (type: `string`):

Optional exact domain filter, for example example.com. Subdomains do not match the parent domain.

## `maxItems` (type: `integer`):

Global maximum number of public channel About pages to inspect; fewer output rows are possible when no public email is present.

## `page` (type: `integer`):

YouTube channel and search inputs currently expose a single supported public page; use 1.

## `maxPages` (type: `integer`):

YouTube public channel search currently exposes one supported results page per query; maximum is 1. Each selected channel About page is separately bounded by maxItems.

## `deduplicate` (type: `boolean`):

Skip repeated channel URLs discovered across direct inputs and public search queries.

## `includeMedia` (type: `boolean`):

Include publicly exposed avatar and banner image URLs.

## `includeLinks` (type: `boolean`):

Include external links publicly listed by the channel. Mail links are retained when they contain a matched public email.

## `requestDelayMs` (type: `integer`):

Minimum pause between sequential public channel page requests.

## `maxConcurrency` (type: `integer`):

Requests are sequential to keep public page access bounded.

## `maxRequestRetries` (type: `integer`):

Finite retry count for transient public HTTPS failures.

## `requestTimeoutSecs` (type: `integer`):

Timeout applied to each public YouTube HTML request.

## `requestTimeoutMs` (type: `integer`):

Compatibility alias for requestTimeoutSecs.

## `maxResponseBytes` (type: `integer`):

Maximum public HTML bytes retained per request.

## `userAgent` (type: `string`):

Optional ordinary browser user agent; no stealth or fingerprint spoofing is used.

## `locale` (type: `string`):

Accept-Language value for public requests.

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

Routes every search, channel and optional video-page request through the configured proxy. Residential proxies are recommended for Google domains when enabled in your account.

## `includeSampleVideos` (type: `boolean`):

Fetch one additional public Videos page per matching channel. Does not extract emails from videos.

## `maxSampleVideos` (type: `integer`):

Maximum public video cards retained from the single optional channel Videos page.

## Actor input object example

```json
{
  "maxItems": 20,
  "page": 1,
  "maxPages": 1,
  "deduplicate": true,
  "includeMedia": true,
  "includeLinks": true,
  "requestDelayMs": 250,
  "maxConcurrency": 1,
  "maxRequestRetries": 1,
  "requestTimeoutSecs": 30,
  "maxResponseBytes": 2000000,
  "locale": "en-US",
  "includeSampleVideos": false,
  "maxSampleVideos": 2
}
```

# Actor output Schema

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

No description

## `output` (type: `string`):

No description

## `runHealth` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("googleapi/youtube-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 = {}

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

```

## MCP server setup

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