# YouTube Channel & Video Data Scraper (`ttechx/youtube-channel-video-data-scraper`) Actor

Channels, videos, Shorts, live streams, playlists, community posts, search results, comments and transcripts from YouTube, as clean JSON. Exact view and like counts. Pay per result; failures are free.

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

## Pricing

from $1.00 / 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 is YouTube Channel & Video Data Scraper?

YouTube Channel & Video Data Scraper is a **YouTube scraper** that extracts public data from
**channels, videos, Shorts, live streams, playlists, community posts, search results, comments
and transcripts**. Paste YouTube links or search terms, choose what you need, and download the
data as **JSON, CSV, Excel or HTML**, or get it through the Apify API.

No YouTube API key, no daily quota, no proxies or browser to set up. You pay only for the results
you get, and anything that could not be read is free.

To try it, open the Actor, keep the example channel and click **Start**.

### What YouTube data can you scrape?

| From | You get |
|---|---|
| **Channels** (`@handle`, channel link or `UC…` id) | Channel details (subscribers, total views and videos, country, join date, links), and its videos, Shorts, live streams, playlists and community posts, newest, most popular or oldest first |
| **Videos and Shorts** | Full details: exact view and like counts, comment count, description, keywords, category, chapters, publish date, caption languages and more |
| **Playlists** | The playlist's videos, with the playlist's title |
| **Community posts** | The post, its text, likes and attachment |
| **Search terms** | Videos, Shorts, channels, playlists and movies, filtered by type, upload date, length and features |
| **Comments** | Top or newest comments of any video, Short or post, with their replies |
| **Transcripts** | A video's captions as timed text and as one whole text, in any language the video has |

#### Features of this YouTube scraper

- **One run, many sources.** Mix channels, videos, Shorts, playlists, posts and search terms in
  one run. Each result says which link or search term it came from.
- **Exact counts.** With full details on, view and like counts are exact, not rounded.
- **Comments with replies.** Each reply follows its comment and links to it.
- **Transcripts for AI.** Every transcript also comes as one plain text, ready for summaries,
  translation, RAG or training data.
- **Search filters.** Upload date (last hour to this year), length, type, and features such as
  HD, 4K, subtitles, live, Creative Commons, 360° and VR180.
- **Links and numbers ready to use.** Every item has its YouTube `url`, and counts are numbers,
  ready to sort and filter in a spreadsheet.
- **The Apify platform.** Run it from the API, on a schedule, or from Make, Zapier, n8n or an AI
  agent, and get notified when a run ends.

### How to scrape YouTube channels, videos and comments

1. Create a free Apify account and open this Actor.
2. Add **YouTube links or ids** (channels, videos, Shorts, playlists, posts) and/or **search
   terms**, one per line.
3. Set how many items you want from each source: videos, Shorts and live streams per channel,
   results per search term, videos per playlist.
4. Turn on the extras you need: full video details, transcripts, comments and replies.
5. Click **Start**. Download the results from the Output tab, or send them to Google Sheets, n8n,
   Make or Zapier.

#### Input examples

The 10 newest videos of a channel, with their transcripts:

```json
{
    "startUrls": ["https://www.youtube.com/@ruhicenetdocs"],
    "maxVideos": 10,
    "transcripts": true
}
```

50 search results for a term, from this month, with 20 comments each:

```json
{
    "searchQueries": ["minecraft"],
    "maxSearchResults": 50,
    "uploadDate": "month",
    "maxComments": 20
}
```

### Output: YouTube data as JSON, CSV or Excel

Every result is one item with a `type` (`channel`, `video`, `short`, `live`, `playlist`,
`post`, `searchResult`, `comment`, `transcript`), its YouTube `url`, and a `source`: the link or
search term it came from. Counts such as views, likes and subscribers are numbers, ready to sort.
A transcript item has its timed segments and the whole text in `transcriptText`. The Output tab
has ready views for videos, channels, comments and transcripts.

A video from a channel list:

```json
{
    "type": "video",
    "url": "https://www.youtube.com/watch?v=mJYxSed0D_I",
    "videoId": "mJYxSed0D_I",
    "title": "Exploring the Most Remote Island on Earth (15 Days Just to Get There)",
    "viewCountText": "33M views",
    "viewCount": 33000000,
    "publishedTimeText": "3 weeks ago",
    "publishDate": "2026-10-28",
    "lengthText": "19:54",
    "lengthSeconds": 1194,
    "channelId": "UCWpk9PSGHoJW1hZT4egxTNQ",
    "channelTitle": "Ruhi Cenet Documentaries",
    "channelHandle": "@ruhicenetdocs",
    "thumbnailUrl": "https://i.ytimg.com/vi/mJYxSed0D_I/hq720.jpg?…",
    "source": "https://www.youtube.com/@ruhicenetdocs"
}
```

