# YouTube Channel Scraper: Videos, Shorts, Live, Playlists (`siteacs/youtube-channel-scraper`) Actor

Get YouTube channel stats (subscriber count, total views, video count, last upload, uploads per month) and list every video, Short, live stream and playlist of any channel: title, URL, views, duration and publish date. Newest, popular or oldest first; date filter. No API key.

- **URL**: https://apify.com/siteacs/youtube-channel-scraper.md
- **Developed by:** [SiteAcs](https://apify.com/siteacs) (community)
- **Categories:** Videos, Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## YouTube Channel Scraper: Videos, Shorts, Live, Playlists

Get YouTube channel stats and every upload in one run. Paste YouTube channels (URLs, @handles or channel ids) and get
one row per channel with its subscriber count, total views, video count, join date, country, description and links,
plus how active it is (last upload, uploads in the last 30 and 90 days, average views of the latest videos), and
every video, Short, live stream and playlist the channel lists, one row each, with the title, URL, views, duration
and publish date. Choose the tabs, the order (newest, most viewed or oldest first), how many items per tab, and a
"published after" date. No API key, no Google Cloud project, no daily quota.

**Quick start.** Input: a list of channels (`@mkbhd`, a channel URL or a `UC...` id). Output: one row per video, Short,
live stream or playlist, plus one About row per channel with `subscriberCount`, `totalViewCount` and `videoCount`.
Price: $0.50 per 1,000 rows.

```json
{ "channels": ["@mkbhd"], "maxItemsPerTab": 50, "sortBy": "newest" }
```

Sample rows: `{"type": "video", "title": "...", "viewCount": 1100000, "publishedAt": "2026-11-11T19:13:31Z"}` and
`{"type": "channel", "channelHandle": "@mkbhd", "subscriberCount": 21400000}`.

Use it to export a channel's full upload list, to watch competitors for new videos and Shorts every day, to build a
list of a creator's most viewed videos, to collect subscriber and view totals for a list of channels, or to feed
video ids into other tools.

**You pay only for the rows you get: $0.50 per 1,000 videos (videos, Shorts and live streams), $0.50 per 1,000
playlists and $0.50 per 1,000 channel About rows.** Channels that don't exist, repeats, bad input and anything that
fails are free. No start fee.

- **Em português:** raspador de canais do YouTube: todos os vídeos, Shorts, lives e playlists de um canal, com
  título, URL, visualizações, duração e data, mais inscritos, visualizações totais e links do canal.
- **En español:** extractor de canales de YouTube: todos los vídeos, Shorts, directos y listas de un canal, con
  título, URL, visualizaciones, duración y fecha, más suscriptores, visualizaciones totales y enlaces del canal.
- **Auf Deutsch:** YouTube-Kanal-Scraper: alle Videos, Shorts, Livestreams und Playlists eines Kanals mit Titel, URL,
  Aufrufen, Dauer und Datum, dazu Abonnenten, Gesamtaufrufe und Links des Kanals.

### Input

| Field | What it does |
|---|---|
| **Channels** | One per line: `https://www.youtube.com/@mkbhd`, `@mkbhd`, `mkbhd`, `UCBJycsmduvYEL83R_U4JriQ`, `youtube.com/channel/UC...`, `/c/name` or `/user/name`. A video URL lists the channel that posted it; a playlist URL lists that playlist's videos. A channel given twice is listed once. |
| **Videos, Shorts, Live streams, Playlists** | The channel tabs to list. Videos, Shorts and Live are on by default, Playlists off. |
| **Channel About row** | One row per channel with its About data (on by default). |
| **Max items per tab** | Per channel and per tab: 100 means up to 100 videos, 100 Shorts and 100 live streams per channel. `0` lists everything. |
| **Max videos, Max Shorts, Max live streams, Max playlists** | Optional caps for one tab each (`maxVideos`, `maxShorts`, `maxStreams`, `maxPlaylists`), e.g. all videos but only the latest 10 Shorts. A cap left empty uses **Max items per tab**. |
| **Sort order** | `newest`, `popular` (most viewed) or `oldest`, the same as YouTube's Latest, Popular and Oldest buttons. |
| **Published after** | A date (`2026-01-01`) or a span (`30 days`). With newest first the list stops at the first older video, so a daily check reads only what is new. |
| **Exact dates and view counts** | Off by default. See **Dates and view counts**. |
| **Also check the uploads playlist** | Off by default. On: after the Videos tab, the actor also reads YouTube's videos upload playlist and adds the videos the tab leaves out, marked `source: "uploads_playlist"` and charged as videos. A safety net for videos the tab might hide; it costs one extra request per 100 videos. On the channels tested it found none: where a channel's video count is above what its tab lists, the difference is unavailable (private or removed) videos, which the playlist hides as well. |

Example input (also the example on the Input tab):

```json
{
  "channels": ["https://www.youtube.com/@mkbhd", "@NASA"],
  "videos": true,
  "shorts": true,
  "live": true,
  "playlists": false,
  "maxItemsPerTab": 20,
  "sortBy": "newest"
}
```

### What you get

One dataset row per video, Short, live stream or playlist, and one About row per channel. The **Videos, Shorts and
live**, **Channels (About)** and **Playlists** views on the Output tab show each kind as a table; download as JSON, CSV,
Excel or HTML, or read through the Apify API.

| Field | What it holds |
|---|---|
| `type` | `video`, `short`, `live` (from the Videos, Shorts and Live tabs), `playlist`, or `channel` for the About row |
| `input`, `status`, `reason` | The line you gave; `ok` or why not (see **Status**); on the About row, what was listed per tab |
| `channelId`, `channelName`, `channelHandle`, `channelUrl` | The channel's UC... id, name, @handle (in Unicode, e.g. `@LetíciaSweetCake`) and URL, on every row |
| `collaborators` | For a collab video listed under several channels: each channel's id, name and handle |
| `position` | Place in the tab's list in the order you asked for |
| `source` | `tab` (listed on the channel's tab), `uploads_playlist` (added from the upload playlist, see **Also check the uploads playlist**) or `playlist` (from a playlist URL you gave) |
| `videoId`, `url`, `title` | The video id, its watch URL (`/shorts/...` for Shorts) and title |
| `viewCount`, `viewCountText` | Views as a number, and as the list shows them (`1.1M views`) |
| `durationSeconds`, `duration` | Length in seconds and as `m:ss` / `h:mm:ss` |
| `publishedAt`, `publishedAtIsEstimate`, `publishedTimeText` | Publish time (ISO 8601), whether it is exact or worked out from the list's relative date, and that date as listed (`3 weeks ago`, `Streamed 2 years ago`) |
| `liveStatus` | `none`, `live` (streaming now), `upcoming` (scheduled stream or premiere) or `ended` (past stream) |
| `scheduledStartAt` | For an upcoming stream or premiere: when it is scheduled to start (ISO 8601, UTC) |
| `isMembersOnly` | `true` for a members-only video or stream (YouTube's "Members only" badge); the title and date are public, the video is not |
| `thumbnailUrl` | Thumbnail image |
| `playlistId`, `videoCount` | On playlist rows: the playlist id and how many videos it holds |
| `subscriberCount`, `subscriberCountText`, `totalViewCount`, `videoCount`, `joinedAt`, `country`, `description`, `links`, `avatarUrl`, `bannerUrl`, `isVerified` | On the About row |
| `lastUploadAt`, `uploadsLast30Days`, `uploadsLast90Days`, `avgViewsLast10Videos`, `activityBasis` | On the About row: channel activity worked out from the rows this run listed (see **Channel activity**) |
| `scrapedAt` | When the row was made (UTC) |

Example rows (from a test run, shortened):

```json
[
  {
    "type": "video", "status": "ok", "position": 1,
    "channelId": "UCBJycsmduvYEL83R_U4JriQ", "channelName": "Marques Brownlee", "channelHandle": "@mkbhd",
    "videoId": "hdMszZ2ah5Q", "url": "https://www.youtube.com/watch?v=hdMszZ2ah5Q",
    "title": "Macbook PROLED Review: It's Not About That",
    "viewCount": 1100000, "viewCountText": "1.1M views", "durationSeconds": 914, "duration": "15:14",
    "publishedAt": "2026-11-11T19:13:31Z", "publishedAtIsEstimate": true, "publishedTimeText": "4 hours ago",
    "liveStatus": "none", "thumbnailUrl": "https://i.ytimg.com/vi/hdMszZ2ah5Q/hqdefault.jpg"
  },
  {
    "type": "short", "status": "ok", "position": 1,
    "videoId": "ai1gIWacf0I", "url": "https://www.youtube.com/shorts/ai1gIWacf0I", "title": "This can SEE Sound!",
    "viewCount": 2700000, "viewCountText": "2.7M views", "durationSeconds": 91, "duration": "1:31",
    "publishedAt": "2026-10-29T00:25:00Z", "publishedAtIsEstimate": true, "publishedTimeText": "2 weeks ago"
  },
  {
    "type": "channel", "status": "ok", "reason": "listed 60 videos, 60 Shorts, 5 live streams, 23 playlists",
    "channelId": "UCBJycsmduvYEL83R_U4JriQ", "channelName": "Marques Brownlee", "channelHandle": "@mkbhd",
    "subscriberCount": 21400000, "subscriberCountText": "21.4M subscribers", "totalViewCount": 5890096095,
    "videoCount": 1866, "joinedAt": "2008-03-21", "country": "United States", "isVerified": true,
    "links": [{"title": "Twitter", "url": "http://twitter.com/MKBHD"}]
  }
]
```

### Channel activity

The About row also carries `lastUploadAt` (newest video, Short or live stream), `uploadsLast30Days`,
`uploadsLast90Days` (videos, Shorts and live streams published in that span) and `avgViewsLast10Videos` (average views
of the 10 newest videos on the Videos tab). They come only from the rows the same run listed, with no extra request and
no extra charge, and `activityBasis` says what they are based on (how many videos, Shorts and live streams, and whether
the dates are exact). A field stays empty when the rows cannot prove it:

- A run that reads only the About tab (videos, Shorts and live turned off) leaves all five empty.
- A per-tab cap that stops the list before it reaches back 30 or 90 days leaves that count empty. For busy channels set
  **Published after** to `90 days` with newest first, or raise the caps.
- Counts cover only the tabs you turned on. With a sort other than newest, only lists that ran to their end count.
- Without **Exact dates and view counts**, dates are YouTube's relative ones ("3 weeks ago") and views are rounded, so
  counts near the 30 or 90 day edge and the average are approximate.
- A row without a date (a Short missing from the channel's uploads list) is not counted; `activityBasis` says how many.
- A run that Apify restarted while it read the channel leaves them empty.

### Dates and view counts

A channel's video list shows rounded views (`1.1M views`) and a relative date (`3 weeks ago`). By default the actor
gives you both as listed, plus `viewCount` as a number and `publishedAt` worked out from the relative date with
`publishedAtIsEstimate: true`. YouTube rounds the date down, so "3 weeks ago" means between 3 and 4 weeks ago, and
`publishedAt` is the latest time that fits.

- **Shorts** show no date or length in their own list, so the actor finds each Short in the channel's uploads list
  (100 uploads per request), which shows both.
- **Exact dates and view counts** (`exactDetails: true`) adds one small request per video, Short or live stream for
  its exact publish time and view count. Same price; the run takes longer, and on large runs YouTube refuses more of
  these requests (they are retried on other IPs).
- **Published after** uses exact dates where the relative one is not clear: a video listed "1 week ago" against a
  10-day cutoff gets its exact date read before it is kept or dropped.

### Status

| `status` | Charged | What it means |
|---|---|---|
| `ok` | yes | The row is returned |
| `not_found` | no | The channel or playlist does not exist, was removed, or is private |
| `invalid_input` | no | Not a YouTube channel, video or playlist URL, handle or id |
| `duplicate` | no | The same channel as an earlier line of the input (e.g. its @handle and its id); listed once |
| `blocked`, `error` | no | YouTube refused or failed a request after every retry; `reason` says how many items of that tab were listed first |

A channel without a Shorts or Live tab gives no rows for it, and its About row says so (`no Shorts tab`).

### Cost

$0.50 per 1,000 videos (videos, Shorts and live streams), $0.50 per 1,000 playlists and $0.50 per 1,000 channel About
rows ($0.0005 a channel). A channel with 1,866 uploads, listed in full with its About row, costs about $0.93. Set a maximum cost per run in the run options; the actor stops before going over it.

### How it works

The actor reads the same lists you see on a channel's Videos, Shorts, Live and Playlists tabs, through the calls the
YouTube website makes, page by page (30 videos or 48 Shorts per request), in the order you pick. Tabs of one channel
are read side by side, so rows of different tabs can interleave; `position` keeps each tab's order. It does not sign in
and reads only public data the channel itself publishes. Requests YouTube refuses from one IP are retried on other
IPs, then through residential proxy, at no extra charge to you. Each tab's pages are read through one IP. When a tab
listed to its end comes out more than 1% short of YouTube's own upload playlist for that tab, the actor reads the tab
once more and adds what the first read missed (YouTube now and then skips a page of a long list).

### Related actors

- **YouTube Video Details** (siteacs/youtube-video-details): exact likes, comment count, tags, category, description
  and chapters per video. Feed it the `url` column from this actor; the rows join on `videoId`.
- **YouTube Transcript Scraper** (siteacs/youtube-transcript-scraper): the captions of each video as text, for a
  channel URL or the video URLs from this actor.

### Questions

- **How do I get a YouTube channel's subscriber count?** Put the channel in **Channels** and keep **Channel About row**
  on: the `channel` row has `subscriberCount` (rounded by YouTube), `totalViewCount` and `videoCount`.
- **Can I export all videos of a channel to CSV?** Set **Max items per tab** to `0`, run, and download the dataset as
  CSV, Excel or JSON.
- **Can I check a competitor every day?** Set **Published after** to `1 day` (or `7 days` weekly) with newest first;
  each run reads only the new uploads.
- **Do I need a YouTube API key?** No, and there is no daily quota.

### Limits

- Subscriber counts are rounded by YouTube (21.4M); total views and the About video count are exact.
- The About video count is YouTube's count of public uploads. Members-only videos and some old live streams may be in
  that count but not in the public tabs, as may unavailable videos (YouTube's upload playlists count them too, but
  list them nowhere).
- Live streams in progress and upcoming streams have no view count or length yet.
- YouTube changes its website from time to time; if a field stops coming through, report it on the Issues tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/siteacs/youtube-channel-scraper/changelog.md

# Actor input Schema

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

One per line: a channel URL (youtube.com/@handle, youtube.com/channel/UC..., /c/name or /user/name), an @handle or a channel id (UC...). A playlist URL lists that playlist's videos. Use Bulk edit to paste a long list. Video URLs are not channels: for one video's full details use YouTube Video Details. A video URL lists the channel that posted it. A channel given twice is listed once.

## `videos` (type: `boolean`):

List the channel's Videos tab (regular uploads).

## `shorts` (type: `boolean`):

List the channel's Shorts tab. The Shorts list shows no date or length, so the actor takes both from the channel's uploads list.

## `live` (type: `boolean`):

List the channel's Live tab: past streams, streams live now and scheduled ones.

## `playlists` (type: `boolean`):

List the channel's playlists (title, URL, number of videos). Charged as playlists, not videos.

## `includeAbout` (type: `boolean`):

Add one row per channel with its About data: subscribers, total views, video count, join date, country, description and links. Charged as one channel event ($0.50 per 1,000).

## `maxItemsPerTab` (type: `integer`):

For each channel and each tab chosen above: 100 means up to 100 videos, 100 Shorts, 100 live streams and 100 playlists per channel. 0 lists everything.

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

Optional: a cap on videos per channel that replaces "Max items per tab" for that tab. 0 lists every one; empty uses "Max items per tab". Also caps the videos of a playlist URL.

## `maxShorts` (type: `integer`):

Optional: a cap on Shorts per channel that replaces "Max items per tab" for that tab. 0 lists every one; empty uses "Max items per tab".

## `maxStreams` (type: `integer`):

Optional: a cap on live streams per channel that replaces "Max items per tab" for that tab. 0 lists every one; empty uses "Max items per tab".

## `maxPlaylists` (type: `integer`):

Optional: a cap on playlists per channel that replaces "Max items per tab" for that tab. 0 lists every one; empty uses "Max items per tab".

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

The order YouTube's own Latest, Popular and Oldest buttons give. Playlists are always in the channel's own order.

## `newerThan` (type: `string`):

Only videos published after this date, e.g. 2026-01-01, or a span such as 30 days. With Newest first the list stops at the first older video, so a daily or weekly check reads only the new uploads.

## `exactDetails` (type: `boolean`):

Off: rows carry the date as YouTube lists it ('3 weeks ago', with a parsed date flagged as an estimate) and rounded views ('1.1M'). On: one extra small request per video, Short or live stream gives the exact publish time and view count. No extra charge; runs take longer, and YouTube refuses more of these requests on busy runs (they are retried on other IPs).

## `includeUploadsPlaylist` (type: `boolean`):

Off: videos come from the channel's Videos tab. On: after the Videos tab, YouTube's videos upload playlist is read too (one request per 100 videos), and any video the tab leaves out is added with source "uploads_playlist" (charged as a video). A safety net: on the channels tested it found none. Applies when the Videos tab is listed to its end or to the newerThan date.

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

How many requests run in parallel; channels are read half as many at a time.

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

Apify datacenter proxy (the default) works for most channels; requests YouTube refuses are retried on other IPs. Without a proxy YouTube refuses many requests from a cloud server.

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

On: a request YouTube still refuses after 6 datacenter IPs is tried through Apify residential proxy, at no extra charge to you. Off: such a tab ends with a free row with status blocked.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@mkbhd",
    "@NASA"
  ],
  "videos": true,
  "shorts": true,
  "live": true,
  "playlists": false,
  "includeAbout": true,
  "maxItemsPerTab": 20,
  "sortBy": "newest",
  "exactDetails": false,
  "includeUploadsPlaylist": false,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

## `videos` (type: `string`):

One item per video, Short or live stream: channel, title, URL, views, duration, publish date.

## `channels` (type: `string`):

One item per channel: subscriber count, total views, video count, last upload, uploads in 30 and 90 days, join date, country, description and links.

## `playlists` (type: `string`):

One item per playlist: title, URL and number of videos.

# 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/@mkbhd",
        "@NASA"
    ],
    "maxItemsPerTab": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("siteacs/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 = {
    "channels": [
        "https://www.youtube.com/@mkbhd",
        "@NASA",
    ],
    "maxItemsPerTab": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("siteacs/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 '{
  "channels": [
    "https://www.youtube.com/@mkbhd",
    "@NASA"
  ],
  "maxItemsPerTab": 20
}' |
apify call siteacs/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,siteacs/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/MMiazTfEsW8gDXwJ6/builds/olser4JX332gIcvQA/openapi.json
