# YouTube Channel Videos Scraper - No API Key, Free (`airy_armadillo/youtube-channel-video-scraper`) Actor

Free to run (you only pay Apify platform usage): export any channel's video list, long-form or Shorts, one row per video with view counts, durations, publish dates, descriptions and channel stats. No YouTube API key, no login, no residential proxy. Optional top comments, media URLs and captions.

- **URL**: https://apify.com/airy_armadillo/youtube-channel-video-scraper.md
- **Developed by:** [wen cheng](https://apify.com/airy_armadillo) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Videos Scraper — free to run, no API key, exact stats

Export any YouTube channel's whole video list into one clean row per video: **exact view counts, publish dates,
durations, thumbnails, descriptions** — long-form videos or Shorts, sorted newest / most popular / oldest.

**What it costs:** the Actor itself is free — you only pay the standard Apify platform usage of the run.
Measured on the platform in November 2026: **50 videos in 17 seconds for $0.0013** (≈ $0.03 per 1,000 videos).
No YouTube Data API key, no YouTube login, no cookies, and no residential proxy required.

### What you get

One dataset row per video (`rowType: "video"`), plus `rowType: "error"` rows for channels that cannot be read.

| Field | Example | When |
|---|---|---|
| `videoId`, `url` | `K8DG7LUTbaM`, `https://www.youtube.com/watch?v=K8DG7LUTbaM` | always |
| `title` | `Who Can Be a NASA Astronaut? Myth or Fact` | always |
| `isShort`, `videoType` | `false`, `long` | always |
| `durationText`, `durationSecs` | `1:04`, `64` | always for long videos; Shorts get it from the **Exact stats & description** switch |
| `viewCountText`, `viewCount` | `74K views`, `74000` | always (list value); exact integer with the **Exact stats & description** switch (`includeVideoDetails`) |
| `publishedText` | `2 days ago` | always |
| `publishDate` | `2026-11-16` | **Exact stats & description** switch (`includeVideoDetails`) — off by default |
| `description` | full description text | **Exact stats & description** switch (`includeVideoDetails`) — off by default |
| `position` | `1` | always — rank inside the list (1 = newest / most popular / oldest) |
| `thumbnailUrl` | `https://i.ytimg.com/vi/…/hq720.jpg` | always |
| `channel` | `{ channelId, name, handle, url, subscriberCount, subscriberCountText, videoCountText, avatarUrl }` | always (`includeChannelHeader`) |
| `topComments` | `[{ author, text, likes, publishedText, replyCount, isCreator }]` | **Top comments per video** (`includeCommentsTopN` > 0) |
| `mediaUrls` | direct googlevideo streams with itag / quality / size | **Media URLs** switch — experimental, see limits |
| `captions` | caption tracks + transcript text | **Captions** switch — experimental, see limits |
| `scrapedAt`, `source` | `2026-11-19T14:22:10Z`, `youtube.com (innertube, anonymous)` | always |

### Output sample (default run)

```json
{
  "rowType": "video",
  "position": 1,
  "videoId": "K8DG7LUTbaM",
  "url": "https://www.youtube.com/watch?v=K8DG7LUTbaM",
  "title": "Who Can Be a NASA Astronaut? Myth or Fact",
  "isShort": false,
  "videoType": "long",
  "durationText": "1:04",
  "durationSecs": 64,
  "viewCountText": "74K views",
  "viewCount": 74000,
  "publishedText": "2 days ago",
  "publishDate": null,
  "thumbnailUrl": "https://i.ytimg.com/vi/K8DG7LUTbaM/hq720.jpg?…",
  "channel": {
    "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
    "name": "NASA",
    "handle": "NASA",
    "url": "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ",
    "subscriberCount": 15100000,
    "subscriberCountText": "15.1M subscribers",
    "videoCountText": "6,203 videos",
    "avatarUrl": "https://yt3.googleusercontent.com/…"
  },
  "scrapedAt": "2026-11-19T14:22:10Z",
  "source": "youtube.com (innertube, anonymous)"
}
```

### Output sample (all extras on: exact stats + captions + top comments)

Long text fields are shortened here for readability (`description`, `captions.text`), and `captions.tracks`
shows 3 of the 26 tracks this video has. Everything else is verbatim from a real run.

```json
{
  "rowType": "video",
  "position": 1,
  "videoId": "q6fgVVmdpgY",
  "url": "https://www.youtube.com/watch?v=q6fgVVmdpgY",
  "title": "$250,000 Hunger Games In Real Life",
  "isShort": false,
  "videoType": "long",
  "durationText": "33:57",
  "durationSecs": 2037,
  "viewCountText": "82,626,641 views",
  "viewCount": 82626641,
  "publishedText": "4 days ago",
  "publishDate": "2026-11-14",
  "description": "I put 12 teams in a real-life Hunger Games arena for $250,000\n\nAnker is a global smart hardware company driven by Ultimate Innovation, and the Anker soundcore AeroClip 2 is the lat…",
  "keywords": null,
  "category": "Entertainment",
  "isLiveContent": false,
  "thumbnailUrl": "https://i.ytimg.com/vi_webp/q6fgVVmdpgY/sddefault.webp",
  "channel": {
    "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "name": "MrBeast",
    "handle": "MrBeast",
    "url": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
    "subscriberCountText": "527M subscribers",
    "subscriberCount": 527000000,
    "videoCountText": "1K videos",
    "avatarUrl": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj"
  },
  "scrapedAt": "2026-11-19T15:44:29Z",
  "source": "youtube.com (innertube, anonymous)",
  "captions": {
    "available": true,
    "languageCode": "en",
    "kind": null,
    "name": "English",
    "tracks": [
      {
        "languageCode": "ar",
        "kind": null,
        "name": "Arabic"
      },
      {
        "languageCode": "bn",
        "kind": null,
        "name": "Bangla"
      },
      {
        "languageCode": "zh-Hans",
        "kind": null,
        "name": "Chinese (Simplified)"
      }
    ],
    "cueCount": 2468,
    "durationMs": 2036234,
    "text": "I recreated Hunger Games in REAL life! I recreated Hunger Games in REAL life! Twelve teams competing for that $250,000 over there. Twelve teams competing for th…"
  },
  "topComments": [
    {
      "author": "@MrBeast",
      "authorChannelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
      "text": "what should i recreate next?",
      "likes": 28000,
      "likesText": "28K",
      "publishedText": "4 days ago",
      "replyCount": null,
      "isCreator": true
    },
    {
      "author": "@labananagamingde-1.0",
      "authorChannelId": "UCELLEL5vHmQ7lUdDhCtP_sw",
      "text": "tbh, the spear is too op and made every other weapon useless. It is the longest weapon, so you can just get so…",
      "likes": 63000,
      "likesText": "63K",
      "publishedText": "4 days ago (edited)",
      "replyCount": null,
      "isCreator": false
    }
  ],
  "playabilityStatus": "OK"
}
```

### Inputs, in three layers

**1. Which channels** — `channelUrls` (up to 20, any form: `https://www.youtube.com/@NASA`, `@NASA`, `UC…`, `/c/…`,
`/user/…`), or the single-channel shortcuts `channelHandle` / `channelId`.
Pasted a **video** link by mistake (`/shorts/<id>`, `/watch?v=`, `youtu.be/…`) or a bare 11-character video ID?
That is accepted too: the Actor resolves the video's channel and scrapes that channel (the resolution is noted
in `SUMMARY`).