A comment, and a reply to it:

```json
{ "type": "comment", "url": "https://www.youtube.com/watch?v=2C8zYFArnKY&lc=Ugx0Q-6m8kb-v_u4z9p4AaABAg", "commentId": "Ugx0Q-6m8kb-v_u4z9p4AaABAg", "authorText": "@ImranWyson-e9o", "textDisplay": "Respect to camera man🥶", "likesCount": "76K", "videoId": "2C8zYFArnKY", "source": "https://youtu.be/2C8zYFArnKY" }
{ "type": "comment", "url": "https://www.youtube.com/watch?v=2C8zYFArnKY&lc=Ugx0Q-6m8kb-v_u4z9p4AaABAg.AK12NsTOsjLAK1Kahzl5ky", "commentId": "Ugx0Q-6m8kb-v_u4z9p4AaABAg.AK12NsTOsjLAK1Kahzl5ky", "authorText": "@BlackMoon-gz3ld", "textDisplay": "Thanks man 🙏", "likesCount": "548", "replyTo": "Ugx0Q-6m8kb-v_u4z9p4AaABAg", "videoId": "2C8zYFArnKY", "source": "https://youtu.be/2C8zYFArnKY" }
```

### How much does it cost to scrape YouTube?

You pay for the results you get. Anything that could not be read (a deleted video, a video
without captions, a wrong link) is free. Each run also has Apify's small start fee of $0.00005.

| Event | What it is | Price | Per 1,000 |
|---|---|---|---|
| Result | One video, Short, live stream, playlist, post or search result from a list | $0.001 | $1.00 |
| Video details | Full details of one video or Short | $0.002 | $2.00 |
| Channel | Details of one channel | $0.002 | $2.00 |
| Comment | One comment or reply | $0.0005 | $0.50 |
| Transcript | The transcript of one video | $0.003 | $3.00 |

Some examples:

- A channel's details and its 100 newest videos: $0.102.
- 1,000 videos with full details: $2.00.
- 10,000 comments: $5.00.
- 100 transcripts: $0.30.

With **Full details for every video found** on, each video's full details replace its short list
entry: you pay for the details only, not for both.

#### Is scraping YouTube with this Actor free?

You can start for free: Apify's free plan includes monthly platform credit, enough to try the
Actor on real channels. You can set a **maximum cost per run** in the run options, and the run
stops when it is reached.

### YouTube scraper vs. the official YouTube Data API

- **No API key or Google Cloud project.** Paste links and run.
- **No daily quota.** The official API gives 10,000 quota units a day, and one search costs 100
  of them. Here you pay per result and can scrape as much as you need.
- **Transcripts of any video with captions.** The official API lets only a video's owner
  download its captions.
- **A channel's Shorts and community posts as lists of their own**, which the official API does
  not offer.

### Use cases for YouTube data

- **Competitor and market research**: track what channels in your niche publish and how it performs.
- **Influencer marketing**: compare channels by subscribers, views and upload frequency.
- **Content research and SEO**: find the most popular videos for a topic, with their titles,
  keywords and lengths.
- **Comment and sentiment analysis**: collect what viewers say about a product, brand or video.
- **AI and LLM data**: transcripts as plain text for summaries, search, RAG and training data.
- **Growth tracking**: schedule runs and follow a channel's views and subscribers over time.

### Integrations and the Apify API

