# YouTube Channel Scraper (`locaihost/youtube-channels`) Actor

YouTube channel scraper for @handles, channel links or a keyword search. One row per channel with subscribers, total views, video count, joined date, country, description, links, avatar and banner. Latest videos optional. No login, no API key. $0.50 per 1,000 channels.

- **URL**: https://apify.com/locaihost/youtube-channels.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.28 / 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

## YouTube Channel Scraper

Get one row per YouTube channel with subscribers, total views, video count, joined date, country, description, the links shown on the channel, keywords, avatar, banner and verified badge. Paste @handles or channel links, or search for channels by keyword, and add each channel's latest videos if you want them. You don't need a login, an API key or a daily quota.

What people use it for:

- Creator shortlists: search a topic and get each channel's subscribers, total views, video count and country.
- Enriching a list: turn @handles into a spreadsheet with subscribers, views, joined date and the channel's website and social links.
- Tracking competitors: run a list of channels daily and chart subscriber and view growth.
- Content audits: each channel's latest, most popular or oldest videos with views, length and date.

### How do I start?

Paste this into the **JSON** tab of the input and click **Start**:

```json
{"channels": ["@mkbhd", "https://www.youtube.com/@veritasium"]}
```

That returns one row per channel, usually in under 10 seconds.

More examples:

```json
{"searchTerms": ["specialty coffee", "home workouts"], "maxResults": 50}
```

```json
{"channels": ["@MrBeast", "UCX6OQ3DkcsbYNE6H8uQQuVA"], "channelTabs": ["videos"], "maxResults": 20}
```

```json
{"channels": ["@mkbhd"], "channelTabs": ["videos", "shorts"], "channelSort": "popular", "maxResults": 10, "videoDetails": true}
```

### What does each row contain?

You get one **channel** row per channel. With **Latest videos** on, you also get one **video** row per video. A channel that doesn't exist, a tab it doesn't have or an entry we can't use returns a free **unavailable** row that says why.

| Row | Fields |
|---|---|
| Channel | `id`, `url`, `handle`, `name`, `description`, `subscriberCount`, `subscriberCountText`, `videoCount`, `viewCount` (all videos), `joinedDate`, `country`, `links` (title and link), `keywords`, `avatar`, `banner`, `verified`, `rank` (search position), `lastUploadText` ("3 days ago", the newest video on its Videos tab) and `lastUploadApproxDate` (that as a date) |
| Video | `id`, `url`, `title`, `viewCount`, `duration`, `durationSeconds`, `publishedText`, `thumbnail`, `isShort`, `channelName`, `channelHandle`, `subscriberCount`, `channelTotalViews`; with **Full video details** also `likeCount`, `commentCount`, `publishedAt`, `description`, `tags`, `category` |
| Every row | `type`, `source` (channel or search), `input` (what you typed), `scrapedAt` |

A real channel row from a search for "specialty coffee" on 2026-11-03 (description, avatar and banner shortened):

```json
{
  "type": "channel",
  "id": "UC3KGOt3IfrVxDNtz5o7H-5A",
  "url": "https://www.youtube.com/@EuropeanCoffeeTrip",
  "handle": "@EuropeanCoffeeTrip",
  "name": "European Coffee Trip",
  "description": "We love specialty coffee and making videos about it. Back in 2014, we decided to visit the best coffee shops in Europe a…",
  "subscriberCount": 393000,
  "subscriberCountText": "393K",
  "videoCount": 627,
  "viewCount": 52454478,
  "joinedDate": "2014-07-02",
  "country": "Czechia",
  "links": [
    {"title": "Magazine", "url": "https://europeancoffeetrip.com"},
    {"title": "Mobile App", "url": "https://europeancoffeetrip.com/app"}
  ],
  "keywords": "coffee barista cafe \"specialty coffee\" espresso AeroPress",
  "avatar": "https://yt3.googleusercontent.com/ytc/…",
  "banner": "https://yt3.googleusercontent.com/LjmrAq5_…",
  "verified": true,
  "source": "search",
  "input": "specialty coffee",
  "rank": 1,
  "scrapedAt": "2026-11-03T15:00:20.767Z"
}
```

### How much does it cost?

You pay per row. The run itself is free apart from a one-time $0.00005 start fee.

| Row | Free and Starter plans | Scale | Business |
|---|---|---|---|
| Channel | $0.50 per 1,000 | $0.375 per 1,000 | $0.275 per 1,000 |
| Video (only with Latest videos on) | $0.50 per 1,000 | $0.375 per 1,000 | $0.275 per 1,000 |

