# YouTube Channel Contacts & Email Finder - Socials & Websites (`ai-lead-gen-tools/youtube-channel-contacts`) Actor

\[💰$0.10/1K] Find business emails and social profiles of YouTube channels from channel and video descriptions. Returns email, role flags, MX status, Twitter, Instagram, TikTok, Facebook, Telegram, LinkedIn, website and shop, plus subscribers, views and last uploads. No login, no proxies, no API key.

- **URL**: https://apify.com/ai-lead-gen-tools/youtube-channel-contacts.md
- **Developed by:** [Vladimir Che](https://apify.com/ai-lead-gen-tools) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.10 / 1,000 channel contact scrapeds

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 Channel Contacts & Email Finder

Find the business contacts of YouTube channels: email addresses written in channel and video descriptions, plus the social profiles listed on the channel. Every row also carries the channel's size, so you can decide whom to approach first.

The source is YouTube's own channel and video pages read as a logged-out visitor. No login, no cookies, no captcha, no proxy required.

### What you get

One row per channel. Every field is always present, `null` when nothing was found, so the column set is stable between runs.

| Field | Example |
|---|---|
| `channelId` / `handle` / `channelUrl` | UCAsVow-8MdMejn4LpwzWDWQ / @MrTechnical |
| `title`, `description`, `avatarUrl`, `bannerUrl` | Mr Technical |
| `primaryEmail` | mrtechnical.in@gmail.com |
| `primaryEmailRole`, `primaryEmailFree` | false / true - role address, free mailbox |
| `primaryEmailDomain`, `primaryEmailSource`, `primaryEmailSourceVideoId` | gmail.com, channel_description, null |
| `emailDomainStatus` | `has_mx`, `no_mx` or `unknown` |
| `emails[]`, `emailCount` | every address found, with its source |
| `hasBusinessEmail`, `businessEmailStatus` | see the note below |
| `twitter`, `instagram`, `tiktok`, `facebook`, `telegram`, `linkedin`, `youtube`, `website`, `shop`, `patreon` | one column per platform, and `socials` as an object |
| `contactCount`, `contactsSource` | 5, \["about", "videos", "email", "socials"] |
| `videosRead`, `videosWithDescription` | 1, 1 |
| `subscribers`, `videoCount`, `viewCount` | 1020000, 1083, 227265249 |
| `country`, `countryCode`, `joinedDate`, `links[]`, `linkDomains[]` | India, IN, 2016-12-20 |
| `lastUploadAt`, `uploadsLast30Days`, `recentVideos[]` | 2026-11-08, 26 |
| `status`, `reason`, `filterReason`, `scrapedAt` | honesty fields |

A real row, taken from `test/output-sample.json` and produced by a real run:

```json
{
  "channelId": "UCAsVow-8MdMejn4LpwzWDWQ",
  "handle": "@MrTechnical",
  "channelUrl": "https://www.youtube.com/channel/UCAsVow-8MdMejn4LpwzWDWQ",
  "title": "Mr Technical",
  "description": "Welcome To Mr Technical \nWE LOVE ❤️ MAKING TECH VIDEOS\nSubscribe For Tech Videos ⚡📱\n \nFor Brands and Business Contact : mrtechnical.in@gmail.com\n\n\nMy Name is Ashok Yadav I'm Passio...",
  "avatarUrl": "https://yt3.googleusercontent.com/F7b4HfKW6y68cLLha2fJK_yIoUKxS69AGmoSntG942m8Cgnqyq6XmngM8hGr3u9-age3MKh0gA=s900-c-k-c0x00ffffff-no-rj",
  "bannerUrl": "https://yt3.googleusercontent.com/QEO0VIuOH7SPfNZhELo8nW32EAKCOjM825Zh1bnSHnfqtI7LMZjcVQvFzCta9K2JksxYPiZ1=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
  "verified": true,
  "autoGenerated": false,
  "unlisted": false,
  "primaryEmail": "mrtechnical.in@gmail.com",
  "primaryEmailRole": false,
  "primaryEmailFree": true,
  "primaryEmailDomain": "gmail.com",
  "primaryEmailSource": "channel_description",
  "primaryEmailSourceVideoId": null,
  "emailDomainStatus": "unknown",
  "emailDomainMxProvider": null,
  "emailDomainCheckedAt": null,
  "emailDomainReason": null,
  "emails": [
    {
      "email": "mrtechnical.in@gmail.com",
      "local": "mrtechnical.in",
      "domain": "gmail.com",
      "role": false,
      "freeMailbox": true,
      "source": "channel_description",
      "sourceVideoId": null
    }
  ],
  "emailCount": 1,
  "hasBusinessEmail": true,
  "businessEmailStatus": "not_attempted_requires_sign_in",
  "twitter": "https://twitter.com/MrTechnical_in",
  "instagram": "https://instagram.com/MrTechnical.in",
  "tiktok": null,
  "facebook": "https://facebook.com/MrTechnical.in",
  "telegram": null,
  "linkedin": null,
  "youtube": "https://www.youtube.com/channel/UCAsVow-8MdMejn4LpwzWDWQ",
  "website": "https://mrtechnical.in",
  "shop": null,
  "patreon": null,
  "socials": {
    "twitter": "https://twitter.com/MrTechnical_in",
    "instagram": "https://instagram.com/MrTechnical.in",
    "tiktok": null,
    "facebook": "https://facebook.com/MrTechnical.in",
    "telegram": null,
    "linkedin": null,
    "youtube": null,
    "website": "https://mrtechnical.in",
    "shop": null,
    "patreon": null
  },
  "contactCount": 5,
  "contactsSource": ["about", "videos", "email", "socials"],
  "subscribers": 1020000,
  "subscribersText": "1.02M subscribers",
  "subscribersExact": false,
  "videoCount": 1083,
  "viewCount": 227265249,
  "avgViewsPerVideo": 209848,
  "viewsPerSubscriber": 223,
  "joinedDate": "2016-12-20",
  "joinedText": "Joined Dec 20, 2016",
  "country": "India",
  "countryCode": "IN",
  "links": [
    { "title": "facebook", "url": "https://facebook.com/MrTechnical.in" },
    { "title": "instagram", "url": "https://instagram.com/MrTechnical.in" },
    { "title": "Google+", "url": "https://plus.google.com/ MrTechnicalOfficial" }
  ],
  "linkDomains": ["facebook.com", "instagram.com", "plus.google.com", "twitter.com", "mrtechnical.in"],
  "keywords": ["\"Mr", "technical\"", "\"tech", "news\"", "\"tips", "and", "tricks\"", "\"gadgets"],
  "tabs": ["Home", "Videos", "Shorts", "Playlists", "Posts", "Store", "Search"],
  "lastUploadAt": "2026-11-08",
  "lastUploadDays": 2,
  "uploadsLast30Days": 26,
  "medianViewsRecent": 47500,
  "avgViewsRecent": 68567,
  "shortsShareRecent": 0,
  "recentVideosSource": "page",
  "recentVideos": [
    {
      "videoId": "UeLtWaY-qMA",
      "title": "Best Phone Under 15000, 25000 & 30000 in Flipkart freedom sale | Best 5G Phone under 15k, 25k & 30k",
      "views": 14000,
      "published": "3 months ago",
      "publishedDays": 90
    },
    {
      "videoId": "VmJng9L1hrs",
      "title": "Best Phone Under 20000 | Flipkart Freedom Sale 2026 ⚡️ Best 5G Phone Under 20000",
      "views": 34000,
      "published": "2 months ago",
      "publishedDays": 60
    },
    {
      "videoId": "7ce41JBqxLo",
      "title": "iQOO Z11 Review, Camera Test & BGMI Test ⚡️ Best Phone Under 30000?",
      "views": 17000,
      "published": "2 months ago",
      "publishedDays": 60
    }
  ],
  "videosRead": 1,
  "videosWithDescription": 1,
  "searchTerm": "तकनीकी समीक्षा",
  "discoveredVia": "channel_search",
  "sourceVideoId": null,
  "keywordMatch": 0,
  "rankInSearch": 4,
  "status": "ok",
  "reason": null,
  "filterReason": null,
  "scrapedAt": "2026-11-10T12:06:17.479Z"
}
```

Output is available as JSON, CSV or Excel from the dataset tab.

### How to use it

1. Open this actor in the Apify Console.
2. Choose where channels come from with `mode`: search YouTube by keyword, or read a list you already have.
3. Click Start and watch the rows arrive in the dataset tab.
4. Export the dataset as CSV, Excel or JSON, or read it through the Apify API.

Two inputs that cover most runs.

**Read a ready list.** Paste channel ids (`UC…`), handles (`@name`) or full links into **Channels to read** and set `mode` to `channels`. Nothing is searched, each listed channel is read once.

```json
{
  "mode": "channels",
  "channelIds": ["@MrBeast", "@kurzgesagt", "https://www.youtube.com/@fireship"],
  "videosPerChannel": 5,
  "checkEmailDomain": true
}
```

**Search by keyword.** Set `mode` to `keywords` and paste keywords into **Search terms**. The search and the channel reading are billed as one run.

```json
{
  "mode": "keywords",
  "searchTerms": ["tech reviewer", "gadget unboxing"],
  "maxChannels": 100,
  "minSubscribers": 50000,
  "videosPerChannel": 5
}
```

Parameters, one to one with the input schema.

| Input | Default | Notes |
|---|---|---|
| `mode` | `keywords` | `keywords` searches YouTube, `channels` reads the list you give |
| `searchTerms` | `["tech reviewer"]` | keywords, up to 20, each paged to the end of the results |
| `channelIds` | `[]` | ids, handles or links, used in `channels` mode |
| `maxChannels` | `200` | hard cap on channels read and saved |
| `videosPerChannel` | `5` | video descriptions opened per channel, one page load each |
| `includePinnedVideo` | `true` | the pinned video description is embedded in the About page, so it is free |
| `checkEmailDomain` | `false` | MX lookup of each found domain |
| `includeBusinessEmailStatus` | `true` | report whether YouTube shows the business email button |
| `language` / `region` | `en` / `US` | YouTube `hl` / `gl` |
| `minSubscribers` / `maxSubscribers` | `0` | checked after the channel pages are read, `0` disables |
| `maxUploadAgeDays` | `0` | newest upload must be this recent, e.g. `180` for six months, `0` disables |
| `countries` | `[]` | ISO codes or English names |
| `verifiedOnly` | `false` | channels with the verification badge, `keywords` mode only |
| `maxChannelsPerTerm` | `50` | stops paging a term, counted before filters |
| `excludedChannelIds` | `[]` | ids or handles to leave out |
| `sortBy` | `relevance` | `subscribers`, `views`, `videoCount`, `lastUpload` |
| `maxConcurrency` | `3` | channels read in parallel |
| `sameDomainDelaySecs` | `0.5` | minimum gap between two requests to youtube.com |
| `requestTimeoutSecs` | `30` | per-request timeout before a retry |
| `runBudgetSecs` | the run timeout | leave it empty and the run uses the whole timeout you set |
| `proxyConfiguration` | no proxy | not required, worth enabling on large runs because of traffic size |

#### Ready-made tasks

Five saved inputs, one per question this actor answers. Each one shows only the fields it needs, and each returns data on its first run.

| Task | Input | Question it answers |
|---|---|---|
| [YouTube Influencer Contacts: Emails for a Niche](https://apify.com/ai-lead-gen-tools/youtube-channel-contacts/examples/youtube-influencer-contacts) | `mode: keywords`, `searchTerms` | which channels in a niche are contactable, with email and socials |
| [YouTube Refresh Contacts: Update Your Own List](https://apify.com/ai-lead-gen-tools/youtube-channel-contacts/examples/youtube-refresh-channel-contacts) | `mode: channels`, `channelIds` | what changed in the contacts of a list you already track |
| [YouTube Creators in One Country: Contact List](https://apify.com/ai-lead-gen-tools/youtube-channel-contacts/examples/youtube-creators-in-one-country) | `mode: keywords`, `countries`, `language` | which creators reach one local market, with a usable contact |
| [YouTube Cheap Contact Screen: About Page Only](https://apify.com/ai-lead-gen-tools/youtube-channel-contacts/examples/youtube-cheap-contact-screen) | `videosPerChannel: 0`, `includePinnedVideo` | which channels deserve a full read, at the lowest cost per channel |
| [YouTube Business Email Screen: Channel Button](https://apify.com/ai-lead-gen-tools/youtube-channel-contacts/examples/youtube-business-email-screen) | `mode: channels`, `includeBusinessEmailStatus` | which channels show YouTube's business email button |

### Modes

| Mode | What is requested | Rows |
|---|---|---|
| `keywords` | YouTube search for each term, then one read per channel | one row per channel found, after `maxChannels` and the filters |
| `channels` | no search, one read per listed channel | one row per listed channel, order follows your list |

In both modes one row is one channel. `videosPerChannel` multiplies the page loads, not the rows.

### Use cases

- **Influencer outreach at scale.** Build a prospect list of channels in a niche with a real email and social profiles attached, instead of opening About pages one by one.
- **Sponsorship and brand deals.** Filter by subscriber count and country, sort by reach, and get the business contact for each channel in the same row.
- **Creator database enrichment.** Take a list of channel ids you already track and refresh its emails, socials and last-upload activity in one run.
- **Agency lead generation.** Read channels relevant to a client's niche by keyword and hand over a CSV with contactable channels ordered by size.

### Cost

The price is **$0.10 per 1 000 channels**, which is $0.0001 per channel. The Store adds its 20 % margin, so a buyer pays $0.12 per 1 000. One `apify-actor-start` charge of $0.00005 applies per run.

You pay for a channel that yields at least one contact, that is a row with `status: ok`. Nothing else is charged:

- a channel with no email and no social profile that passes every filter is saved with `status: no_contacts` and costs nothing;
- rows dropped by `minSubscribers`, `maxSubscribers`, `maxUploadAgeDays`, `countries`, `verifiedOnly` or `excludedChannelIds` cost nothing and carry `filterReason`, whether or not contacts were found on their pages;
- a channel that failed to load costs nothing and carries `reason`;
- unusable input still writes one row with `status: invalid_input`, and that row is free.

Reading video descriptions is the costly part in page loads: five videos plus the About page means six requests per channel. `videosPerChannel: 0` reads only the About page, which still gives the socials and usually the pinned video description.

### Honest limits

- **The business email button is not read.** Many channels show a **View email address** button on the About page, but the address behind it opens only after sign-in and a captcha. `businessEmailStatus` is set to `not_attempted_requires_sign_in` and `hasBusinessEmail` mirrors the button; neither field contains an address.
- **`emailDomainStatus: has_mx` is not verification.** With `checkEmailDomain` on, the domain of each address is looked up for MX records. `has_mx` means the domain can receive mail, not that the mailbox exists, was read or was verified. There is deliberately no `emailVerified` field.
- **Subscriber counts are rounded by YouTube.** `subscribers` is the exact value of the rounded label, and `subscribersExact` is always `false`.
- **The actor never leaves YouTube.** It does not open the channel's website, does not crawl a contact form and does not guess addresses. A `website` or `shop` link taken from a video description is accepted only when its domain carries the channel name or handle, so a sponsor's link cannot win the column.
- **`videosPerChannel` is capped at 20.** Older videos are not read, so an address published only in an old description is not found.
- **The `youtube` column is not counted as a contact.** It repeats the channel's own URL for convenience, otherwise every row would be chargeable.

### FAQ

**Do I get the email behind the "View email address" button?**
No. That address requires a Google sign-in and a captcha, so the actor reports only that the button exists, through `hasBusinessEmail` and `businessEmailStatus`.

**Where do the addresses come from?**
From the channel description and from the descriptions of the recent videos you asked for. The channel description outranks a video when `primaryEmail` is picked, and `primaryEmailSource` says which one won.

**What does `checkEmailDomain` actually prove?**
That the domain has MX records, so it can receive mail. It does not prove the mailbox exists. Without the option, `emailDomainStatus` stays `unknown`.

**Will I be charged for channels without contacts?**
No. Only rows with `status: ok` are charged, and those always contain at least one contact. `no_contacts`, filtered, failed and `invalid_input` rows are free.

**How do I keep a run cheap?**
Set `videosPerChannel` to `0` and keep the default `includePinnedVideo`, which reads the About page only. Raise `videosPerChannel` when a niche hides addresses in video descriptions.

**Can I use handles instead of channel ids?**
Yes. `channelIds` and `excludedChannelIds` accept ids, `@handles` and full channel links.

**Why is `subscribers` such a round number?**
YouTube rounds the label it publishes, for example `1.02M subscribers`. The actor returns that value and sets `subscribersExact: false` so you never treat it as an exact count.

**Does it need a proxy?**
No. It reads YouTube as a logged-out visitor. A proxy helps on large runs because one channel with five videos costs several MB of traffic.

**What order are rows in?**
YouTube's order for `keywords` mode and your list order for `channels` mode by default. `sortBy` changes it to subscribers, views, video count or last upload.

### Related actors

Other actors in the YouTube group, each with its own dataset and price:

- [YouTube Search Scraper](https://apify.com/ai-lead-gen-tools/youtube-search) - videos, Shorts, channels and playlists by keyword, with native filters.
- [YouTube Comments Scraper](https://apify.com/ai-lead-gen-tools/youtube-comments) - comments and replies on a video or a list of videos.
- [YouTube Channel Discovery](https://apify.com/ai-lead-gen-tools/youtube-channel-discovery) - find channels to feed into this actor.
- [YouTube Similar Channels](https://apify.com/ai-lead-gen-tools/youtube-similar-channels) - channels close to a seed channel, for lookalike prospecting.

### Changelog

- 2026-11-12: published in the Store, pay per result with a free run start.
- 2026-11-11: card brought to the Store standard, price tag and three categories.
- 2026-11-10: first build on the platform.

# Actor input Schema

## `mode` (type: `string`):

`keywords` searches YouTube for channels. `channels` reads the channels you list in `channelIds` and skips the search.

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

Keywords to search YouTube for, up to 20. Used in `keywords` mode.

## `channelIds` (type: `array`):

Channel ids (`UC…`), handles (`@name`) or full channel links. Used in `channels` mode.

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

Hard cap on channels read and saved. Charged per channel that yields at least one contact.

## `videosPerChannel` (type: `integer`):

How many recent videos to open per channel for email addresses. Each video is one page load. 0 reads only the pinned video from the About page.

## `includePinnedVideo` (type: `boolean`):

The pinned video's description is embedded in the About page, so it costs nothing extra. Channels often keep business contacts there.

## `checkEmailDomain` (type: `boolean`):

Look up MX records of each found email domain and report `has_mx`, `no_mx` or `unknown`. This says the domain accepts mail; it does not prove the mailbox exists, so there is no `emailVerified` field.

## `includeBusinessEmailStatus` (type: `boolean`):

YouTube shows a business email button on some channels, but its address opens only after sign-in and a captcha. Keep this on to get `hasBusinessEmail` and an explicit note that the address was not taken.

## `language` (type: `string`):

YouTube `hl` value, e.g. `en`, `de`, `es`. Affects labels such as "subscribers" and "Joined".

## `region` (type: `string`):

YouTube `gl` value, e.g. `US`, `DE`, `GB`. Changes which channels a keyword returns even without a proxy.

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

Drop channels below this rounded subscriber count. Checked after the channel pages are read, because the count comes from there. 0 disables the filter.

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

Drop channels above this rounded subscriber count. 0 disables the filter.

## `maxUploadAgeDays` (type: `integer`):

Drop channels whose newest upload is older than this many days, e.g. `180` keeps only channels active within the last six months. Read from the channel videos page, so it runs after the pages are fetched. 0 disables the filter.

## `countries` (type: `array`):

Keep only channels whose owner declared one of these countries. ISO 3166 codes or English names, e.g. `US`, `Germany`.

## `verifiedOnly` (type: `boolean`):

Keep only channels carrying YouTube's verification badge. Works in `keywords` mode; a listed channel has no badge data until its pages are read.

## `maxChannelsPerTerm` (type: `integer`):

Stop paging a term once this many channels were found for it. Counted before filters.

## `excludedChannelIds` (type: `array`):

Channel ids (`UC…`) or handles (`@name`) to leave out.

## `sortBy` (type: `string`):

Order of rows in the dataset. `relevance` keeps YouTube's order in `keywords` mode and your list order in `channels` mode.

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

Channels read in parallel. Each channel costs about 2 s of work plus its video pages.

## `sameDomainDelaySecs` (type: `number`):

Minimum gap between two requests to youtube.com.

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

Per-request timeout before a retry is attempted.

## `runBudgetSecs` (type: `integer`):

How long this run may take before it stops and returns what it has. Leave it empty (recommended) and the run uses the whole timeout you set for it. Stopping early is not a failure: the summary reports it.

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

Not required to read YouTube. Worth enabling on large runs: one channel plus its videos costs several MB of traffic.

## Actor input object example

```json
{
  "mode": "keywords",
  "searchTerms": [
    "tech reviewer"
  ],
  "maxChannels": 5,
  "videosPerChannel": 0,
  "includePinnedVideo": true,
  "checkEmailDomain": false,
  "includeBusinessEmailStatus": true,
  "language": "en",
  "region": "US",
  "minSubscribers": 0,
  "maxSubscribers": 0,
  "maxUploadAgeDays": 0,
  "verifiedOnly": false,
  "maxChannelsPerTerm": 10,
  "sortBy": "relevance",
  "maxConcurrency": 3,
  "sameDomainDelaySecs": 0.5,
  "requestTimeoutSecs": 30,
  "runBudgetSecs": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per channel: emails, social profiles and channel metrics. Every field is always present - unknown values are null, never omitted, so the column set is stable between runs.

## `summary` (type: `string`):

Counters for the run: rows pushed and charged, channels found, how many had an email or a social profile, requests made and whether the run budget cut it short.

# 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 = {
    "searchTerms": [
        "tech reviewer"
    ],
    "maxChannels": 5,
    "videosPerChannel": 0,
    "maxChannelsPerTerm": 10,
    "runBudgetSecs": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai-lead-gen-tools/youtube-channel-contacts").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 = {
    "searchTerms": ["tech reviewer"],
    "maxChannels": 5,
    "videosPerChannel": 0,
    "maxChannelsPerTerm": 10,
    "runBudgetSecs": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ai-lead-gen-tools/youtube-channel-contacts").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 '{
  "searchTerms": [
    "tech reviewer"
  ],
  "maxChannels": 5,
  "videosPerChannel": 0,
  "maxChannelsPerTerm": 10,
  "runBudgetSecs": 100
}' |
apify call ai-lead-gen-tools/youtube-channel-contacts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ai-lead-gen-tools/youtube-channel-contacts"
        }
    }
}
```

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/IqHKWW7h1O8eRdBcr/builds/LouamCUDwSbyURd77/openapi.json