Run the Actor and fetch its results from your own code with the
[Apify API](https://docs.apify.com/api/v2) or the Python and JavaScript clients (see the API tab).
Use [schedules](https://docs.apify.com/platform/schedules) to scrape YouTube daily or weekly, and
[integrations](https://docs.apify.com/platform/integrations) to send results to Google Sheets,
Google Drive, Slack, Make, Zapier, n8n or a webhook. AI agents can call it through Apify's MCP
server.

### FAQ

#### Is it legal to scrape YouTube?

This Actor extracts only publicly available data. Comments include their authors' public channel
names, which can be personal data protected by laws such as the GDPR: collect personal data only
with a legitimate reason, and ask a lawyer if you are unsure. You are responsible for how you use
the data. See also [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

#### How many results can I get?

Up to 10,000 videos, Shorts, live streams, playlists or posts per channel list, 1,000 results per
search term, 10,000 videos per playlist and 10,000 comments per video or post. One run takes up to
1,000 links and search terms.

#### Can I get transcripts in other languages?

Yes. Set **Transcript language** to a code such as `es` or `pt-BR`. Leave it empty to get each
video's own default track. Videos without captions are skipped, free.

#### Why are some numbers missing or rounded?

- **Numbers in English.** Counts and dates are read from English texts. With another language,
  the text fields are returned and the number fields are left out.
- **Exact or rounded.** View and like counts in full details are exact. In channel lists, YouTube
  shows rounded views ("72M views"), so `viewCount` is rounded there too; turn on full details
  for the exact number.
- **Members-only videos** are listed, but YouTube shows no view count for them and their
  comments and transcripts cannot be read (free, noted in `ERRORS`).

#### What happens when something cannot be read?

It is free, and it is listed in the run's key-value store under `ERRORS`, with the reason (a
deleted video, a wrong link, comments turned off, ...).

### Other YouTube tools by TTech

- [YouTube Video Frame Extractor](https://apify.com/ttechx/youtube-video-frame-extractor):
  JPEG frames from any YouTube video, at exact timestamps, every N seconds or one per chapter.

### Support

Questions, a feature you need, or higher volume? Message us on Telegram:
[@ttech_support_official](https://t.me/ttech_support_official).

# Actor input Schema

## `startUrls` (type: `array`):

Channels (@handle, channel link or UC… id), videos, Shorts, playlists or community posts. One per line (a list separated by commas also works). The kind of each link is recognised by itself.

## `searchQueries` (type: `array`):

Words to search YouTube for, one search per line, e.g. minecraft. How many results each, and the filters, are set under Search options below.

## `channelDetails` (type: `boolean`):

Subscribers, total views and videos, country, join date, links and more, one item per channel.

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

Videos from the channel's Videos tab.

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

Shorts from the channel's Shorts tab.

## `maxLiveStreams` (type: `integer`):

Past, live and upcoming streams.

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

The playlists the channel made.

## `maxPosts` (type: `integer`):

Posts from the channel's community tab.

## `channelSortBy` (type: `string`):

The order of the channel's lists.

## `maxSearchResults` (type: `integer`):

Videos, Shorts, channels, playlists and movies.

## `searchType` (type: `string`):

Only this kind of result. Empty: all kinds.

## `uploadDate` (type: `string`):

Empty: any time.

## `duration` (type: `string`):

Empty: any length.

## `features` (type: `array`):

Only results with all of these features.

## `searchSortBy` (type: `string`):

The order of the search results.

## `maxPlaylistVideos` (type: `integer`):

Videos of each playlist in the links.

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

Exact likes and views, description, keywords, category, chapters, caption languages and more, in place of the short list entry. Videos and Shorts given as links always get full details.

## `transcripts` (type: `boolean`):

The captions of each video as timed text and as one whole text, one item per video. Videos without captions are skipped, free.

## `transcriptLanguage` (type: `string`):

A language code such as en, es or pt-BR. Empty: the video's own default track.

## `maxComments` (type: `integer`):

Comments of each video, Short and community post. 0: no comments.

## `commentsSortBy` (type: `string`):

The order of the comments.

## `includeReplies` (type: `boolean`):

Replies to the comments, counted in the comment limit.

## `language` (type: `string`):

Language of YouTube's texts, e.g. en, es, pt-BR. Counts and dates are only read from English: with another language they are left out.

## `country` (type: `string`):

Two-letter country code, e.g. US, GB, BD. Also picks the country of search results.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/@ruhicenetdocs"
  ],
  "channelDetails": true,
  "maxVideos": 10,
  "maxShorts": 0,
  "maxLiveStreams": 0,
  "maxPlaylists": 0,
  "maxPosts": 0,
  "channelSortBy": "newest",
  "maxSearchResults": 20,
  "searchSortBy": "relevance",
  "maxPlaylistVideos": 20,
  "videoDetails": false,
  "transcripts": false,
  "maxComments": 0,
  "commentsSortBy": "top",
  "includeReplies": false,
  "language": "en",
  "country": "US"
}
```

# Actor output Schema

## `items` (type: `string`):

Every item, with its type and the input line it came from.

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

Videos, Shorts and live streams.

## `errors` (type: `string`):

Links and items that could not be read, with the reason (free of charge).

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

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

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

```

## MCP server setup

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