# Analyze a YouTube channel's most popular videos

**Use case:** 

Pulls the most popular videos of a YouTube channel with views, likes, comment count, duration, publish date, title, description, tags and hashtags, plus one row with the channel's subscribers and total views. Use it for competitor analysis: see which topics and titles win and how often the channel posts.

## Input

```json
{
  "urls": [
    "https://www.youtube.com/@veritasium"
  ],
  "searchQueries": [
    "home espresso tutorial",
    "budget travel japan"
  ],
  "maxVideosPerSource": 15,
  "maxVideos": 0,
  "channelContentTypes": [
    "videos"
  ],
  "channelSort": "popular",
  "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,
  "monitorName": "default",
  "maxConcurrency": 10,
  "maxRetries": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

## Output

```json
{
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "duration": {
    "label": "Duration",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "isShort": {
    "label": "Short",
    "format": "boolean"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Channel & Video Scraper: Search, Shorts, Stats Actor is ready to run with the inputs already set for "Analyze a YouTube channel's most popular videos". [Sign up or log in](https://console.apify.com/create-task-from-example/TB6h4WYg2pPUgDtpC) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Analyze a YouTube channel's most popular videos" task

The YouTube Channel & Video Scraper: Search, Shorts, Stats Actor will start running based on the input automatically. You can also change all the input fields, like channels, playlists or videos, search queries, and more, to match your specific use case.

### 3. Receive the "Analyze a YouTube channel's most popular videos" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as thumbnail, title, channel, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Analyze a YouTube channel's most popular videos" task via API](https://apify.com/zhtech/youtube-channel-scraper.md).

## FAQ

### What does the YouTube channel popular videos task return?

The YouTube channel popular videos task returns one row per video with title, URL, views, likes, comment count, duration, publish date, description, tags and hashtags, plus a channel row with subscribers and total views.

### How do I analyze another channel or its newest uploads?

Replace the URL in the YouTube channel popular videos task with any channel URL or @handle, and set Channel video order to Newest for recent uploads. Add Shorts or live streams in Channel content.

### Can I run the YouTube channel popular videos task on a schedule or through the API?

Save the YouTube channel popular videos task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the YouTube channel popular videos task cost?

The YouTube channel popular videos task is pay per event: a small start fee per run plus a fee per video saved. Error rows for private or removed videos are free. Prices are on the Pricing tab.

## About this Actor

This example demonstrates how to use [YouTube Channel & Video Scraper: Search, Shorts, Stats](https://apify.com/zhtech/youtube-channel-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/youtube-channel-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/youtube-channel-scraper.md

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`).
