# YouTube Channel Videos Scraper: Views, Dates, Duration (`skillmerc/youtube-channel-videos-scraper`) Actor

List every video, Short or live stream of public YouTube channels with views, publish dates and duration. Exact dates where YouTube shows them, approximate ones clearly flagged. No login, no API key.

- **URL**: https://apify.com/skillmerc/youtube-channel-videos-scraper.md
- **Developed by:** [SKILLMERC](https://apify.com/skillmerc) (community)
- **Categories:** Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 video listeds

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

For marketers, researchers and creators who need a channel's video list in a spreadsheet: give public YouTube channels, get one row per video, Short or live stream with views, publish date and duration.

### What it does

- Reads the public Videos, Shorts and Live tabs of any public channel, logged out, the way a visitor sees them.
- One row per item: title, URL, type, views, duration, publish date, thumbnail, live and upcoming flags, and its place in the listing.
- Sort the way the channel tab does: newest, most popular or oldest first.
- Channel facts (title, handle, id, subscribers and video count as shown, description, avatar) go into a free named dataset `youtube-channel-videos-channels` and the run summary. They are never charged.
- Pages through the whole channel when you ask for it (set the max to 0).
- No login, no YouTube API key, no browser.

It does not fetch transcripts, comments or the video files. For transcripts, our YouTube Transcript Scraper Pro actor on Apify does that.

### Input

| Field | What it means |
|-|-|
| `channels` | @handles, channel URLs (`youtube.com/@name`, `/channel/UC...`, `/c/name`, `/user/name`) or channel ids (`UC...`). |
| `maxVideosPerChannel` | Most items per channel for each content type. Default 20. `0` lists everything the channel shows. |
| `contentTypes` | `videos`, `shorts`, `streams` (the Live tab). Default `videos`. |
| `sortBy` | `newest` (default), `popular` or `oldest`. If a tab does not offer that order, newest is used and the run summary says so. |
| `publishedAfter` | Optional. `YYYY-MM-DD` or a period like `30 days`. Older items are skipped and not charged. |
| `exactDates` | Optional, off by default. Tries to read the exact publish date and exact view count of each item older than the latest 15 uploads (one small extra request each, slower). YouTube often refuses this from cloud servers: those items keep their approximate, flagged date and the run summary says how many. |

Example:

```json
{
  "channels": ["@veritasium", "https://www.youtube.com/@NASA"],
  "maxVideosPerChannel": 100,
  "contentTypes": ["videos", "shorts"],
  "sortBy": "newest"
}
```

### Output

One row per item in the default dataset:

```json
{
  "channelId": "UCHnyfMqiRRG1u-2MsSQLbXA",
  "channelHandle": "@veritasium",
  "channelTitle": "Veritasium",
  "videoId": "uXuQF_PPg5U",
  "url": "https://www.youtube.com/watch?v=uXuQF_PPg5U",
  "title": "Randomness is a lie. Let me explain",
  "type": "video",
  "publishedText": "1 day ago",
  "publishedAt": "2026-11-18T20:29:44.000Z",
  "publishedAtApproximate": false,
  "scheduledText": null,
  "durationText": "38:48",
  "durationSeconds": 2328,
  "viewCount": 2100000,
  "viewCountApproximate": true,
  "viewCountText": "2.1M views",
  "thumbnailUrl": "https://i.ytimg.com/vi/uXuQF_PPg5U/hq720.jpg",
  "isLiveNow": false,
  "isUpcoming": false,
  "badges": [],
  "listingTab": "videos",
  "sortedBy": "newest",
  "position": 1,
  "scrapedAt": "2026-11-20T14:10:00.000Z"
}
```

- `type` is `video`, `short` or `stream`.
- `viewCount` is the number YouTube shows. "2.1M views" becomes 2100000 with `viewCountApproximate: true`. `exactDates` can give exact counts for items older than the latest 15 uploads when YouTube allows it (see "How dates work").
- Shorts tiles show only a title and views, so Shorts rows have no duration and, without `exactDates`, a date only when they are among the latest 15 uploads.
- Live streams that are on air or scheduled show `isLiveNow` or `isUpcoming`, and `scheduledText` as YouTube shows it.
- The `OUTPUT` record in the key-value store holds the run summary: counts, channel info, failures and warnings.

### How dates work

Channel tabs show relative dates such as "3 weeks ago". We never pass those off as exact.

- The latest 15 uploads of each channel get an exact date from the channel's public RSS feed: `publishedAtApproximate: false`.
- Older items get a date in the middle of the window the text allows, flagged `publishedAtApproximate: true`. "3 weeks ago" means between 3 and 4 weeks ago.
- With `exactDates` on, the actor asks YouTube for each older item's exact date from its public watch data. YouTube often refuses this from cloud servers such as Apify's (it did in every one of our test runs on 20 Nov 2026). Then the item keeps its approximate, flagged date, the `OUTPUT` warnings say how many, and after 5 refusals in a row the run stops asking.
- `publishedText` always holds the text as YouTube showed it.

With `publishedAfter` and approximate dates, an item is skipped only when even the latest date its text allows is before your date. So you may get a few items from just before it, never miss one after it. When the list is sorted newest first, the run stops paging at the first item that is too old.

### Pricing

Pay per result: you pay for each video row delivered.

| Apify plan | Price per 1,000 videos |
|---|---|
| Free | USD 0.50 |
| Bronze | USD 0.45 |
| Silver | USD 0.40 |
| Gold and above | USD 0.35 |

Plus USD 0.00005 per run start. Channel info rows and failed channels are free. Members-only videos are skipped and not charged. The run stops when it reaches the maximum cost you set.

### When something fails

A channel that does not exist, is terminated, or has none of the tabs you asked for goes into the free named dataset `youtube-channel-videos-failed` and the `OUTPUT` record, with the reason. Nothing is charged for it and the run still finishes as succeeded. The same video found twice (for example the same channel listed twice) is delivered once.

| Message | What it means |
|-|-|
| Not a YouTube channel | The entry is not an @handle, channel URL or channel id. A video link is not a channel. |
| Channel not found | YouTube does not know this handle or URL. |
| Channel unavailable | The channel is terminated, private or blocked where we read it from (US). |
| The channel has none of the requested tabs | For example you asked only for Shorts and the channel has none. |
| This channel has no Live tab (warning) | One of several requested tabs is missing; the others were listed. |

### Speed and limits

- One request at a time, at least 300 ms apart, with backoff when YouTube asks us to slow down. A tab page holds 30 videos (48 Shorts), so 1,000 videos take about 34 requests.
- We read YouTube in English from the US. Counts and texts follow that.
- If YouTube refuses Apify's own IP, the run switches to Apify's datacenter proxy. It never uses residential proxies or logs in.
- Members-only, private and age-restricted videos are not listed.

### Is it legal?

This actor reads only public pages that anyone can open without an account. It does not collect comments or subscriber lists, and it does not look for emails or phone numbers. Channel descriptions are copied as the creator wrote them, so they can hold a business email or link the creator chose to publish. Channel names and handles can be personal data: you need a lawful basis to collect and use them (for example under GDPR or POPIA), and you are responsible for how you use the results. Respect YouTube's terms and the creators' rights.

This actor is not made, endorsed or sponsored by YouTube or Google.

# Actor input Schema

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

Public YouTube channels: an @handle, a channel URL (youtube.com/@name, /channel/UC..., /c/name or /user/name) or a channel id (UC...). One per line.

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

Most items to list from each channel for each content type you pick. 0 lists everything the channel shows.

## `contentTypes` (type: `array`):

Which channel tabs to list: videos (the Videos tab), shorts (the Shorts tab) or streams (the Live tab: past, live now and upcoming).

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

The order the channel tab offers: newest first, most popular first, or oldest first. If a tab does not offer it, newest is used and the run says so.

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

Optional. A date (YYYY-MM-DD) or a period such as "30 days". Older items are skipped and not charged. Channel tabs show relative dates ("3 weeks ago"), so without exact dates an item is skipped only when even the latest date its text allows is before this date. Shorts show no date: they are skipped unless they are among the latest 15 uploads or Exact dates gets their date.

## `exactDates` (type: `boolean`):

Off: the latest 15 uploads per channel get exact dates from its public RSS feed, older ones an approximate date flagged publishedAtApproximate. On: one extra small request per older item tries to read its exact publish date and exact view count. YouTube often refuses this from cloud servers; then the date stays approximate and the run summary says how many. Slower.

## Actor input object example

```json
{
  "channels": [
    "@veritasium"
  ],
  "maxVideosPerChannel": 20,
  "contentTypes": [
    "videos"
  ],
  "sortBy": "newest",
  "exactDates": false
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "@veritasium"
    ],
    "maxVideosPerChannel": 20,
    "contentTypes": [
        "videos"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("skillmerc/youtube-channel-videos-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 = {
    "channels": ["@veritasium"],
    "maxVideosPerChannel": 20,
    "contentTypes": ["videos"],
}

# Run the Actor and wait for it to finish
run = client.actor("skillmerc/youtube-channel-videos-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 '{
  "channels": [
    "@veritasium"
  ],
  "maxVideosPerChannel": 20,
  "contentTypes": [
    "videos"
  ]
}' |
apify call skillmerc/youtube-channel-videos-scraper --silent --output-dataset

```

## MCP server setup

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