**Free rows, never charged:** channels that don't exist or were terminated, missing channel tabs, searches with no results and unusable input. Channels left out by the keyword search filters and videos outside the date window are never returned and never charged.

Apify's free $5 monthly credit covers about 10,000 channels. On the Free plan a run stops at 1,000 rows; any paid Apify plan removes that cap. Set a **Max cost per run** in the run options and the run stops cleanly at that amount.

### What can I put in the input?

| Field | What it does |
|---|---|
| Channels | @handles, channel links or UC… ids. |
| Or: find channels by keyword | The channels YouTube's search shows for each term. |
| Max channels per search | Most channels per search term (default 10). With Latest videos on, also the number of videos per tab. |
| Latest videos | Optional: Videos, Shorts and/or Live tabs of each pasted channel. Empty = channel rows only. |
| Video order | Newest, most popular or oldest first. |
| Full video details | Open each video for exact likes, upload time, tags and comment count. Same price; off is faster. |
| Min / Max subscribers, Min videos | Keyword searches only: leave out channels outside these counts (finding creators of a certain size). Counts on the search result are checked first, so most left-out channels cost no extra request; a channel whose count YouTube hides is left out. |
| Verified channels only | Keyword searches only: keep channels with YouTube's verified badge. |
| Exclude channels | Keyword searches only: @handles, links or ids to leave out. |
| Published after / before | Latest videos only: a date (2026-10-01) or a period ("30 days"). Newest first, each tab stops at the first older video. |
| Region | Two-letter country code for which channels and videos YouTube offers (text stays in English). Empty = US. |

The first six fields are on the main form; the rest sit under **Advanced (optional)**. Through the API you can also send `startUrls` as a list of `{"url": "..."}` objects: channel links in it are read like **Channels**, and search, video or playlist links work too.

#### Measured runs

Real runs on build 0.1.4, 2026-11-15, default memory. Cost is what the run charged on the Starter price, start fee included.

| Input | Rows | Run time | Cost |
|---|---|---|---|
| Quick start (2 channels) | 2 channels | 3 s | $0.0011 |
| 1 search term, 10 channels | 10 channels | 10 s | $0.0051 |
| 1 channel + its 15 latest videos | 1 channel, 15 videos | 3 s | $0.0081 |
| 2 search terms, 50 channels each | 100 channels | 58 s | $0.0501 |
| 1 search term with subscriber filters (363 channels left out, free) | 10 channels | 86 s | $0.0051 |
| 1 channel, Videos + Shorts tabs, last 60 days | 1 channel, 12 videos | 18 s | $0.0066 |

### What are the limits?

- Public data only, read the way a signed-out visitor sees it. We never sign in.
- YouTube itself rounds subscriber counts (21.4M, 393K), and `subscriberCountText` keeps its text. Total views and video counts are exact.
- `country`, `links` and `keywords` are empty when the channel doesn't fill them in.
- The channel's business email is not included, because YouTube shows it only after a sign-in and a CAPTCHA. Email addresses and phone numbers in descriptions are replaced with `[email removed]` or `[phone removed]`, and email and phone links are left out of `links`.
- `lastUploadText` is as rough as YouTube's own wording ("1 year ago"); it covers long-form videos, not Shorts.
- Channels found by a keyword search return the channel row only. Paste them under **Channels** to get their latest videos too.

### How do I use it from the API, n8n, Make or an AI agent?

- API: start a run and fetch the dataset with Apify's REST API or its JavaScript and Python clients. Every row is JSON.
- n8n and Make: use the Apify node or module, pick this Actor and paste the input JSON.
- AI agents (MCP): the Actor is available as a tool through Apify's MCP server, so an AI assistant can look up channels for you.
- Exports: JSON, CSV, Excel, XML or HTML from the dataset tab, or straight to Google Sheets with Apify's integration.

### Other questions

**What does a typical run cost?** 1,000 channels cost $0.50. Add 10 latest videos each and it is $0.50 + 10,000 × $0.50 / 1,000 = $5.50.

**Is it legal to scrape YouTube channels?** This Actor reads only public pages, the way a signed-out visitor sees them, with no account and no cookies. Use the data for analysis and research, and follow the laws on personal data that apply to you (GDPR, CCPA). If in doubt, ask a lawyer.

**What if YouTube changes its pages?** We run a test of the Actor every day, so we usually see a break before you do and fix it.

### What else does locaihost data make?

