# YouTube Email Scraper & Finder (Public Channel Emails) (`badr_xba/youtube-email-scraper`) Actor

Find the business emails YouTube creators publish themselves: channel description, About links and their website's contact pages. Search by niche or paste channels, filter by country and subscribers. Every email has its source and confidence. Pay per unique email only.

- **URL**: https://apify.com/badr_xba/youtube-email-scraper.md
- **Developed by:** [Badr Bouargan](https://apify.com/badr_xba) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 public emails

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Email Scraper & Finder (Public Channel Emails)

**Find the business emails YouTube creators publish themselves — with the proof of where each one was found.**

✅ Public emails only: channel description, About links, and the creator's own website contact pages
✅ Every email comes with its **source URL, context snippet, category and confidence**
✅ **Always fresh**: every run reads live pages — no cache, no stored email database, no "fresh data" surcharge
✅ **Pay only per unique email delivered** — channels without an email cost nothing

![Cover](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-01-cover-v2.png)

### 1. What this Actor does

You give it YouTube channels (links, @handles, channel IDs, or a whole list) or **niche keywords**. For each channel it reads the public About page, looks for an email in the **channel description** and the **About links**, and — when needed — opens the **website the channel links to** (home page, then its contact / about / imprint page, at most 3 pages of the same site). Each email is normalised, de-duplicated, classified (business, general, support, other), scored (high / medium / low confidence) and delivered with the exact page it came from.

> **Honest limit, said up front: we do not reveal the hidden YouTube email.** Many creators put their address behind YouTube's *"View email address"* button, which needs a Google sign-in and a CAPTCHA. This Actor never signs in, never uses cookies of an account and never solves CAPTCHAs. It tells you when a channel has that button (`hasHiddenEmailButton: true`) so you can open the channel yourself.

### 2. Why choose it

| | |
|---|---|
| 🔎 **Evidence for every email** | `sourceUrl`, `sourceType`, a ~160-character `emailContext` and a `confidence` level built only from evidence |
| 💸 **Fair billing** | one `email` event per **unique** address per run; an agency email shared by 10 channels is charged once; no charge for channels without email, invalid or excluded addresses |
| 🟢 **Always live** | no vendor cache: what you get was on the page during your run |
| 🛡️ **GDPR-minded defaults** | personal-looking addresses excluded by default, a `looksPersonal` marker when you keep them, nothing stored outside your run |
| 🤝 **Polite crawling** | robots.txt respected, one request per second per site, no proxy rotation against websites, no retry on 403 |
| 🧰 **Flat, export-ready rows** | JSON, CSV, Excel from the dataset; an interactive visual report; a run summary with the hit rate |

![Features](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-02-features-v2.png)

### 3. Main features

- **Inputs**: several search keywords in one run, channel URLs (`/@handle`, `/channel/UC…`, `/c/…`, `/user/…`), bare `@handles` and `UC…` IDs, lists pasted on one line. Video or playlist links are reported in `FAILED_INPUTS` (paste the channel instead).
- **Channel search by niche**: each keyword searches YouTube for **channels** (type filter "Channel"), with automatic pagination up to `maxChannelsPerSearch` (1–500).
- **Filters (free, before any website is read)**: channel country (About page), minimum / maximum subscribers, recent upload activity (`activeWithinDays`), search region and language hints.
- **Sources read**: channel description, About links (YouTube's `/redirect?q=` wrapper is decoded without visiting it), the creator's own website (home + contact / about / imprint, same site), link-in-bio pages (Linktree, Beacons, Carrd…; one page).
- **Email extraction**: plain text, `mailto:` links, Cloudflare-protected addresses, "name \[at] site \[dot] com" writing. Template / platform addresses (`noreply@`, `@example.com`, image names…) are ignored.
- **Limits and safety stops**: `maxChannels` (default 500, maximum 10,000 channels per run), `maxChannelsPerSearch`, `maxEmails`, websites per channel, pages per site, Apify's *Maximum cost per run*, and `stopAfterChannelsWithoutEmail` (default 200: the run ends when that many checked channels in a row show no public email, so a niche without contacts does not keep running; 0 = never).
- **Progress**: live status message ("Checked 12/50 channels · 5 unique emails · …"), a live visual report, a resumable state after a platform migration.

### 4. Advanced features

- **Email intelligence**: syntax check, free MX lookup, disposable-domain and role-address flags; category; confidence from the evidence; duplicates merged per channel (`otherSources`) and across channels (`duplicateInRun`).
- **Optional mailbox verification — your own key** (Hunter.io or Reoon): `verificationStatus` becomes `valid`, `invalid`, `risky` or `unknown`. The provider bills its credits to your key; this Actor adds no charge and has no managed key.
- **Optional official mode — your own YouTube Data API key**: channel search and channel metadata (exact subscriber count, country, latest upload) through the official API. The API returns no email and no About links, so emails still come only from public text.
- **Source health**: `websiteStatus` tells you when a linked site was blocked, rate-limited, gone (404), redirected off-site, disallowed by robots.txt or unreachable — outdated links are visible instead of silently empty.
- **Reliability**: each refused YouTube request is retried with a new datacenter IP (up to 8 attempts in 60 s); an opt-in residential last resort (`maxEnhancedRecoveries`, off by default).

![Workflow](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-03-workflow-v2.png)

### 5. How to use it (step by step)

1. Open the **Input** tab.
2. Type one or more **search keywords** (e.g. `real estate investing`) and/or paste **channels**.
3. Optional: set **filters** (country, subscribers, activity) and the number of channels per keyword.
4. Keep **"Exclude personal-looking emails"** on unless you have a lawful reason to process them.
5. Set **Maximum cost per run** (Run options) and, if you like, **Stop after N unique emails**.
6. Click **Start**. Open the **Output** tab: *Emails*, *By channel*, *Visual report*, *Run summary*.
7. Export as JSON, CSV or Excel, or connect the dataset to your CRM through the Apify API / integrations.

### 6. Input examples

Search two niches, US channels with 10K–1M subscribers that uploaded in the last 60 days:

```json
{
  "searchQueries": ["real estate investing", "home workout"],
  "maxChannelsPerSearch": 50,
  "searchCountry": "US",
  "channelCountries": ["US"],
  "minSubscribers": 10000,
  "maxSubscribers": 1000000,
  "activeWithinDays": 60,
  "maxEmails": 100
}
```

Check a list of channels, always read their websites, verify with your own Reoon key:

```json
{
  "channelUrls": ["https://www.youtube.com/@examplecreator", "@anothercreator", "UCaaaaaaaaaaaaaaaaaaaaa1"],
  "websiteMode": "always",
  "verificationProvider": "reoon",
  "verificationApiKey": "<your key>"
}
```

### 7. Output example

One row per (channel, email). *Example data — not a real channel:*

```json
{
  "channelName": "Example Tech Reviews",
  "channelUrl": "https://www.youtube.com/channel/UCaaaaaaaaaaaaaaaaaaaaa1",
  "channelId": "UCaaaaaaaaaaaaaaaaaaaaa1",
  "handle": "@exampletech",
  "subscriberCount": 1200000,
  "country": "United States",
  "website": "https://exampletechstudio.test/",
  "description": "Example Tech Reviews: honest gadget reviews every week. For business inquiries: …",
  "email": "partnerships@exampletechstudio.test",
  "emailAscii": "partnerships@exampletechstudio.test",
  "emailDisplay": "partnerships@exampletechstudio.test",
  "emailCategory": "business",
  "sourceUrl": "https://www.youtube.com/@exampletech/about",
  "sourceType": "description",
  "emailContext": "…honest gadget reviews every week. For business inquiries: Partnerships@ExampleTechStudio.test NYC",
  "otherSources": null,
  "verificationStatus": "notChecked",
  "confidence": "high",
  "looksPersonal": false,
  "syntaxValid": true,
  "mxFound": true,
  "disposableDomain": false,
  "roleAddress": false,
  "hasHiddenEmailButton": true,
  "websiteStatus": "notChecked",
  "searchQuery": null,
  "duplicateInRun": false,
  "dateCollected": "2026-11-12T10:00:00+00:00"
}
```

`sourceType` values: `description`, `about-link`, `website-home`, `website-contact`, `website-about`, `website-imprint`, `link-in-bio`.

International domains are supported: `email` keeps the address as published (e.g. `info@müller.de`), `emailAscii` is its punycode form (`info@xn--mller-kva.de`, used for dedupe, the MX check, verification and billing: one address is charged once whatever form it was published in) and `emailDisplay` its readable form. For ordinary addresses the three are identical.

**Run summary** (`RUN_SUMMARY`): `stopReason` (`budget`, `maxEmails`, `maxChannels`, `tooManyChannelsWithoutEmail` or empty), channels checked, channels with / without a public email, **hit rate**, channels with the hidden-email button, emails by source and category, excluded personal-looking addresses, billing (`uniqueEmailsDelivered`, `emailsCharged`, `duplicateRowsNotCharged`), website statuses, and the list of **channels without a public email** (up to 500, never charged). **`FAILED_INPUTS`**: inputs that could not be read, with a stable `code` (`INVALID_INPUT`, `NOT_A_CHANNEL`, `SOURCE_NOT_FOUND`, `BLOCKED_BY_YOUTUBE`, `UNEXPECTED_ERROR`…), never charged.

![Results](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-04-results-v3.png)

### 8. Email discovery, explained

![Email discovery](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-05-email-discovery-v2.png)

| Confidence | When |
|---|---|
| **high** | in the creator's own description / About links next to words like *business inquiries, sponsorships, contact*; or on the creator's site, on the site's own domain, on a contact page or next to such words |
| **medium** | in the description without such words; on the site's own domain; a free-mail address on the creator's own site or link-in-bio page |
| **low** | on the website but with another organisation's domain (a web agency's footer, a platform address) |

Found in two places or more: one level up.

### 9. Pricing

Pay per event: **one `email` event per unique public email delivered**. Platform usage is included.

| Apify plan | Price per email | Per 1,000 emails |
|---|---:|---:|
| Free | $0.020 | **$20** |
| Starter | $0.016 | **$16** |
| Scale | $0.013 | **$13** |
| Business and above | $0.010 | **$10** |

- **Not charged**: channels checked without an email, the list of channels without email, repeated rows of an email already delivered in the run (an email shared by several channels is charged once), excluded personal-looking addresses, invalid addresses, failed inputs, email verification and official API mode (both use your own key).
- **No "fresh data" surcharge**: every run is fresh by design.
- Your **Maximum cost per run** is respected: the run stops cleanly before the next email would exceed it. Combine it with `maxEmails` for a fixed budget.
- Example: 200 channels checked, 70 unique emails delivered on the Starter plan = 70 × $0.016 = **$1.12**.
- The **Pricing** tab of this Actor is the reference for current prices.

**What to expect.** In our niche-search tests, 12–46% of channels published a public email, depending on the niche. (About 46% for a business niche such as real estate investing, about 12% for a gaming niche.) You pay only for the emails found.

![Pricing](https://api.apify.com/v2/key-value-stores/R1P4OnWyoV0LnGBin/records/yt-email-06-pricing-value-v2.png)

### 10. FAQ

**Why don't you return the hidden "View email address" emails?** Because they require signing in to a Google account and solving a CAPTCHA — an access control. We only collect what a creator published openly. Channels with the button are flagged.

**Why is my hit rate low?** Many creators publish no email at all, or only behind the hidden button. The share varies a lot by niche: in our niche-search tests about 12% for a gaming niche and about 46% for a business niche. If 200 channels in a row show no public email, the run stops by itself (`stopAfterChannelsWithoutEmail`). The run summary shows your exact hit rate, and you pay nothing for channels without an email.

**Is the data fresh?** Yes. There is no cache: each run reads the live pages.

**Do you guess emails like firstname@domain?** Never. Every address was published on a page we read, and `sourceUrl` shows which one.

**Why was an email excluded?** It looked like a private person's mailbox (e.g. `jane.doe@…`) while "Exclude personal-looking emails" is on. Turn it off to receive such addresses with `looksPersonal: true`.

**Can I use the official YouTube API?** Yes, with your own key (`youtubeApiKey`) for search and metadata. It does not provide emails.

**Is a free MX check a verification?** No. It says the domain can receive mail. For mailbox verification, add your own Hunter or Reoon key.

### 11. How it compares with other approaches

Based on publicly documented methods of email-finding tools for YouTube (no vendor named; prices change, so none are quoted):

| Approach | What you get | Trade-offs |
|---|---|---|
| **Hidden-button tools** (sign in + CAPTCHA solving, often with a cache) | also the emails behind "View email address" | relies on logged-in accounts and CAPTCHA solving; cached results may be old; usually the highest price per email |
| **Basic public scrapers** (description / About only) | emails written on YouTube | often no website pages, no evidence, no confidence, no GDPR options |
| **This Actor** (public sources + evidence) | description, About links, creator website contact pages, link-in-bio, with source URL, context, confidence, category | does not reveal hidden-button emails; hit rate depends on what creators publish |

### 12. Privacy & compliance (GDPR)

- **Public data only**: the channel's public pages and the websites the creator links to. No login, no cookies of an account, no CAPTCHA solving, no access controls bypassed, robots.txt respected.
- **Only emails published for contact**: from the creator's own description, links and site pages — never from comments or third-party sites.
- **Personal data**: a creator's email is often personal data even when published for business. **You are the controller** of the data you collect: have a lawful basis (often legitimate interest with a documented balancing test), inform the people concerned where their data came from (GDPR art. 14), honour objections and opt-outs at once, keep only what you need. Several countries require prior consent for commercial email to individuals (ePrivacy / PECR / UWG); in the US follow CAN-SPAM.
- **No bulk unsolicited messaging**: use these contacts for relevant one-to-one partnership outreach. The Actor has no sending feature.
- **Nothing kept outside your run**: no email database, no cache. The resume state stores only hashes of delivered emails, in your own run storage.
- **Keys** (YouTube API, Hunter, Reoon) are secret inputs, stored encrypted by Apify and redacted from logs and outputs.
- This Actor is independent and **not affiliated with, endorsed or sponsored by YouTube or Google**. This section is not legal advice.

### 13. Limitations

- Hidden-button emails are not collected (see above).
- Subscriber counts on public pages are rounded by YouTube (21.4M); the API mode gives exact counts.
- The country filter uses the country the creator set; channels without one are excluded when the filter is on. YouTube publishes no reliable channel language, so `searchLanguage` is a search hint only.
- `activeWithinDays` uses YouTube's approximate upload date ("3 weeks ago").
- Websites that block robots (403), rate-limit us for long, disallow crawling in robots.txt or whose robots.txt does not answer are not read (`websiteStatus` tells you). Social profiles (Instagram, TikTok, X, Facebook…) are never read.
- At most 3 pages per site and 5 sites per channel; JavaScript-only sites may show no email in their HTML.
- YouTube can change its page structure; the parser is tested on recorded structures and fails safely (`BLOCKED_BY_YOUTUBE` / `SOURCE_NOT_FOUND`, never charged).

### Related Actors

Other Actors by the same developer that work well with this one:

- [YouTube Scraper](https://apify.com/Badr_xba/youtube-data-scraper) – videos, channels, comments and transcripts of the same creators.
- [YouTube AI Summary & Channel Analytics](https://apify.com/Badr_xba/youtube-ai-channel-analytics) – check a creator's topics and engagement before you reach out.
- [Business Email Finder](https://apify.com/Badr_xba/business-email-finder) – more e-mails from the websites linked on the channels.

### 15. Start finding creator contacts

Type a niche, keep the GDPR-safe defaults, set your maximum cost, and click **Start**. You only pay for unique public emails delivered — with the proof of where each one came from. Questions or ideas? Open an issue on the **Issues** tab.

# Changelog

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

# Actor input Schema

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

One niche per line, e.g. "real estate investing", "home workout". Each keyword searches YouTube for CHANNELS (not videos).

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

One per line: https://www.youtube.com/@handle, @handle, https://www.youtube.com/channel/UC..., UC... IDs, /c/ and /user/ URLs. Lists pasted on one line (comma or space separated) are accepted.

## `maxChannelsPerSearch` (type: `integer`):

How many channels to take from each keyword search (YouTube's own order). Pagination is automatic.

## `maxChannels` (type: `integer`):

Stops queueing new channels once this many were taken from your input and searches (default 500, maximum 10,000 per run; an empty value or 0 means 500). Channels themselves are never charged.

## `stopAfterChannelsWithoutEmail` (type: `integer`):

Safety stop: when this many checked channels in a row show no public email, the run ends (stop reason tooManyChannelsWithoutEmail) so you can change niche or filters. 0 = never stop for this reason.

## `searchCountry` (type: `string`):

Optional, e.g. US, GB, DE: YouTube's search region (gl). It biases the search; it does not guarantee the channel's country (use the country filter below for that).

## `searchLanguage` (type: `string`):

Optional, e.g. en, es, fr: YouTube's interface / relevance language for the search (hl). YouTube publishes no reliable channel language, so this is a search hint, not a filter.

## `channelCountries` (type: `array`):

Country names or 2-letter codes (United States, US, DE...). Uses the country the creator set on the About page; channels without a country are excluded when this filter is set.

## `minSubscribers` (type: `integer`):

Channels with fewer subscribers (or hidden subscriber count) are skipped.

## `maxSubscribers` (type: `integer`):

Channels with more subscribers (or hidden subscriber count) are skipped.

## `activeWithinDays` (type: `integer`):

Optional. Keeps only channels whose newest regular video is at most N days old (approximate date from YouTube's list). Costs one extra list read per channel. Channels whose activity cannot be read are skipped.

## `websiteMode` (type: `string`):

Websites and link-in-bio pages (Linktree, Beacons, Carrd...) linked from the About page or the description.

## `maxWebsitesPerChannel` (type: `integer`):

How many linked sites to read per channel (the creator's own site first, then a link-in-bio page).

## `maxPagesPerWebsite` (type: `integer`):

Home page, then contact / about / imprint pages of the same site. A site stops at its first page that shows an email.

## `excludePersonalLookingEmails` (type: `boolean`):

On (default): addresses that look like a private person's mailbox (firstname.lastname@, or a free-mail address with no business word that is not the channel's own name) are left out and never charged. Off: they are delivered with looksPersonal: true - you are responsible for using them lawfully.

## `maxEmails` (type: `integer`):

The run stops cleanly once this many unique emails were delivered. Combine with "Maximum cost per run" to control spend.

## `verificationProvider` (type: `string`):

Each unique email is verified once per run. A refused key or an exhausted plan stops verification; the run continues.

## `verificationApiKey` (type: `string`):

Your Hunter.io or Reoon API key. Stored encrypted by Apify, used only for this run, redacted from logs.

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

Stored encrypted by Apify, used only for this run, redacted from logs.

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

Lowered automatically on small memory.

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

Apify datacenter proxy by default: each refused YouTube request is retried with a new IP (up to 8 attempts). Linked websites are read directly, never through rotating IPs.

## `maxEnhancedRecoveries` (type: `integer`):

Off by default. When on, a YouTube page refused on every datacenter attempt is retried through the residential proxy, at most this many times per run, and only while the separate enhanced-recovery event is available in this Actor's pricing (one event per page recovered).

## Actor input object example

```json
{
  "searchQueries": [
    "real estate investing"
  ],
  "maxChannelsPerSearch": 5,
  "maxChannels": 500,
  "stopAfterChannelsWithoutEmail": 200,
  "websiteMode": "ifNoEmailFound",
  "maxWebsitesPerChannel": 2,
  "maxPagesPerWebsite": 3,
  "excludePersonalLookingEmails": true,
  "maxEmails": 0,
  "verificationProvider": "none",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxEnhancedRecoveries": 0
}
```

# Actor output Schema

## `emails` (type: `string`):

Email, channel, category, confidence, source, subscribers, country, verification.

## `byChannel` (type: `string`):

Channel, handle, URL, subscribers, country, website and email.

## `allFields` (type: `string`):

Every field of every row (JSON, CSV, Excel export).

## `visualReport` (type: `string`):

Interactive page: email cards with source and confidence, filters, charts and CSV/JSON export.

## `runSummary` (type: `string`):

Channels checked, hit rate, unique emails charged, channels without a public email (not charged), stop reason.

## `failedInputs` (type: `string`):

Inputs that could not be read, with a stable error code.

# 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": [
        "real estate investing"
    ],
    "maxChannelsPerSearch": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("badr_xba/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 = {
    "searchQueries": ["real estate investing"],
    "maxChannelsPerSearch": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("badr_xba/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 '{
  "searchQueries": [
    "real estate investing"
  ],
  "maxChannelsPerSearch": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call badr_xba/youtube-email-scraper --silent --output-dataset

```

## MCP server setup

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