**2. How much of the list** — `maxResults` (per channel, 1–1000; total rows = channels × maxResults),
`videoType` (`long` from the Videos tab, `short` from the Shorts tab), `sortOrder` (`latest` / `popular` / `oldest`
— the same sort chips the channel page shows).

**3. Optional per-video extras** (each costs extra requests, see limits):

| Switch | Adds | Cost |
|---|---|---|
| `includeVideoDetails` | exact `viewCount`, ISO `publishDate`, `description`, `keywords`, `category` | +1 request per video |
| `includeCommentsTopN` | top N comments per video | +1 page request, then ~1 per 20 comments |
| `includeMediaUrls` | direct stream URLs + sizes | reads the media endpoint; see limits |
| `includeCaptions` | caption tracks + transcript text | reads the media endpoint; see limits |
| `requestDelayMs` / `enrichBudgetSecs` | throttle and a hard time budget for the extras | free |

### How a run behaves

- Channels are read page by page (~30 videos per page) and pagination stops the moment `maxResults` is reached.
- Optional extras have a **time budget per channel**; if the upstream starts throttling, the remaining rows are
  written without the extras and the reason is recorded in `SUMMARY` instead of stalling the run.
- Every run writes a `SUMMARY` record to the key-value store: per-channel row counts, errors and notes, plus the
  resolved settings. You can verify a run programmatically without parsing the dataset.
