# YouTube Channel Videos Scraper - Public Uploads to CSV (`varnmill/youtube-channel-videos`) Actor

Export public YouTube Videos-tab listings and a dated channel report. $0.0015 base report per channel plus $0.50/1,000 videos. Explicit coverage and limits; no login, comments or transcripts.

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

## Pricing

from $0.35 / 1,000 video listings

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

## YouTube Channel Videos Scraper

A real cloud run on **November 4, 2026** returned **23 unique Ladybird Browser videos plus one channel report in 3.29 seconds**, exhausting its public Videos tab in one page. No login or proxy was used. Example from that run:

```json
{
  "type": "video",
  "id": "UZEVRQHusjw",
  "title": "Ladybird browser update (June+July 2026)",
  "url": "https://www.youtube.com/watch?v=UZEVRQHusjw",
  "channelName": "Ladybird",
  "sourceUrl": "https://www.youtube.com/@LadybirdBrowser/videos",
  "capturedAt": "2026-11-04T08:21:48.253214+00:00"
}
```

This dated sample is not a promise of future availability or speed. Paid demand remains unproven.

### Try a channel snapshot

```json
{"channels": ["https://www.youtube.com/@NASA"], "maxVideosPerChannel": 30}
```

Export the public **Videos tab** to CSV or JSON. Each row includes a stable video ID, source and watch URLs, capture time, title, channel identity, displayed view count, displayed publication age and duration where provided. The OUTPUT record reports pages, delivered rows, recovered rows, errors and why each channel stopped. `complete` is true only when the source pagination is exhausted; reaching your limit is partial coverage.

### Pricing

| Event | Base price |
|---|---:|
| First-page channel report delivered (including a valid empty grid) | $0.0015 / channel |
| Video listing delivered | $0.50 / 1,000 |
| Run start | $0.00005 |

Platform usage included. One channel report plus 30 delivered videos would be $0.01655 before any Store tier discount. This is the event-price example, not publisher profit. Repeated snapshots charge for returned rows again. A spending cap can stop delivery before your requested count. Source refusals and malformed pages produce no report or video charge; the start event still applies. The report fee is billed once per channel in the same run and is not billed again on recovery. A new run bills a new snapshot. The minimum run budget is $0.00205; delivered events determine charges, not this ceiling.

Bronze/Silver/Gold video rates are $0.45/$0.40/$0.35 per 1,000; report rates are $0.00135/$0.00120/$0.00105. The start event stays $0.00005. A one-channel, one-video base run costs $0.00205. Some alternatives cost less at low volumes and on enterprise tiers; no universal cheapest claim.

Each `channel_report` row includes the verified channel ID/name, source URL, capture time, first-page video IDs and count, and whether continuation was offered. It is a first-page observation, not a whole-channel archive or a video. A structurally valid empty grid can produce a report with zero videos; this branch is tested with fixtures and has not been observed on a real empty channel. Naturally sparse source exhaustion has been cloud-tested with 23 videos. An unavailable Videos tab is a source error, not evidence that the channel has no uploads. Filter `type=video` when exporting video-only rows.

### Scope and accuracy

Only public channel Videos tabs, up to 10 channels and 1,000 videos each. No comments, Shorts, Live tabs, search, transcripts, login, browser, proxy or private content. No watcher or cross-run deduplication is advertised. Duplicate video IDs in the same run are suppressed. Restarting the same run recovers delivered IDs from its dataset; a new run is a new paid snapshot.

Views and ages are source display strings and may be rounded or relative. Exact numeric `viewCount` and absolute `publishedAt` remain null rather than invented. `missingFields` lists missing optional display fields. `completeness: videos_tab_listing` describes each row's limited data scope, not whole-channel coverage. Video descriptions, exact dates, likes and comment counts are not fetched. Public sources can omit unavailable videos or change order. Source refusals stop that target; HTTP 429 is not retried, and network/5xx errors get one bounded retry after one second. Each entire request attempt has a five-second deadline, including response-body transfer. Slow sources can fail at this deadline; no timeout bypass or fallback provider is used. Partial rows remain available and the run fails when a source error occurs.

### FAQ

**Can I get all uploads?** Only if the source exhausts before the configured limit. Read OUTPUT; a successful capped run is not an archive-completeness claim.

**Does it extract comments?** No. The initial candidate supports channel video listings only.

**Can I compare snapshots?** Join on `id`; counts are rounded public displays, so no exact growth claim is justified.

### Changelog

- November 4 candidate: five-second total request deadline, cancellation contracts, naturally sparse 23-video source validation, and controlled cloud retry-cost measurement.

- November 3 private contract candidate: explicitly priced first-page channel report; report/video billing caps and same-run recovery; channel identity/layout validation. This contract is not yet released.

- November 2 private candidate: batch delivery through the SDK, no source request at an exhausted cap, and one final coverage write. Dataset recovery retained; release economics remain under validation.

- 0.1 candidate, November 1, 2026: public channel Videos-tab parsing and pagination, bounded retries, delivery-cap accounting and same-run dataset recovery. Release validation pending.

# Actor input Schema

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

One to ten public YouTube @handles or HTTPS youtube.com/@handle or /channel/UC... URLs. Only the Videos tab is supported. Each successfully parsed channel has a separate $0.0015 base first-page report charge, including valid empty grids. No report charge for source errors.

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

Maximum unique video listings per channel. A limit is a partial snapshot, not a complete channel archive. Repeat runs bill returned rows again.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@NASA"
  ],
  "maxVideosPerChannel": 30
}
```

# Actor output Schema

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

No description

## `coverage` (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/@NASA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("varnmill/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/@NASA"] }

# Run the Actor and wait for it to finish
run = client.actor("varnmill/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/@NASA"
  ]
}' |
apify call varnmill/youtube-channel-videos --silent --output-dataset

```

## MCP server setup

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