# YouTube Scraper - Channel Videos & Stats (`yck69/youtube-scraper`) Actor

YouTube channel profiles and latest videos: titles, views, publish age, duration, thumbnails, subscribers. Optional per-video details when YouTube allows it.

- **URL**: https://apify.com/yck69/youtube-scraper.md
- **Developed by:** [yck](https://apify.com/yck69) (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 $2.00 / 1,000 videos extracted

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/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 Scraper - Channel Videos & Stats

List the **latest videos of any YouTube channel** (title, views, age, duration, thumbnail) and the **channel profile** (subscribers, video count, description). When YouTube serves the watch page, rows are upgraded with **likes, exact publish date, category, keywords and full description**.

- Channels by `@handle`, URL or ID; up to hundreds of newest videos each.
- Single **video** URLs or IDs.
- **New-video alerts** (`onlyNew`) and view/like change tracking.
- Honest fallback: if YouTube asks for a sign-in check on watch pages, the Actor **stops forcing them** and returns the channel-listing data instead (`detailLevel: listing`).

**$2 per 1,000 videos, $2 per 1,000 channels.** You pay only for the results you receive.

### How to use it

1. Click **Try for free** at the top of this page.
2. Fill the input (the defaults work as a first test).
3. Click **Start**, or schedule the Actor for monitoring and alerts.
4. Download the results as JSON, CSV or Excel, or call the Actor from the API.

### Use cases

- Creators and agencies tracking competitor channels.
- Brand and sponsorship research.
- Content calendars and analytics.

### Input examples

**Latest 30 videos of a channel**

```json
{
  "channels": [
    "@NASA"
  ],
  "maxVideosPerChannel": 30
}
```

**New-video alert, listing data only**

```json
{
  "channels": [
    "@mkbhd",
    "@veritasium"
  ],
  "includeVideoDetails": false,
  "onlyNew": true,
  "monitorName": "tech-yt"
}
```

### Input reference

| Field | Name | Type | Description |
|---|---|---|---|
| `channels` | Channels | array | @handle, channel URL or channel ID (UC…). |
| `videos` | Videos | array | Video URLs or 11-character video IDs. |
| `maxVideosPerChannel` | Videos per channel | integer | Newest videos first. |
| `includeVideoDetails` | Open each video page | boolean | Adds views, likes, publish date, description, keywords, category and exact duration. Off = faster, listing data only. |
| `onlyNew` | Only new videos (monitoring) | boolean | Return only videos not seen in a previous run of the same monitor. |
| `monitorName` | Monitor name | string | Different names keep separate memories. |
| `maxItems` | Max videos | integer | Stop after this many videos (billed per video; channel rows are billed separately). |
| `proxyConfiguration` | Proxy | proxy | Optional. |

### Output

Each result is one JSON object. Main fields: `recordType`, `videoId`, `channelId`, `title`, `handle`, `url`, `channel`, `channelUrl`, `subscribers`, `subscribersText`, `videoCount`, `viewCount`, `likeCount`, `durationSeconds`, `duration`, `category`, `publishedAt`, `description`, `keywords`, `channelKeywords`, `publishedText`, `publishedApprox`, `durationText`, `detailLevel`, `isLive`, `isShort`, `isFamilySafe`, `thumbnail`, `avatar`, `listInfo`.

When you schedule the Actor with a `monitorName`, rows also carry `isNew`, `firstSeenAt` and (where relevant) a `changes` object listing what moved since the previous run.

Example (shortened):

```json
{
  "recordType": "channel",
  "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
  "title": "NASA",
  "handle": "@NASA",
  "url": "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ",
  "description": "NASA's mission is to pioneer the future in space exploration, scientific discovery, and aeronautics researc…",
  "subscribers": 15100000,
  "subscribersText": "15.1M subscribers",
  "videoCount": 6200,
  "avatar": "https://yt3.googleusercontent.com/eIf5fNPcIcj9ig-wZBeq4stFy1lgjWTW1nLT5dYlFkHZprZ03QBiMcbpwNMB6XSBjrSFGtAGQ…",
  "channelKeywords": "nasa space iss shuttle 50th astronauts planets earth rockets hubble telescopes NASA TV galaxy apollo gemini…",
  "isFamilySafe": true,
  "isNew": false,
  "firstSeenAt": "2026-11-16T18:51:05.448Z"
}
```

### What it does not do

- **Detailed watch-page data (likes, exact date, description) is best-effort**: YouTube often shows a bot check to cloud IPs. Listing data is always returned.
- Search results pages are not scraped (robots.txt disallows `/results`).
- No comments or transcripts.

### Data source and legality

Public YouTube channel and watch pages. The Actor does not log in, does not solve captchas and does not bypass anti-bot protection. You are responsible for using the data in line with the source's terms and the laws that apply to you (including data-protection law when the data concerns people).

### FAQ

**Why do some rows have no likes?**

Those came from the channel listing. YouTube did not serve the watch page to the cloud IP; run again later or with a proxy.

### Pricing

Pay per event: $2 per 1,000 videos, $2 per 1,000 channels. A tiny start fee per run applies. Apify platform usage is included for the Actor owner's pay-per-event model.

### Support

Questions or a missing field? Open an issue from the Actor page and tell us the input you used.

# Actor input Schema

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

@handle, channel URL or channel ID (UC…).

## `videos` (type: `array`):

Video URLs or 11-character video IDs.

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

Newest videos first.

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

Adds views, likes, publish date, description, keywords, category and exact duration. Off = faster, listing data only.

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

Return only videos not seen in a previous run of the same monitor.

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

Different names keep separate memories.

## `maxItems` (type: `integer`):

Stop after this many videos (billed per video; channel rows are billed separately).

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

Optional.

## Actor input object example

```json
{
  "channels": [
    "@NASA"
  ],
  "maxVideosPerChannel": 30,
  "includeVideoDetails": true,
  "onlyNew": false,
  "maxItems": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Videos.

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

Every field of every row.

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

The SUMMARY record.

# 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": [
        "@NASA"
    ]
};

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

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

```

## MCP server setup

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