# YouTube Channel Stats & Videos Scraper (`tindacloud/youtube-channel-stats`) Actor

- **URL**: https://apify.com/tindacloud/youtube-channel-stats.md
- **Developed by:** [Seungki Min](https://apify.com/tindacloud) (community)
- **Categories:** Videos, Social media, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 records

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

## YouTube Channel Stats & Videos Scraper

Channel **subscribers, video count, description and links**, plus the latest videos with views and duration — without an API key and without the Data API's daily quota.

### What you can do with it

- **Influencer research** — subscriber counts and recent performance for a list of channels.
- **Competitor tracking** — `onlyNewVideos` on a schedule tells you what they published.
- **Content analysis** — pull hundreds of video titles with view counts to see what works.
- **Shorts vs long-form** — `channelTab` switches between videos, Shorts and past live streams.

### Input

| Field | What it does |
|---|---|
| `channels` | URLs, @handles or channel IDs |
| `maxVideosPerChannel` | Newest first; 0 = channel details only |
| `channelTab` | Videos, Shorts or live streams |
| `includeVideoStats` | Opens each video for exact views and likes |
| `minViews` | Skip small videos |
| `onlyNewVideos` | Monitoring mode |

### Output

Rows are marked `recordType: "channel"` or `"video"`:

```json
{
  "recordType": "channel",
  "input": "@TED",
  "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
  "title": "TED",
  "handle": "@TED",
  "url": "https://www.youtube.com/channel/UCAuUUnT6oDeKwE6v1NGQxug",
  "description": "The TED Talks channel features the best talks and performances from the TED Conference, where the world's leading thinkers and doers give the talk of their lives in 18 minutes (or less) — plus origina…",
  "tagline": "The TED Talks channel features the best talks and performances from the TED Conference, where the world's leading thinkers and doers give the talk of their lives in 18 minutes (or less) — plus originals, podcasts and exclusive content. Look for videos on Technology, Entertainment and Design as well as science, business, global issues, the arts and more. ",
  "subscriberCount": 27800000,
  "subscriberText": "27.8M subscribers",
  "videoCount": 5800,
  "rssUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=UCAuUUnT6oDeKwE6v1NGQxug",
  "isFamilySafe": true,
  "keywords": [
    "TED",
    "talks",
    "ideas",
    "worth",
    "spreading"
  ],
  "avatarUrl": "https://yt3.googleusercontent.com/ytc/AIdro_koIFcCOrvh0KThLNOiazAIDu6hcs8bjkGNwe1f6A_OYm8=s900-c-k-c0x00ffffff-no-rj",
  "bannerUrl": "https://yt3.googleusercontent.com/mgi4tXOEErQ-2-TUQISotNllP2DOI2IvpXEImFufQLKixWv2T-mKHv__uH3Nc5_gISGhF3IH=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
  "availableCountries": 249,
  "scrapedAt": "2026-09-21T07:29:39.923Z"
}
```

### Speed and cost

3 channels with 10 videos each took **7 seconds**. The list view gives rounded view counts ("57K views"); turn on `includeVideoStats` when you need exact numbers and likes.

### Related Actors

- [YouTube Transcripts & Video Data](https://apify.com/tindacloud/youtube-transcripts) — transcripts with timestamps
- [YouTube Comments Scraper](https://apify.com/tindacloud/youtube-comments-scraper) — comments with likes and replies
- [Threads Scraper](https://apify.com/tindacloud/threads-scraper) — profiles and posts on Meta's Threads

# Actor input Schema

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

Channel URLs, @handles or channel IDs — “https://www.youtube.com/@TED”, “@mkbhd”, “UCsXVk37bltHxD1rDPwtNM8Q”.

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

Newest first. Set to 0 for channel details only.

## `channelTab` (type: `string`):

Regular videos, Shorts or past live streams.

## `includeChannelRow` (type: `boolean`):

Subscribers, total views, video count, join date, country, description and links.

## `includeVideoStats` (type: `boolean`):

Opens each video for exact view and like counts. Slower, but the list view only gives rounded views and no likes.

## `minViews` (type: `integer`):

Skip videos below this view count.

## `onlyNewVideos` (type: `boolean`):

Monitoring mode. Returns only videos published since the last run.

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

Total limit.

## `proxy` (type: `object`):

Apify Proxy is used by default — YouTube blocks datacenter requests without it.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@TED"
  ],
  "maxVideosPerChannel": 30,
  "channelTab": "videos",
  "includeChannelRow": true,
  "includeVideoStats": false,
  "onlyNewVideos": false,
  "maxResults": 1000,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All results in a table view.

# 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/@TED"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tindacloud/youtube-channel-stats").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/@TED"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tindacloud/youtube-channel-stats"
        }
    }
}
```

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/VGlnb2Y0IkuFbd4lK/builds/qFiLt3NXSMn3f10bI/openapi.json