- [YouTube Scraper](https://apify.com/locaihost/youtube-scraper): videos, Shorts, channels, playlists and search results with full details.
- [YouTube Comments Scraper](https://apify.com/locaihost/youtube-comments): comments and replies on any video.
- [Instagram Scraper](https://apify.com/locaihost/instagram-scraper): public profiles, posts and reels, no login.

Did it help? A short rating on the Store helps other people find it.

Questions or a field you need? Open an issue on the **Issues** tab: we answer issues within 24 hours.

*locaihost data*

# Changelog

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

# Actor input Schema

## `channels` (type: `array`):

Channel @handles, links or UC… ids (@MrBeast, https://www.youtube.com/@mkbhd, UCX6OQ3DkcsbYNE6H8uQQuVA). Paste channel links rather than video links: a video link returns that video instead.

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

Optional. The channels YouTube's search shows for each term (its Channels filter), as many as Max channels per search.

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

Most channels per search term. If you also pick latest videos below, it is the number of videos per channel tab as well.

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

Keyword searches only: leave out channels with fewer subscribers. The count is checked on the search result first and on the channel's own page when the result hides it; a channel whose count YouTube doesn't show is left out. Left-out channels are free and don't count toward Max results. Empty = no limit.

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

Keyword searches only: leave out channels with more subscribers (for finding smaller creators). Empty = no limit.

## `channelTabs` (type: `array`):

Also return each pasted channel's latest videos from these tabs, Max channels per search from each, charged as videos. Leave empty for channel rows only. Channels found by a search return the channel row only.

## `minVideos` (type: `integer`):

Keyword searches only: leave out channels with fewer public videos (checked on the channel's About panel). Empty = no limit.

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

Keyword searches only: keep only channels with YouTube's verified badge (music artists' badge included).

## `excludeChannels` (type: `array`):

Keyword searches only: channels to leave out, as @handles, links or UC… ids (your own channel, or ones you already have).

## `channelSort` (type: `string`):

Order of each tab's videos, as the tab's own Latest / Popular / Oldest buttons sort them.

## `videoDetails` (type: `boolean`):

Open every video for exact likes, exact upload time, full description, tags and comment count. Same price either way; off is faster and returns what the channel tab shows (title, views, length, relative date).

## `publishedAfter` (type: `string`):

Latest videos only: videos published on or after this, a date like 2026-10-01 or a period like "30 days". Newest first, each tab stops at the first older video. Videos near the edge are opened for their exact upload time. Left-out videos are free. Empty = any date.

## `publishedBefore` (type: `string`):

Latest videos only: videos published before this, a date or a period like "1 month". Newer videos are skipped, free. Empty = up to now.

## `gl` (type: `string`):

Two-letter country code (GB, IN, DE…) for YouTube's region: which results a search shows and which videos are offered, as for a visitor in that country. Text stays in English, because counts and dates are read from English wording. Empty = US.

## `searchType` (type: `string`):

Searches find channels in this Actor.

## `includeChannelInfo` (type: `boolean`):

Always on in this Actor.

## `includeComments` (type: `boolean`):

Off in this Actor.

## Actor input object example

```json
{
  "channels": [
    "@MrBeast",
    "https://www.youtube.com/@mkbhd",
    "UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "searchTerms": [
    "specialty coffee",
    "home workouts"
  ],
  "maxResults": 10,
  "channelTabs": [],
  "verifiedOnly": false,
  "excludeChannels": [
    "@mkbhd",
    "UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "channelSort": "newest",
  "videoDetails": false,
  "searchType": "channels",
  "includeChannelInfo": true,
  "includeComments": false
}
```

# Actor output Schema

## `channels` (type: `string`):

One row per channel: subscribers, videos, total views, joined date, country, links.

## `videos` (type: `string`):

One row per video, when Latest videos is on: title, views, length, date.

## `full` (type: `string`):

Every field of every row, including free rows.

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

Counts, free rows by reason, anything that failed, access stats and cost.

# 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 = {
    "channels": [
        "@mkbhd",
        "https://www.youtube.com/@veritasium"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/youtube-channels").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 = { "channels": [
        "@mkbhd",
        "https://www.youtube.com/@veritasium",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/youtube-channels").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 '{
  "channels": [
    "@mkbhd",
    "https://www.youtube.com/@veritasium"
  ]
}' |
apify call locaihost/youtube-channels --silent --output-dataset

```

## MCP server setup

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

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/qN5EG5DV0RHEs6DkT/builds/NDjefLdww51BvfZOb/openapi.json
