# YouTube Channel Scraper — videos, Shorts, streams & stats (`strawhat_studio/youtube-channel-scraper`) Actor

Scrape every video, Short and live stream from many YouTube channels: exact view counts, durations, dates, channel stats. Newest, popular or oldest first, full history, and an only-new monitor mode for schedules.

- **URL**: https://apify.com/strawhat_studio/youtube-channel-scraper.md
- **Developed by:** [Strawhat Studio](https://apify.com/strawhat_studio) (community)
- **Categories:** Videos, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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

### What does YouTube Channel Scraper do?

YouTube Channel Scraper lists the **videos, Shorts and live streams** of any public YouTube channel, for **many channels in one run**. Each result carries the video's exact view count, length, date and the channel's stats.

- **Exact view counts.** 1,234,567 views, not "1.2M", for videos and past streams.
- **Full history or just the latest.** Newest first, most popular first, or oldest first from the very first upload. Set a limit, or 0 for everything.
- **Monitor mode.** Turn on *Only new items* and schedule the Actor. The first run returns the newest uploads; each later run returns only what was published since, and stops paging at the first upload it already returned.
- **Exact dates and likes.** Each channel's newest 15 uploads get their exact publish time, like count and full description for free. Turn on *video details* to add the exact date, likes and description to older videos too (best-effort, a few hundred videos per run).
- **Channel stats on every row.** Subscribers, total views, video count, country, join date and links.
- **Fast and cheap.** No browser, no proxies: about 1,000 videos in under a minute.

### Who is it for?

- **Creators and agencies** tracking competitors' uploads and what performs.
- **Marketers and brands** finding which videos of a channel drive views before a sponsorship.
- **Researchers and analysts** building datasets of a channel's whole history.
- **Alerts and automation**: new-upload notifications to Slack, email, Sheets or a webhook.

### What data do you get?

One row per video, Short or stream.

| Field | Example |
|---|---|
| `id` | `-Cd_JmKG1SM`: the video ID |
| `title` | I've Been Keeping This A Secret |
| `type` | `video`, `short` or `stream` |
| `url` | `https://www.youtube.com/watch?v=-Cd_JmKG1SM` |
| `viewCount` | 509104 |
| `viewCountIsApproximate` | `true` when YouTube shows only a rounded count (most Shorts) |
| `publishedTimeText` | 2 hours ago |
| `publishedAt` | `2026-11-25T18:32:40Z`: exact time, for each channel's newest 15 uploads |
| `publishedDate` | `2026-11-25`: the publish day, exact for the newest 15 uploads and with video details; otherwise estimated from "2 hours ago" |
| `publishedDateIsApproximate` | `true` when `publishedDate` is an estimate |
| `likes` | 31934 (newest 15 uploads; with video details, older rows too, best-effort) |
| `description` | Full description (newest 15 uploads; with video details, older rows too, best-effort) |
| `duration` / `durationSeconds` | 17:31 / 1051 |
| `liveStatus` | `none`, `live`, `upcoming` or `was_live` |
| `watchingNow`, `scheduledStartAt` | For live and upcoming streams |
| `membersOnly` | `true` for members-only videos |
| `thumbnailUrl` | Largest thumbnail |
| `channelName`, `channelHandle`, `channelId`, `channelUrl` | Marques Brownlee, @mkbhd, UCBJycsmduvYEL83R_U4JriQ |
| `channelSubscribers` | 21500000 (YouTube shows subscribers rounded) |
| `channelVideoCount`, `channelTotalViews` | 1869, 5918035627 |
| `channelCountry`, `channelJoinedDate` | United States, 2008-03-21 |
| `channelDescription`, `channelLinks`, `channelVerified`, `channelAvatarUrl`, `channelIsFamilySafe` | About-page details. `channelLinks` leaves out chat, call and email links |
| `position`, `sortBy`, `input`, `scrapedAt` | Where the row came from |

The run's summary is saved to the key-value store as `OUTPUT`: channels scraped, pages read, items returned, already-seen items skipped, channels not found, any errors, and one line per channel with its status and item count.

#### Output example

```json
{
  "id": "-Cd_JmKG1SM",
  "url": "https://www.youtube.com/watch?v=-Cd_JmKG1SM",
  "type": "video",
  "title": "I've Been Keeping This A Secret",
  "channelName": "Marques Brownlee",
  "channelHandle": "@mkbhd",
  "publishedAt": "2026-11-25T18:32:40Z",
  "publishedTimeText": "2 hours ago",
  "publishedDate": "2026-11-25",
  "publishedDateIsApproximate": false,
  "viewCount": 509104,
  "viewCountIsApproximate": false,
  "likes": 31934,
  "duration": "17:31",
  "durationSeconds": 1051,
  "liveStatus": "none",
  "channelSubscribers": 21500000,
  "channelVideoCount": 1869,
  "channelTotalViews": 5918035627,
  "channelCountry": "United States",
  "position": 1,
  "sortBy": "latest"
}
```

### How to use it

1. Add **channels**, one per line: a URL (`youtube.com/@name`, `/channel/UC…`, `/c/…`, `/user/…`), an `@handle`, or a channel ID.
2. Pick **content types**: Videos, Shorts, Live streams.
3. Pick the **order** and the **max results per channel and type** (0 = whole history).
4. Optional: **Published after** a date (`2026-01-31`) or within a period (`30 days`).
5. Optional: **Add video details** for the exact date, likes and description on older rows too (extra charge, best-effort: a few hundred videos per run).
6. For monitoring, turn on **Only new items** and add a **schedule**, for example every hour.

#### Input example

```json
{
  "channels": ["https://www.youtube.com/@mkbhd", "@veritasium", "UCsXVk37bltHxD1rDPwtNM8Q"],
  "contentTypes": ["videos", "shorts"],
  "sortBy": "latest",
  "maxResultsPerChannel": 100,
  "onlyNew": true
}
```

### How much does it cost?

**$0.50 per 1,000 results** ($0.0005 per video, Short or stream), plus Apify's standard start fee of $0.00005 per run.

**Video details (optional): $1 per 1,000 videos** they are added to. Each channel's newest 15 uploads already carry these details from the channel feed and are never charged for them.

You pay only for rows returned: channel details, failed channels and already-seen items in monitor mode cost nothing. You can cap any run's cost with the *Maximum cost per run* setting.

### Limits

- **Without video details**, exact dates, likes and descriptions come only from each channel's public feed, which lists its newest 15 uploads. Older items have YouTube's relative date ("3 years ago") and an estimated date from it, which can be off by up to a year.
- **Video details are best-effort and cover a few hundred videos per run.** In our tests YouTube began refusing detail requests after 250–600 videos in one run. The run then stops asking and says so in its summary (it also stops after 10 failed requests in a row); the remaining rows still arrive, without details and without the details charge. So on a big back catalogue, only the first few hundred videos of a run get details. To spend details where they matter, narrow the run: newest first with *Published after*, a lower limit, or fewer channels per run.
- **With video details**, the date is the publish day as YouTube shows it (not the time), and runs take a few times longer: one extra request per video.
- **Shorts** show a rounded view count ("2.7M") and no date in the channel listing, unless they are among the channel's newest 15 uploads or video details are on. With *Published after*, older Shorts are dropped once those 15 uploads reach past the cutoff; on a channel posting more than 15 times within your period, Shorts beyond them are kept.
- **View counts are empty** for live and upcoming streams (see `watchingNow`) and for the rare videos whose listing shows no count.
- **Subscriber counts** are rounded by YouTube itself (21.5M).
- **No emails or phone numbers.** Contact details in titles, descriptions and channel details are replaced with `[email removed]` and `[phone removed]`, and WhatsApp, phone and email links are left out of `channelLinks`. Rarely, a long number that only looks like a phone number (such as an order or company registration number) is replaced too.
- **No comments, transcripts or video downloads.**
- Only what a logged-out visitor in the United States sees on the channel's tabs. Private and unlisted videos never appear there, and nor do videos the channel has blocked in the US.

### FAQ

**Can I get every video a channel ever posted?** Yes. Set *Max results per channel and type* to 0. Pick *Oldest first* to start from the first upload.

**How do I get alerts for new uploads?** Turn on monitor mode, schedule the Actor, and connect a webhook, Slack, email, Google Sheets or Make/Zapier integration in Apify. Give the monitor a name to keep its memory when you edit the channel list.

**Why is `publishedAt` empty on older videos?** YouTube's channel pages show only relative dates. The exact time comes from the channel feed, which covers the newest 15 uploads. Use `publishedDate`, or turn on video details to make it exact.

**Is this legal?** The Actor reads public YouTube pages without logging in and collects no personal contact data. You are responsible for how you use the results.

# Actor input Schema

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

One channel per line: a channel URL (youtube.com/@name, /channel/UC…, /c/…, /user/…), an @handle, or a channel ID (UC…). Up to 1,000 per run.

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

Which channel tabs to read. Each type gets its own limit below.

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

The channel's own sort buttons. Oldest first walks the full history from the first upload.

## `maxResultsPerChannel` (type: `integer`):

Upper limit for each channel and content type. 0 means no limit: the whole history.

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

Only items published after this date (2026-01-31) or within this period ("30 days", "6 months"). With newest first, paging stops at the first older item. YouTube shows most dates as "3 weeks ago", so an item near the cutoff is kept unless it is surely older. Shorts carry no date in the listing: a Short gets an exact date only if it is among the channel's newest 15 uploads, and older Shorts are dropped only once those 15 reach past the cutoff.

## `videoDetails` (type: `boolean`):

Adds the exact publish date, an exact view count (Shorts too), the like count and the full description to every row, with one extra request per video. Charged separately at $1 per 1,000 videos it is added to. Each channel's newest 15 uploads already get these from the channel feed, at no extra charge. Runs take a few times longer. Best-effort: YouTube starts refusing detail requests after a few hundred videos in one run (250–600 in our tests); the run then stops asking, and later rows arrive without details and without the charge.

## `onlyNew` (type: `boolean`):

Remembers what earlier runs returned and outputs only items not seen before. Ideal with a schedule: the first run returns the newest items up to the limit, later runs only uploads published since. With newest first, paging stops at the first upload already returned, so older videos a limit left out are not sent later.

## `monitorName` (type: `string`):

Optional. Runs with the same name share one memory of seen items, even if you edit the channel list. Without a name, the memory is tied to the exact channels and content types.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@mkbhd",
    "@veritasium"
  ],
  "contentTypes": [
    "videos"
  ],
  "sortBy": "latest",
  "maxResultsPerChannel": 10,
  "videoDetails": false,
  "onlyNew": false
}
```

# Actor output Schema

## `videos` (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": [
        "https://www.youtube.com/@mkbhd",
        "@veritasium"
    ],
    "contentTypes": [
        "videos"
    ],
    "maxResultsPerChannel": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("strawhat_studio/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",
        "@veritasium",
    ],
    "contentTypes": ["videos"],
    "maxResultsPerChannel": 10,
}

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

```

## MCP server setup

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