# YouTube Channel Scraper: All Videos, Views and Duration (`talcoe/youtube-channel-videos`) Actor

Get every public video from a YouTube channel with title, views, upload age, duration, thumbnail and subscriber count, filtered by channel, sort order and minimum views, priced per result.

- **URL**: https://apify.com/talcoe/youtube-channel-videos.md
- **Developed by:** [M Usama](https://apify.com/talcoe) (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 $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### Data source

Reads each channel's public Videos tab on youtube.com and pages through it the same way the site does, so results match what a visitor sees today.

### What does YouTube Channel Videos Scraper do?

Give it channel URLs, @handles or channel IDs and it returns one row per public video: video ID, title, view count, upload age, duration, thumbnail and link, plus the channel name, handle, ID and subscriber count on every row. You pick the sort (latest, popular or oldest), a cap per channel and a minimum view count. You pay per result, so a tight cap keeps a run cheap.

I built it for the boring job of getting a channel's whole catalog into a sheet without opening 200 tabs. A default run on one channel finishes in a few seconds.

### Why use it?

- Agencies: pull a client's catalog and a rival's, sorted by popular, and see which topics carry the views.
- Creator analysts: track upload cadence and duration by pulling the latest 50 videos on a schedule.
- Competitor trackers: watch a list of channels weekly and diff on `videoId` to catch new uploads.
- Researchers: export a channel's most viewed videos with subscriber context for a dataset.

It replaces copying rows by hand, and it needs no Google API key or quota.

### How to use it

1. Open the Actor and paste your channels.
2. Set sort, max videos per channel and minimum views, then click Start.
3. Download results as JSON, CSV or Excel, or read them through the API.
4. Add a Schedule and an Integration (Slack, Google Sheets, webhook) to get new videos automatically.

### Input

| Field | Description |
|---|---|
| `channels` | Channel URLs, @handles or channel IDs (UC...). A channel listed twice is scraped once. |
| `sortBy` | `latest` (default), `popular` or `oldest`, same as the chips on the Videos tab. |
| `maxVideosPerChannel` | Stop after this many videos for each channel. Default 30. |
| `minViews` | Skip videos below this view count. Skipped videos are not billed. |
| `maxResults` | Hard stop for the run. You are billed per result, so this caps the cost. |
| `proxyConfiguration` | Apify proxy is recommended for larger runs. |

Example input:

```json
{
    "channels": ["https://www.youtube.com/@MrBeast"],
    "sortBy": "popular",
    "maxVideosPerChannel": 50,
    "minViews": 100000000
}
```

### Output

Every record has the same shape:

```json
{
    "id": "q6fgVVmdpgY",
    "videoId": "q6fgVVmdpgY",
    "title": "$250,000 Hunger Games In Real Life",
    "url": "https://www.youtube.com/watch?v=q6fgVVmdpgY",
    "views": 90000000,
    "viewsText": "90M",
    "publishedText": "6d ago",
    "publishedAtApprox": "2026-11-15T06:58:31.068Z",
    "durationSeconds": 2038,
    "durationText": "33:58",
    "isLive": false,
    "thumbnailUrl": "https://i.ytimg.com/vi/q6fgVVmdpgY/hq720_custom_2.jpg",
    "channelName": "MrBeast",
    "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "channelHandle": "@MrBeast",
    "channelUrl": "https://www.youtube.com/@MrBeast",
    "subscriberCount": 527000000,
    "subscriberText": "527M subscribers",
    "sortedBy": "latest",
    "scrapedAt": "2026-11-21T06:58:31.069Z"
}
```

| Field | Meaning |
|---|---|
| `id`, `videoId` | Stable YouTube video ID, safe for deduplication between runs |
| `title`, `url` | Video title and watch link |
| `views`, `viewsText` | View count as a number, and the rounded text YouTube shows ("90M") |
| `publishedText` | Upload age as shown on the page ("6d ago") |
| `publishedAtApprox` | Upload time worked out from that age, so it is approximate |
| `durationSeconds`, `durationText` | Length of the video, empty for live streams |
| `thumbnailUrl` | Largest thumbnail on the listing |
| `channelName`, `channelId`, `channelHandle`, `channelUrl` | The channel the video belongs to |
| `subscriberCount`, `subscriberText` | Subscriber count, rounded the way YouTube shows it |
| `sortedBy` | The sort you asked for |

### Pricing

Pay per event: a small fee when a run starts, then a fixed price per result returned. You only pay for records that pass your filters. Set `maxResults` to cap any run.

### Limitations

- Views and subscribers are rounded by YouTube on listing pages (you get 90M and never 90,123,456), and upload dates come as ages such as "2 years ago". Exact figures live on each watch page, which this Actor does not open.
- It covers the Videos tab. Shorts, live replays outside that tab, playlists and comments are not included.
- Private, deleted and age restricted channels return nothing.
- Very large channels take several pages per run, so expect roughly one second per 30 videos.

### FAQ

**Is this legal?** The Actor reads pages YouTube shows to any visitor without a login. You are responsible for how you use the data.

**Can I get exact view counts?** Not from the Videos tab. It shows rounded counts.

**Something is missing or broken?** Open an issue in the Issues tab; response time is usually under a day.

# Actor input Schema

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

Channel URLs, @handles or channel IDs (UC...). Example: https://www.youtube.com/@MrBeast, @MrBeast or UCX6OQ3DkcsbYNE6H8uQQuVA.

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

Order of the channel's Videos tab: newest first, most viewed first, or oldest first.

## `maxVideosPerChannel` (type: `integer`):

Stop after this many videos for each channel.

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

Skip videos below this view count. Skipped videos are not billed.

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

Hard stop for the run. You are billed per result, so this caps the cost.

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

Apify proxy is recommended for larger runs.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@MrBeast"
  ],
  "sortBy": "latest",
  "maxVideosPerChannel": 30,
  "minViews": 0,
  "maxResults": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("talcoe/youtube-channel-videos").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": ["https://www.youtube.com/@MrBeast"],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

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

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/wsYjdoQ3lPHvw8M07/builds/605EuKrK63JtIK6YX/openapi.json
