# YouTube Channel & Video Scraper: Search, Shorts, Stats (`zhtech/youtube-channel-scraper`) Actor

Scrape YouTube channels, playlists and search results with full video metadata: title, description, exact publish date, duration, views, likes, comment count, tags, category, thumbnails, Shorts and live flags. Optional channel profile with subscribers, total views, links, join date and country.

- **URL**: https://apify.com/zhtech/youtube-channel-scraper.md
- **Developed by:** [ZH Tech](https://apify.com/zhtech) (community)
- **Categories:** Videos, 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 $0.80 / 1,000 videos

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 & Video Scraper: Search, Shorts, Stats

Scrape **YouTube channels, playlists and search results with full video metadata**: title, full description, **exact publish date and time**, duration, **exact views and likes**, comment count, tags, hashtags, category, HD thumbnails, Shorts and live flags, and channel details. Add a **channel profile record** with subscribers, total channel views, video count, description, external links, join date, country, avatar and banner.

You only pay for videos and channel records that were actually delivered. Filtered, private, removed and failed videos are never charged; failures come back as free rows with a clear error code.

Built and maintained by **ZH Tech**.

### What can this YouTube Channel Scraper do?

- **Every kind of input in one field**: channels (`@handle`, `/channel/UC...`, `/c/`, `/user/`, or a tab such as `/@name/shorts`), playlists, video and Shorts links, bare video IDs and YouTube search URLs. Add plain search queries in a separate field. Duplicates are removed.
- **Full metadata for every video**, not just the listing card: complete description, exact publish timestamp, exact likes and views, duration, comment count, tags, hashtags, category, family safe, unlisted, age restricted and members only flags, live stream start and end times.
- **Channel uploads in any order**: newest first, **most popular first** or oldest first, for regular videos, Shorts and past live streams. No 100 video cap.
- **YouTube search with real filters**: upload date (last hour, today, this week, this month, this year), type (videos, Shorts, movies), duration (under 3 minutes, 3 to 20 minutes, over 20 minutes, as in YouTube's current Filters dialog), features (4K, HD, live, subtitles, Creative Commons, 360, VR180, HDR, 3D, location, purchased) and sort order (relevance or popularity, the two orders YouTube still applies).
- **Channel profile record**: subscribers, exact total views, video count, full description, external links (YouTube redirect links unwrapped), join date, country, keywords, avatar, banner, verified badge, RSS feed. Or run **channel profiles only** across a list of channels.
- **Free filters**: published after and before (checked against the exact timestamp), title keywords and minimum views. Filtered videos are never charged.
- **Scheduled monitoring**: "Only new videos" remembers what earlier runs returned, so a daily schedule on a list of channels or searches returns only fresh uploads.
- **High resolution thumbnails**: the largest available image (usually 1920x1080) plus every size.
- **Built to avoid blocking**: Apify Proxy with session rotation, retries, and automatic escalation from datacenter to residential IPs only for the requests YouTube blocks.
- **Never crashes on a bad video**: each problem becomes a free row with an `errorCode`.

### Use cases

- **Competitor and channel analysis**: pull every upload of a channel with views, likes and comments to find what performs, how often they post, and which topics win.
- **Influencer discovery and outreach**: search a niche, then collect channel profiles with subscriber counts, countries and website or social links.
- **YouTube SEO**: study titles, tags, hashtags, descriptions and categories of the top results for your keywords.
- **Trend tracking**: search with "Upload date: this week" and sort by views to see what is taking off.
- **Content databases and AI pipelines**: build a catalog of videos with clean metadata, then add transcripts or comments with the companion actors.
- **Monitoring**: schedule daily runs with "Only new videos" and push new uploads to Slack, Google Sheets, Airtable or your own API.

### How to use it

1. Click **Try for free**.
2. Paste channel, playlist or video URLs into **Channels, playlists or videos**, and/or add **Search queries**.
3. Set **Max videos per channel, playlist or search**, choose the channel order and any search filters.
4. Click **Start**. Results appear in the **Output** tab within seconds. Download them as JSON, CSV, Excel, XML or HTML, or fetch them via the API.

### Input examples

The 50 most popular videos of two channels, plus their channel profiles:

```json
{
  "urls": ["https://www.youtube.com/@veritasium", "@mkbhd"],
  "channelSort": "popular",
  "channelContentTypes": ["videos"],
  "maxVideosPerSource": 50
}
```

This week's most viewed 3 to 20 minute videos for a search:

```json
{
  "searchQueries": ["home espresso tutorial"],
  "searchSort": "views",
  "searchUploadDate": "week",
  "searchDuration": "3to20",
  "maxVideosPerSource": 100
}
```

Channel profiles only, for a list of channels:

```json
{
  "urls": ["@3blue1brown", "@veritasium", "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ"],
  "channelInfoOnly": true
}
```

Daily monitoring of new uploads (schedule this input):

```json
{
  "urls": ["@mkbhd", "@linustechtips"],
  "maxVideosPerSource": 30,
  "onlyNewVideos": true,
  "stateKey": "tech-channels",
  "includeChannelInfo": false
}
```

#### All input options

| Field | Type | Default | What it does |
|---|---|---|---|
| `urls` | array | | Channels, playlists, videos, Shorts or search URLs, or bare video IDs |
| `searchQueries` | array | | Plain search queries |
| `maxVideosPerSource` | integer | 20 | Videos per channel, playlist or search (0 = all) |
| `maxVideos` | integer | 0 | Stop after this many videos in total (0 = no limit) |
| `channelContentTypes` | array | videos, shorts, streams | Which channel uploads to include |
| `channelSort` | string | newest | newest, popular or oldest |
| `includeChannelInfo` | boolean | true | Add one channel profile row per channel input |
| `channelInfoOnly` | boolean | false | Only channel profiles, no videos |
| `searchSort` | string | relevance | relevance or views (popularity). YouTube no longer sorts searches by upload date or rating: old inputs with `date` run as relevance, `rating` as views, with a log note |
| `searchUploadDate` | string | any | any, hour, today, week, month, year |
| `searchType` | string | video | video, shorts, movie |
| `searchDuration` | string | any | any, under3 (under 3 min), 3to20 (3 to 20 min), over20 (over 20 min). Old values still work: short (under 4 min), medium (4 to 20 min), long (over 20 min) |
| `searchFeatures` | array | | live, 4k, hd, subtitles, creativeCommons, 360, vr180, 3d, hdr, location, purchased |
| `publishedAfter` / `publishedBefore` | string | | Date (2026-01-31) or period ("30 days") |
| `titleKeywords` | array | | Only videos whose title contains one of these |
| `minViews` | integer | 0 | Skip videos with fewer views |
| `includeDescription` | boolean | true | Full description text |
| `includeCommentCount` | boolean | true | Comment count (one extra small request per video) |
| `includeErrorItems` | boolean | true | Free rows for failed videos |
| `onlyNewVideos` / `stateKey` | boolean / string | false / default | Skip videos returned by earlier runs |
| `maxConcurrency` | integer | 10 | Videos in parallel |
| `maxRetries` | integer | 5 | Retries per request with a fresh proxy session |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings |
| `residentialFallback` | boolean | true | Retry blocked requests on residential IPs |

### Output example

A video row:

```json
{
  "type": "video",
  "status": "success",
  "videoId": "aircAruvnKk",
  "url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "description": "What are the neurons, why are there layers, and what is the math underlying it? ...",
  "publishedAt": "2017-10-05T08:11:25-07:00",
  "publishDate": "2017-10-05",
  "durationSeconds": 1120,
  "duration": "18:40",
  "viewCount": 25275663,
  "likeCount": 570606,
  "commentCount": 9500,
  "commentCountText": "9.5K",
  "commentsDisabled": false,
  "tags": [],
  "hashtags": [],
  "category": "Education",
  "thumbnailUrl": "https://i.ytimg.com/vi_webp/aircAruvnKk/maxresdefault.webp",
  "thumbnails": [{"url": "https://i.ytimg.com/vi/aircAruvnKk/default.jpg", "width": 120, "height": 90}],
  "isShort": false,
  "isLive": false,
  "isUpcoming": false,
  "isLiveContent": false,
  "liveStartedAt": null,
  "liveEndedAt": null,
  "isFamilySafe": true,
  "isUnlisted": false,
  "isAgeRestricted": false,
  "isMembersOnly": false,
  "isPaid": false,
  "channelId": "UCYO_jab_esuFRV4b17AJtAw",
  "channelName": "3Blue1Brown",
  "channelHandle": "@3blue1brown",
  "channelUrl": "https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw",
  "position": 1,
  "input": "https://www.youtube.com/@3blue1brown",
  "source": "channel:@3blue1brown",
  "scrapedAt": "2026-11-16T03:26:25+00:00"
}
```

A channel row (`type: "channel"`):

```json
{
  "type": "channel",
  "status": "success",
  "channelId": "UCYO_jab_esuFRV4b17AJtAw",
  "channelName": "3Blue1Brown",
  "channelHandle": "@3blue1brown",
  "channelUrl": "https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw",
  "customUrl": "https://www.youtube.com/@3blue1brown",
  "description": "My name is Grant Sanderson. Videos here cover a variety of topics in math...",
  "subscriberCount": 8760000,
  "subscriberCountText": "8.76M subscribers",
  "videoCount": 247,
  "videoCountText": "247 videos",
  "viewCount": 794338616,
  "joinedDate": "2015-03-03",
  "joinedDateText": "Joined Mar 3, 2015",
  "country": "United States",
  "links": [{"title": "All things 3b1b", "url": "https://www.3blue1brown.com"}, {"title": "Patreon", "url": "https://www.patreon.com/3blue1brown"}],
  "keywords": ["Mathematics"],
  "avatarUrl": "https://yt3.googleusercontent.com/...",
  "bannerUrl": "https://yt3.googleusercontent.com/...",
  "isVerified": true,
  "isFamilySafe": true,
  "rssUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw",
  "hasAboutData": true
}
```

The **Output** tab has ready made views: Videos, Channels, SEO and content (titles, tags, hashtags, descriptions), and Errors.

#### Error codes

| Code | Meaning |
|---|---|
| `VIDEO_UNAVAILABLE` | The video does not exist or was removed |
| `PRIVATE_VIDEO` | The video is private |
| `BLOCKED` | YouTube kept refusing requests after all retries (rare) |
| `FETCH_FAILED` | Unexpected error for this video |
| `LISTING_FAILED`, `CHANNEL_NOT_FOUND` | A channel, playlist or search could not be listed |
| `CHANNEL_INFO_FAILED` | The channel profile could not be read (its videos are still scraped) |
| `INVALID_INPUT` | The input is not a YouTube URL or ID |

Each run also saves a `RUN_SUMMARY` record in its key-value store with counts, time taken and proxy statistics.

### How much does it cost to scrape YouTube channels and videos?

This actor uses **pay per event** pricing:

- **Video**: charged once per video row delivered (`status: "success"`).
- **Channel**: charged once per channel profile row.
- **Actor start**: a tiny fixed fee per run.

Filtered videos and error rows are free. The exact prices are on the **Pricing** tab. Platform usage (compute and proxy) is included, so the price you see is the price you pay. Cap your spend with **Max videos in total** or the "Maximum cost per run" setting: the actor checks the remaining budget before each video and stops cleanly.

Tips to keep costs low:

- Use `publishedAfter` with newest first channel lists: listing stops as soon as older videos appear.
- Use `onlyNewVideos` for scheduled runs so you never pay twice for the same video.
- Turn off `includeChannelInfo` when you already have the channel profiles.

### Use with the API, integrations, LLMs and MCP

#### API

Run the actor and get the results in one request (replace `YOUR_TOKEN`):

```bash
curl -X POST "https://api.apify.com/v2/acts/zhtech~youtube-channel-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["@3blue1brown"], "maxVideosPerSource": 10}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("zhtech/youtube-channel-scraper").call(run_input={
    "searchQueries": ["budget travel japan"],
    "searchUploadDate": "month",
    "searchSort": "views",
    "maxVideosPerSource": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "video" and item["status"] == "success":
        print(item["viewCount"], item["likeCount"], item["title"])
```

JavaScript:

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('zhtech/youtube-channel-scraper').call({
    urls: ['@veritasium'],
    channelSort: 'popular',
    maxVideosPerSource: 25,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'video').map((i) => i.title));
```

#### Integrations

Connect the actor to Make, Zapier, n8n, Google Sheets, Slack, Airtable, webhooks and more from the **Integrations** tab. A typical flow: schedule a daily run on your competitors' channels with `onlyNewVideos`, then append new videos to a Google Sheet and post a summary to Slack.

#### Using it with LLMs and AI agents (MCP)

The actor works as a tool for AI agents through the Apify MCP server (mcp.apify.com). Add `zhtech/youtube-channel-scraper` as a tool in Claude, Cursor, VS Code or any other MCP client, then ask things like "Which of @mkbhd's videos from this year got the most likes per view?" or "Find 20 cooking channels from the UK with over 100K subscribers". Set `includeDescription: false` when you only need stats, to keep the context small.

### FAQ

**Can I scrape every video of a channel?**
Yes. Set **Max videos per channel, playlist or search** to 0. Choose videos, Shorts and past live streams with **Channel content**.

**Are the publish dates exact?**
Yes. `publishedAt` is the exact publish timestamp with time zone from YouTube's video metadata, and date filters use it, so there are no "2 weeks ago" approximations.

**Are subscriber counts exact?**
YouTube only shows rounded subscriber counts (for example 8.76M) to everyone, so that is what `subscriberCount` contains. Total channel views and video views are exact.

**Why is a like count missing?**
Creators can hide likes. In that case `likeCount` is null.

**How many results can a search return?**
YouTube stops a search after roughly 500 to 600 results. Use several related queries or the upload date filter to go further.

**Does it work for Shorts?**
Yes: Shorts links, a channel's Shorts tab, and Shorts search results. Rows have `isShort: true` and a /shorts/ URL.

**Can I get video transcripts or comments too?**
Use the companion actors from ZH Tech: YouTube Transcript Scraper and YouTube Comments Scraper. They accept the same channel, playlist and search inputs.

**Can I get channel email addresses?**
No. YouTube hides business emails behind a captcha and login. The actor returns the public links from the channel's About section instead.

**Is it legal to scrape YouTube?**
The actor only collects publicly available data and never logs in. Make sure your use respects YouTube's terms and privacy laws such as GDPR. If you are unsure, consult a lawyer.

### Limitations

- Subscriber counts and large comment counts are rounded by YouTube (for example 8.76M, 9.5K).
- Date, title and view filters apply to channels, playlists and searches. Videos you list explicitly are always returned.
- YouTube may ignore some search filter combinations; the actor sends the same filter parameters as the YouTube search page.
- YouTube search can no longer be sorted by upload date or rating (YouTube removed both in 2025). For the newest videos on a topic use `searchUploadDate` or `publishedAfter`.
- Private and removed videos return a free error row. Age restricted and members only videos return the metadata YouTube shows without login, flagged with `isAgeRestricted` or `isMembersOnly`.
- View, like and comment counts are a snapshot at the time of the run.

### Support

Found a problem or need a feature? Open an issue on the **Issues** tab with the run ID and the input you used.

# Actor input Schema

## `urls` (type: `array`):

Channel URLs or @handles (youtube.com/@name, /channel/UC..., /c/name, /user/name, a tab such as /@name/shorts), playlist URLs, video or Shorts URLs, bare video IDs, or YouTube search result URLs.

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

Search YouTube like the search bar does. Use the search filters below for upload date, type, duration, features and sort order.

## `maxVideosPerSource` (type: `integer`):

How many videos to return from each channel, playlist or search query. 0 means all (a search returns up to about 500 to 600 results).

## `maxVideos` (type: `integer`):

Stop the whole run after this many video rows. 0 means no limit. Your maximum cost per run setting is always respected too.

## `channelContentTypes` (type: `array`):

Which uploads of a channel to include. A channel URL that names a tab (for example /@name/shorts) uses only that tab.

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

Order of channel uploads. Popular and oldest use the sort buttons on each channel tab (videos, Shorts, live).

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

For every channel input, add one row with type = channel: subscribers, total views, video count, description, links, join date, country, avatar and banner. Charged as one channel record.

## `channelInfoOnly` (type: `boolean`):

Only return the channel profile record for each channel input and skip its videos. Handy for subscriber and contact research across many channels.

## `searchSort` (type: `string`):

Order of search results. These are the only two orders YouTube still applies. YouTube removed sorting by upload date and rating in 2025 (it silently ignores them): for recent results use the upload date filter or Published after. Old saved inputs with "date" run in relevance order and "rating" runs as popularity, with a note in the log.

## `searchUploadDate` (type: `string`):

Only results uploaded within this period.

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

Videos, Shorts or movies.

## `searchDuration` (type: `string`):

Only results of this length, the same choices as YouTube's Filters dialog. Old saved values still work: short (under 4 minutes), medium (4 to 20 minutes) and long (over 20 minutes).

## `searchFeatures` (type: `array`):

Only results with all of these features.

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

Only videos published on or after this date or within this period (for example 30 days). Checked against the exact publish date. For newest first channel lists, listing stops as soon as older videos appear.

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

Only videos published before this date.

## `titleKeywords` (type: `array`):

Keep only videos whose title contains at least one of these words or phrases (not case sensitive).

## `minViews` (type: `integer`):

Skip videos with fewer views. 0 means no minimum.

## `includeDescription` (type: `boolean`):

Full video description text (hashtags and tags are always included).

## `includeCommentCount` (type: `boolean`):

Adds the comment count (one extra small request per video). Turn off for the fastest runs.

## `includeErrorItems` (type: `boolean`):

Add a free (never charged) row for each private, removed or blocked video so you can see what happened.

## `onlyNewVideos` (type: `boolean`):

Remember which videos earlier runs returned (under the state key below) and skip them. Ideal for daily monitoring of channels or searches.

## `stateKey` (type: `string`):

Name of the memory used by Only new videos. Use a different key for each separate monitoring job.

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

How many videos to scrape at the same time.

## `maxRetries` (type: `integer`):

Retries with a fresh proxy session when YouTube refuses a request.

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

Apify Proxy datacenter IPs work for most runs. Requests that YouTube blocks are retried on residential IPs automatically.

## `residentialFallback` (type: `boolean`):

When YouTube blocks the datacenter proxy, retry those requests on residential IPs. Recommended.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/@3blue1brown",
    "@mkbhd",
    "https://www.youtube.com/@veritasium/shorts",
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi",
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "searchQueries": [
    "home espresso tutorial",
    "budget travel japan"
  ],
  "maxVideosPerSource": 20,
  "maxVideos": 0,
  "channelContentTypes": [
    "videos",
    "shorts",
    "streams"
  ],
  "channelSort": "newest",
  "includeChannelInfo": true,
  "channelInfoOnly": false,
  "searchSort": "relevance",
  "searchUploadDate": "any",
  "searchType": "video",
  "searchDuration": "any",
  "titleKeywords": [
    "review",
    "tutorial"
  ],
  "minViews": 0,
  "includeDescription": true,
  "includeCommentCount": true,
  "includeErrorItems": true,
  "onlyNewVideos": false,
  "stateKey": "default",
  "maxConcurrency": 10,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.youtube.com/@3blue1brown"
    ],
    "maxVideosPerSource": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/youtube-channel-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 = {
    "urls": ["https://www.youtube.com/@3blue1brown"],
    "maxVideosPerSource": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/youtube-channel-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 '{
  "urls": [
    "https://www.youtube.com/@3blue1brown"
  ],
  "maxVideosPerSource": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call zhtech/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zhtech/youtube-channel-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/8dhZfErTB9F52SZHP/builds/OrSrFbsMgKSlacEZe/openapi.json
