# Get the most popular videos of a YouTube channel

**Use case:** 

Export the top videos of any YouTube channel sorted by views: title, view count, duration, upload date and thumbnail, plus channel subscribers in every row. Example: the 30 most popular Veritasium videos.

## Input

```json
{
  "channels": [
    "@veritasium"
  ],
  "maxVideos": 30,
  "maxShorts": 0,
  "maxStreams": 0,
  "includeVideoDetails": false,
  "includeChannelInfo": true,
  "sortBy": "popular",
  "maxConcurrency": 5
}
```

## Output

```json
{
  "thumbnail": {
    "label": "Thumbnail",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "url": {
    "label": "Video URL",
    "format": "string"
  },
  "type": {
    "label": "Type",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "duration": {
    "label": "Duration",
    "format": "string"
  },
  "publishedTimeText": {
    "label": "Published",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "channelSubscriberCount": {
    "label": "Subscribers",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "publishedAt": {
    "label": "Publish date",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  }
}
```

## How it works

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

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

### 2. Start the "Get the most popular videos of a YouTube channel" task

The YouTube Channel Scraper: Videos, Shorts, Streams Actor will start running based on the input automatically. You can also change all the input fields, like 🔗 channels, 🎬 videos per channel, and more, to match your specific use case.

### 3. Receive the "Get the most popular videos of a YouTube channel" 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, video url, 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 "Get the most popular videos of a YouTube channel" task via API](https://apify.com/wiseus-labs/youtube-channel-scraper.md).

## FAQ

### How many popular videos can I get?

The popular sort returns the channel's top videos as YouTube lists them, up to about 30. For the full back catalog, use the latest sort with a higher Max videos.

### Can I get exact likes, comments and upload dates?

Yes. Turn on video details and each row gets exact likes, comment count, publish date, description and hashtags. Detailed rows are billed as a separate event, see the Pricing tab.

### How much does this task cost?

Videos cost $0.50 per 1,000 on the free plan, so these 30 videos cost about $0.015. Paid Apify plans get lower prices, see the Pricing tab.

### Can I scrape several channels at once?

Yes. Add as many channels as you need. Each row includes the channel name and subscriber count, so results stay easy to filter.

## About this Actor

This example demonstrates how to use [YouTube Channel Scraper: Videos, Shorts, Streams](https://apify.com/wiseus-labs/youtube-channel-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/wiseus-labs/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/wiseus-labs/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`).
