# YouTube Scraper - Channel, Video Stats & Search (`ivory-nexus/youtube-video-channel-stats`) Actor

Get YouTube video stats from channels, playlists, search or video URLs: views, likes, comments, subscribers, upload date, tags, duration. Fast basic mode or full details. Pay per video.

- **URL**: https://apify.com/ivory-nexus/youtube-video-channel-stats.md
- **Developed by:** [Yazeed Zoabi](https://apify.com/ivory-nexus) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 video (basic)s

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 Scraper – Channel, Video Stats & Search

Get **YouTube video statistics** from **channels**, **playlists**, **YouTube search** or individual video URLs: views, likes, comment count, channel subscribers, upload date, duration, tags, description and engagement rate. No login, no API key, no YouTube Data API quota.

**Pay per video.** Choose the cheap **basic** mode for fast listings, or **full** mode for complete details.

### What can this YouTube scraper do?

- 📺 **Channel videos** – the newest videos, **Shorts** or **live streams** of any channel (`@handle` or channel URL).
- 🔎 **YouTube search** – search by keyword, sorted by relevance or upload date.
- 📃 **Playlists** – every video of a playlist.
- 🎬 **Single videos** – paste video or Shorts URLs.
- 📊 **Two detail levels:**
  - **Basic** (fast, cheaper): title, URL, channel, views, duration, thumbnail.
  - **Full**: adds likes, comment count, upload date, description, tags, category, chapters, channel subscribers, verified badge and **engagement rate**.
- 🔁 **Only new videos** – schedule it daily on channels or keywords and get only fresh uploads.
- 🤖 **Automation-ready** – n8n, Make, Zapier, the Apify API and AI agents via MCP.

### Use cases

- **Competitor and niche research** – which videos perform best in your niche, and why.
- **Influencer discovery** – find creators by keyword and compare subscribers and engagement.
- **Content strategy** – analyze titles, tags, durations and upload times of top videos.
- **Channel monitoring** – get notified about every new upload of the channels you follow.
- **Market research and reporting** – build YouTube dashboards in Google Sheets, Looker Studio or Excel.
- **AI pipelines** – feed video lists to your AI agents, then pass them to our transcript or comments scrapers.

### How to use it

1. Add channel, playlist or video URLs – and/or **search queries**.
2. Choose **Basic** or **Full** detail level.
3. Set **Max videos per channel / playlist / search**.
4. Click **Start** and download the results as JSON, CSV or Excel, or use the API.

### Input example

```json
{
  "urls": ["https://www.youtube.com/@TED"],
  "searchQueries": ["n8n tutorial"],
  "detailLevel": "full",
  "maxVideosPerSource": 50,
  "searchSort": "date"
}
```

### Output example (full mode)

```json
{
  "status": "success",
  "detailLevel": "full",
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Video title",
  "description": "Video description...",
  "channel": "Channel name",
  "channelHandle": "@channel",
  "channelSubscribers": 1250000,
  "viewCount": 1500000,
  "likeCount": 42000,
  "commentCount": 3100,
  "engagementRate": 3.007,
  "durationSeconds": 612,
  "uploadDate": "2026-11-01",
  "tags": ["tutorial", "automation"],
  "categories": ["Education"],
  "isShort": false,
  "thumbnail": "https://i.ytimg.com/vi/.../maxresdefault.jpg",
  "source": "https://www.youtube.com/@channel"
}
```

`engagementRate` = (likes + comments) ÷ views × 100. Inputs that fail (private or deleted videos, wrong URLs) return `"status": "failed"` and are **not charged**.

### How much does it cost?

A fixed price **per video** – basic mode is cheaper than full mode. See the pricing on this page. No monthly fee; set a spending limit for any run.

### Use with n8n, Make, Zapier and AI agents

- **n8n / Make / Zapier** – use the Apify integration and choose this Actor.
- **API:**

```bash
curl -X POST "https://api.apify.com/v2/acts/ivory-nexus~youtube-video-channel-stats/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.youtube.com/@TED"], "detailLevel": "basic", "maxVideosPerSource": 20}'
```

- **AI agents (Claude, Cursor, ChatGPT)** – via the Apify MCP server: `https://mcp.apify.com?tools=ivory-nexus/youtube-video-channel-stats`

### More YouTube tools by Ivory Nexus

- 🎬 [YouTube Transcript Extractor](https://apify.com/ivory-nexus/youtube-transcript-extractor) – transcripts as text, timestamps or SRT.
- 💬 [YouTube Comments Scraper](https://apify.com/ivory-nexus/youtube-comments-extractor) – comments and replies with likes, authors and dates.

### FAQ

**Basic or full – which should I choose?** Basic is enough for listing videos with views and duration. Choose full when you need likes, comment counts, upload dates, tags, descriptions or subscribers.

**Why are some fields empty in basic mode?** YouTube's listing pages don't include likes, dates or tags – those require full mode.

**Why are view counts rounded in basic mode?** Listing pages show rounded numbers ("67K views"). Full mode returns the exact view count.

**Is it legal?** The Actor only reads publicly available video information. Make sure your use complies with the laws and terms that apply to you.

**Something not working?** Open an issue in the Issues tab – I respond quickly.

# Actor input Schema

## `urls` (type: `array`):

Channel (@handle), playlist, video or Shorts URLs. Mix them freely.

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

Optional. Search YouTube like a user would, e.g. 'n8n tutorial'. Each query returns up to 'Max videos per source' results.

## `detailLevel` (type: `string`):

Basic = fast and cheap: title, views, duration, channel. Full = adds likes, comment count, upload date, description, tags, category, chapters and channel subscribers.

## `maxVideosPerSource` (type: `integer`):

Newest videos for channels, first results for playlists and searches.

## `contentType` (type: `string`):

Which tab of a channel to read.

## `searchSort` (type: `string`):

Order of search results.

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

Skip videos already returned in your previous runs - ideal for monitoring channels or keywords on a schedule.

## `maxConcurrency` (type: `integer`):

How many videos to look up at the same time in full mode.

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

Standard Apify proxy by default. Blocked requests automatically retry through residential proxies.

## `residentialFallback` (type: `boolean`):

If YouTube blocks a request, retry it through a residential IP.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/@TED"
  ],
  "detailLevel": "basic",
  "maxVideosPerSource": 30,
  "contentType": "videos",
  "searchSort": "relevance",
  "onlyNewVideos": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

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

All videos with full fields.

## `videosOverview` (type: `string`):

Compact table: title, channel, views, likes, comments, duration, upload date, link.

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

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

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

```

## MCP server setup

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