- A channel that does not exist, is age-restricted or has no videos does **not** fail the run — it produces an
  error row and the rest continues.

### Pricing

| Scenario (measured on the Apify platform, 1024 MB) | Result |
|---|---|
| 1 channel × 50 videos, default settings | 17.4 s — **$0.0013** |
| 2 channels × 30 videos, default settings | 6.3 s — $0.0008 |
| 10 videos with exact stats + 5 comments each | 32.4 s — $0.0006 |

That is roughly **$0.01–0.06 per 1,000 videos** depending on the optional extras — there is no per-item price.
The free Apify plan's monthly credits therefore cover thousands of videos.

### Limits, stated up front

- **`maxResults` is per channel.** 3 channels × 50 = up to 150 rows in one run.
- **View counts** come from the channel list and are rounded on YouTube's side (`74K views`). Turn on
  `includeVideoDetails` if you need the exact integer, the exact publish date and the description.
- **`mediaUrls` and `captions` need an IP that YouTube serves the player to.** From shared datacenter IPs YouTube
  answers the media endpoint with `LOGIN_REQUIRED`, so those two fields come back empty; every other field is
  unaffected, the run still succeeds, and the reason appears in `SUMMARY`. Self-hosting the Actor or using your
  own residential proxy restores them. Media URLs are signed and expire in about 6 hours.
- **Comments are the most expensive extra** (1 page request + ~1 per 20 comments). Videos with comments turned off
  return an empty `topComments` plus a note — that is a YouTube setting, not an error.
- **Shorts** rows come from the Shorts shelf: title and view count are read from the card, then refined like any
  other row when `includeVideoDetails` is on (that is where their duration comes from).
- **No like counts or comment counts per video.** Those numbers require the media endpoint, which is exactly the
  endpoint that gets blocked from datacenter IPs — we prefer fields we can deliver on every run.
- **Pagination is bounded** at 40 pages per channel (≈1,200 videos); raise `maxResults` only as far as the channel
  actually has videos.
- **No proxy needed** for the list, exact stats or comments. `proxyConfiguration` exists only for the two media
  switches, and it needs a plan that includes Apify Proxy (the free plan has none — the Actor then continues
  without a proxy instead of failing).

### FAQ

**Do I need a YouTube API key or an account?** No. The Actor talks to YouTube the same way a browser does, in an
anonymous session — no key, no cookie, no login.

**Can I get a whole channel (thousands of videos)?** Yes, up to 1,000 videos per channel per run, ~1,200 by
pagination. Larger channels need several runs (raise `maxResults` and page through with `sortOrder`).

**Why are view counts rounded?** Because the channel list itself shows them rounded. `includeVideoDetails` fetches
the exact number from the video page.

**Is the data legal to use?** The Actor only reads publicly visible pages of YouTube; the legality of storing and
using that data depends on your jurisdiction and your use case.

# Actor input Schema

## `channelUrls` (type: `array`):

Channels to scrape. Any form works: https://www.youtube.com/@NASA, @NASA, UC… channel ID, or a full channel URL. A video link (/shorts/<id>, /watch?v=…, youtu.be/…) or a bare 11-character video ID is also accepted — the Actor resolves it to the video's channel. Up to 20 channels per run; maxResults applies per channel.

