# YouTube Channel Search: Keywords to Channels (`alexmorain/youtube-channel-search`) Actor

Search YouTube channels by keyword and get subscribers, video count, total views, description, links, country, creation date and public emails. Goes past the search limit, free filters, new-channel monitoring with webhook. No browser.

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

## Pricing

from $2.00 / 1,000 channels

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

This Actor searches [YouTube](https://www.youtube.com) channels by keyword and returns each one as a
clean row: **subscribers, video count, total views, full description, external links, country,
creation date and the email** when the channel writes one in its description. Type `vegan
cooking`, `b2b saas` or `yoga paris`, get a list of channels you can sort, filter and contact.

It talks to YouTube over plain HTTP, the way the YouTube app does. No browser, no login, no
proxy to pay for. **3,000 channels with every detail take about four minutes.** Pricing is pay
per event: **$3.50 per 1,000 channels** at the entry price, **from $2.00 / 1,000 on Gold**,
with subscriber and country filters included, and $0.002 per run.

A single YouTube search announces tens of thousands of results and then stops after a few
hundred channels. This Actor goes past that limit by searching the related queries YouTube
suggests, the other sort orders and other country views, and keeping only channels it has not
returned yet.

***

### What does YouTube Channel Search do?

For every keyword you give it, the Actor:

- **Searches YouTube's channel results**, the same list you get with the Channels filter on
  youtube.com.
- **Reads each channel's About tab**: total views, number of videos, the full description,
  the links the creator lists (Instagram, website, shop, Discord), the country and the day the
  channel was created.
- **Extracts emails** written in the description. YouTube's own "business inquiries" address
  sits behind a captcha for logged-in humans; it is not available to any scraper and is not
  included.
- **Goes past the search limit.** On the keyword `marketing` YouTube announces 31,615 results
  and a single search returns 178 channels. With the widening on, one run returned **3,000
  unique channels** from 9 search variants, with no duplicate in the dataset.
- **Filters for free.** Minimum and maximum subscribers and the channel's country are applied
  before you are charged: a channel you filter out costs nothing.

A channel found by two keywords is returned once and charged once.

### Why use this YouTube channel search scraper?

- **Influencer and creator discovery.** Build a list of channels in a niche, in a size range
  (`10,000` to `500,000` subscribers) and in a country, with their links and emails.
- **Outbound and partnerships.** Channels with a contact email or a website, ready for a CRM.
- **Competitor and market mapping.** Who talks about your topic, how big they are, how long
  they have existed, how many views they have collected.
- **New creator monitoring.** Schedule the same keywords weekly with **New channels only**: each
  run returns only channels never returned before, and a webhook pings Slack, Zapier, Make or
  n8n.
- **Datasets for analysis and AI.** Thousands of channels with descriptions and counters, ready
  for a spreadsheet or a model.

What you get that a plain search scrape misses:

- **More than one search page set.** Related queries, sort orders and country views, merged and
  deduplicated, with the number of channels each keyword delivered logged next to the number
  YouTube announced.
- **The About tab, cheaply.** One light request per channel (about 17 KB), not the full channel
  page.
- **Honest rows.** If YouTube refuses the About request for a channel, you still get the search
  card and pay the lower price. A keyword that cannot be searched gets one error row, never
  charged.

### What data can I extract from YouTube channels?

| Field | Description |
|---|---|
| `channelId`, `url`, `handle`, `title` | Channel ID, URL, handle and name |
| `description` | Full description from the About tab (the short search snippet when details are off) |
| `subscribers`, `subscribersText` | Subscriber count and the text YouTube shows (`1.36M subscribers`) |
| `videoCount`, `totalViews` | Number of videos and lifetime views (details) |
| `country`, `countryCode` | Country declared in the About tab and its ISO code (details) |
| `joinedDate` | Creation date, `YYYY-MM-DD` (details) |
| `emails` | Email addresses written in the description (details) |
| `links` | External links with title and real destination URL (details) |
| `verified`, `avatarUrl` | Verified badge and profile picture |
| `hasDetails` | True when the About tab was read |
| `query`, `foundWith` | The keyword you entered, and the related query that found the channel when different |
| `scrapedAt` | UTC time of collection |

YouTube rounds subscriber counts to three significant digits (`1.36M`), so `subscribers` is as
precise as YouTube shows it. Channels that hide their count have `subscribers: null`.

### How to search YouTube channels

1. Add one or more **search keywords**, one per line.
2. Set **Max channels per keyword**: 100 by default. Raise it to 1,000 or more and leave **Go past
   the search limit** on Automatic.
3. Optionally set **min and max subscribers** and **channel country** (`FR`, `Brazil`).
4. Leave **Read each channel's About tab** on to get views, country, links and emails.
5. Press **Start**, then download the dataset as JSON, CSV, Excel or HTML.

### How much does it cost to search YouTube channels?

| Event | Free | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Channel with About details | $4.50 / 1,000 | $3.50 / 1,000 | $2.80 / 1,000 | $2.00 / 1,000 |
| Channel, search card only | $3.00 / 1,000 | $2.30 / 1,000 | $1.80 / 1,000 | $1.30 / 1,000 |
| Actor start, per GB of memory | $0.002 | $0.002 | $0.002 | $0.002 |

1,000 channels with every detail cost $4.50 on the Free plan, $3.50 on Bronze. A channel is
charged at the search-card price only when the About tab was turned off or YouTube refused it.
Duplicates, error rows, channels left out by your filters and channels already returned in New
channels only mode are free. The Actor stops cleanly at the maximum charge you set in the run
options.

### Input

See the **Input** tab for every option. The ones worth knowing:

- **Search keywords**: each keyword has its own maximum, count and new-only memory.
- **Max channels per keyword** and **Max channels in total** (all keywords together).
- **Go past the search limit**: Automatic keeps searching related queries, sort orders and country
  views until the maximum is reached. Off runs one search per keyword. It does nothing extra
  when the maximum is already met.
- **Min / Max subscribers** and **Channel country**: free filters. The country filter reads the
  About tab of every candidate; you are charged only for the channels you keep.
- **New channels only**: per-keyword memory of what earlier runs returned.
- **Webhook URL**: a JSON summary posted at the end of the run when at least one channel was returned.

Example, small creators in France and Brazil around a topic:

```json
{
    "searchQueries": ["yoga", "pilates"],
    "maxResultsPerQuery": 500,
    "minSubscribers": 10000,
    "maxSubscribers": 500000,
    "channelCountries": ["FR", "Brazil"]
}
```

Example, weekly feed of new channels with a webhook:

```json
{
    "searchQueries": ["b2b saas", "sales automation"],
    "maxResultsPerQuery": 300,
    "mode": "new-only",
    "webhookUrl": "https://hooks.slack.com/services/T000/B000/XXXX"
}
```

Call it from code:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("alexmorain/youtube-channel-search").call(run_input={
    "searchQueries": ["vegan cooking"],
    "maxResultsPerQuery": 200,
    "minSubscribers": 5000,
})
for ch in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ch["title"], ch["subscribers"], ch["country"], ch["emails"])
```

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('alexmorain/youtube-channel-search').call({
    searchQueries: ['vegan cooking'],
    maxResultsPerQuery: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'channels');
```

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~youtube-channel-search/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["vegan cooking"], "maxResultsPerQuery": 100}'
```

### Output

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

```json
[
    {
        "channelId": "UC1rIOwTqDuWkFj87HZYRFOg",
        "url": "https://www.youtube.com/channel/UC1rIOwTqDuWkFj87HZYRFOg",
        "handle": "@NYTCooking",
        "title": "NYT Cooking",
        "description": "All the food that's fit to eat (yes, it's an official New York Times production).",
        "subscribers": 1360000,
        "subscribersText": "1.36M subscribers",
        "videoCount": 1234,
        "totalViews": 291155278,
        "country": "United States",
        "countryCode": "US",
        "joinedDate": "2019-01-09",
        "emails": [],
        "links": [
            {"title": "NYT Cooking", "url": "https://cooking.nytimes.com/"},
            {"title": "Instagram", "url": "https://www.instagram.com/nytcooking"}
        ],
        "verified": true,
        "avatarUrl": "https://yt3.googleusercontent.com/example=s176-c-k-c0x00ffffff-no-rj-mo",
        "hasDetails": true,
        "query": "cooking",
        "foundWith": null,
        "scrapedAt": "2026-11-18T18:26:34+00:00"
    },
    {
        "input": "a keyword YouTube could not search",
        "inputType": "query",
        "error": "SEARCH_FAILED",
        "message": "YouTube did not answer this search. Try again later."
    }
]
```

### Tips

- **How many channels can I get?** One YouTube search returns about 125 to 420 unique channels
  whatever it announces (measured on five keywords). With widening on, `marketing` gave 3,000
  in 254 seconds. Very narrow keywords simply have fewer channels: the run ends when no new
  channel comes up, and the log says how many were delivered against how many YouTube announced.
- **Several narrow keywords beat one broad one.** `yoga for beginners` and `yoga for seniors`
  reach channels that `yoga` never surfaces.
- **Country.** **Search country** changes which channels YouTube ranks first; **Channel country**
  keeps only channels that declare that country. Many channels declare none: they are left out
  when you filter.
- **Monitoring:** schedule the same input weekly with **New channels only**. A run that finds
  nothing new costs $0.002.
- **Cheaper runs:** turn off the About tab when name, handle and subscribers are enough.
- **From code:** call the Actor through the [Apify API](https://docs.apify.com/api/v2) or the
  Python and JavaScript clients; the **API** tab has ready-to-paste snippets.

### FAQ

#### Why is `subscribers` rounded?

YouTube shows subscriber counts with three significant digits (`682K`, `1.36M`) to everybody,
including its own app. The Actor returns the number behind that text. It cannot be more precise
than YouTube is.

#### Why is `emails` empty for most channels?

Only emails written in the channel description are collected: roughly one channel in 16 has one.
The "View email address" button of the About tab is protected by a captcha and a Google login,
and is not available to the Actor.

#### Why did I get fewer channels than my maximum?

The keyword ran out of new channels. YouTube announces tens of thousands of results for a broad
keyword, but serves only a few hundred per search. The Actor already tries related queries, sort
orders and country views; a very narrow keyword has no more to give. The run log shows the
count delivered next to the count announced.

#### Why is `country` empty?

The creator did not declare a country in the About tab, or YouTube refused the About request and
the row was charged at the search-card price (`hasDetails` is false).

#### Is it legal to scrape YouTube channels?

Our Actors are ethical and do not extract any private user data. They only extract what the
user has chosen to share publicly. We therefore believe that our Actors, when used for ethical
purposes by Apify users, are safe. However, you should be aware that your results could contain
personal data, such as the email address a creator wrote in a public description. Personal data
is protected by the GDPR in the European Union and by other regulations around the world. You
should not scrape personal data unless you have a legitimate reason to do so. If you're unsure
whether your reason is legitimate, consult your lawyers.

#### Something does not work

Open an issue in the **Issues** tab with the run ID. Error rows in the dataset (`error`,
`message`) and the run's status message usually say what went wrong.

### Guide and use cases

Use cases for outbound and automation, the output fields, pricing and common questions are on the [YouTube Channel Search page](https://alexis.morain.fr/en/scrapers/youtube-channel-search/) of my site. The [Social media and content family page](https://alexis.morain.fr/en/scrapers/families/social-content/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

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

Keywords to search among YouTube channels, one per line, like <code>vegan cooking</code>, <code>b2b saas</code> or <code>yoga paris</code>. Every keyword gets its own count, filters and new-only memory.

## `maxResultsPerQuery` (type: `integer`):

How many channels to return for each keyword. A single YouTube search stops after about 200 to 600 channels, however many results it announces (about 109,000 for <i>cooking</i>). With <b>Go past the search limit</b> on, the Actor keeps searching variants until it reaches this number or runs out of new channels.

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

Stop the whole run after this many channels, all keywords together. Leave empty for no total limit. The run's maximum charge, set in the run options, also stops it cleanly.

## `widenSearch` (type: `string`):

A YouTube search ends after a few hundred channels. <b>Automatic</b> then searches the related queries YouTube suggests for your keyword, the other sort orders and 12 country views, and keeps only channels not seen yet. It only does so when the maximum per keyword is not reached yet, so a small maximum costs nothing extra.

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

Order of the first search. The other orders are used by <b>Go past the search limit</b> to find more channels.

## `country` (type: `string`):

Two-letter country code of the YouTube view used for the search (<code>US</code>, <code>FR</code>, <code>BR</code>...). It changes the ranking, not the channels' own country: use <b>Channel country</b> below to filter on that.

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

Keep channels with at least this many subscribers. YouTube rounds counts to three digits (1.36M), so the figure is as precise as YouTube shows it. Channels that hide their count are left out when a limit is set. Filtered channels are not charged.

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

Keep channels with at most this many subscribers. Useful to find small creators.

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

Keep only channels whose About tab declares one of these countries, by two-letter code or name: <code>FR</code>, <code>Brazil</code>. Channels without a declared country are left out. The About tab is read for every candidate; only the channels you keep are charged.

## `includeDetails` (type: `boolean`):

Adds total views, video count, full description, external links, country, creation date and emails found in the description. Off returns the search card only (name, handle, subscribers, short description) at the lower price.

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

<b>All channels</b> returns every channel within your limits on every run.<br><br><b>New channels only</b> keeps a memory of the channels earlier runs returned, per keyword, and returns only the ones never returned before. Schedule it weekly on your keywords to get a feed of new channels in your niche. Channels already returned are not charged again. The first run returns everything.

## `registryKey` (type: `string`):

Only used by <b>New channels only</b>. Leave empty and each keyword keeps its own memory. Set a name to keep separate memories for the same keywords (two clients, two projects), or a new name to start over.

## `webhookUrl` (type: `string`):

If set, the Actor POSTs a JSON summary to this URL at the end of the run, <b>only when at least one channel was returned</b>: <code>runId</code>, <code>datasetId</code>, <code>mode</code>, <code>channels</code> (count) and <code>items</code>, the first 100 channels with ID, URL, handle, title, subscribers, country, emails and keyword. Stored encrypted. An unreachable webhook is logged and never fails the run.

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

Leave this off. Requests go to YouTube directly from the Apify datacenter, which YouTube accepts for channel search at no cost to you.

## Actor input object example

```json
{
  "searchQueries": [
    "cooking"
  ],
  "maxResultsPerQuery": 20,
  "widenSearch": "auto",
  "sortBy": "relevance",
  "country": "US",
  "includeDetails": true,
  "mode": "all",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset with every channel collected in this run

# 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": [
        "cooking"
    ],
    "maxResultsPerQuery": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/youtube-channel-search").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": ["cooking"],
    "maxResultsPerQuery": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/youtube-channel-search").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": [
    "cooking"
  ],
  "maxResultsPerQuery": 20
}' |
apify call alexmorain/youtube-channel-search --silent --output-dataset

```

## MCP server setup

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

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/peDbza7agC5DrYbua/builds/fB2Fbi8wpyr2ct1Jm/openapi.json