## `channelHandle` (type: `string`):

Shortcut for one channel, e.g. @NASA. Ignored when Channel URLs is filled.

## `channelId` (type: `string`):

Shortcut for one channel by ID, e.g. UCLA_DiR1FfKNvjuUpBHmylQ.

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

Upper limit of videos per channel (total rows = channels × maxResults). One page of the upstream list holds ~30 videos, so larger values mean more requests and more compute time.

## `videoType` (type: `string`):

Long-form videos come from the channel's Videos tab, Shorts from the Shorts tab.

## `sortOrder` (type: `string`):

Same ordering as the channel page: visit the list and click the sort chip. Channels that don't offer a given chip fall back to latest (a note is written to the run summary).

## `includeChannelHeader` (type: `boolean`):

Adds a `channel` object (name, ID, handle, subscribers, video count, avatar) to each row so the dataset joins nothing in CSV / BI tools.

## `includeVideoDetails` (type: `boolean`):

Adds exact view count, ISO publish date, canonical title and description for every video. Costs one extra request per video, so leave it off for big runs — YouTube throttles datacenter IPs that hammer the video endpoint, and the run slows down instead of failing.

## `includeMediaUrls` (type: `boolean`):

Adds `mediaUrls`: every direct googlevideo stream (itag, mimeType, quality, bitrate, size, signed URL, ~6h expiry) plus keywords and category. Requires an IP that YouTube serves the player to: on shared datacenter IPs YouTube answers LOGIN_REQUIRED and this field stays empty (the run still succeeds, the reason is written to SUMMARY). Self-hosting or your own residential proxy restores it.

## `includeCaptions` (type: `boolean`):

Adds `captions`: available language tracks plus the transcript text of the best track. Same IP requirement as media URLs (it reads the player response); when YouTube requires sign-in the field is empty and the rest of the row is unaffected.

## `captionsLang` (type: `string`):

Language code such as en, zh-Hans, ja. Leave empty to prefer English, then Chinese, then Japanese.

## `includeCommentsTopN` (type: `integer`):

0 = off. Each video with comments costs 1 page request plus ~1 request per 20 comments, which is the most expensive option here — keep it small (5–20).

## `requestDelayMs` (type: `integer`):

Throttle between the per-video enrichment requests. Raising it lowers the risk of rate limiting on huge runs.

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

Optional. Not needed for the channel list, exact stats or comments — YouTube accepts datacenter IPs for those. Only the media/captions switches benefit from it, and it requires a plan that includes Apify Proxy (the FREE plan has none: the Actor then continues without a proxy instead of failing).

## `enrichBudgetSecs` (type: `integer`):

Hard cap for the optional per-video enrichment phase. When it is reached the remaining rows are emitted without the optional fields (a note is written to SUMMARY) — this keeps a throttled run cheap instead of stalling for tens of minutes.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@NASA"
  ],
  "maxResults": 50,
  "videoType": "long",
  "sortOrder": "latest",
  "includeChannelHeader": true,
  "includeVideoDetails": false,
  "includeMediaUrls": false,
  "includeCaptions": false,
  "captionsLang": "",
  "includeCommentsTopN": 0,
  "requestDelayMs": 700,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "enrichBudgetSecs": 240
}
```

# Actor output Schema

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

Dataset with one row per video: ID, URL, title, views, duration, publish time, thumbnail, Shorts flag and the channel object. Optional per-video extras: mediaUrls, captions, topComments.

## `summary` (type: `string`):

Per-channel counts, resolved settings and upstream errors for this run.

# 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 = {
    "channelUrls": [
        "https://www.youtube.com/@NASA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("airy_armadillo/youtube-channel-video-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 = { "channelUrls": ["https://www.youtube.com/@NASA"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,airy_armadillo/youtube-channel-video-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/JakdTfqaa5jGMrmM6/builds/1d4RVOoGlSyyUKPFI/openapi.json
