# YouTube Popular Channels Scraper (`eunit/youtube-popular-channels-scraper`) Actor

Scrape YouTube trending videos, popular channels & keywords for 25+ countries. Filter by category (Music, Gaming). Get detailed stats, views, likes & metadata. Fast & reliable results. Export results in JSON, XML, HTML, Table, etc

- **URL**: https://apify.com/eunit/youtube-popular-channels-scraper.md
- **Developed by:** [Emmanuel Uchenna](https://apify.com/eunit) (community)
- **Categories:** Social media, Lead generation, Videos
- **Features:** Limited permissions
- **Stats:** 34 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $99.00 / 1,000 charged upon successful scrapings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Trends & Channels Scraper

This Apify Actor scrapes real-time trending data from YouTube. It extracts **popular channels**, **rising channels**, **trending videos by category**, and **popular keywords** for over 25 countries — with deep channel analytics and video velocity metrics you won't get from the official API.

### Features

- **Multi-Country Support:** Scrape trends for World, US, UK, India, Brazil, Japan, and [many more](#supported-countries).
- **Category Filtering:** Get trends for All categories or specific ones like Music, Gaming, News, Sports, and more.
- **Popular Channels:** Top trending channels ranked by activity, with full channel stats (subscriber count, total views, average views, video count, channel description, and creation date).
- **Rising Channels:** A dedicated section of channels that are **breaking out** — identified by an outsized views-to-subscribers ratio. Each channel includes its `rising_reasons` (e.g., `"6.3x views:subscribers"`) and `rising_reason_types` (e.g., `"breakout"`).
- **Deep Channel Intelligence:** For every channel (popular or rising) you get `channel_id`, `channel_handle`, `subscriber_count`, `video_count`, `view_count`, `avg_views`, `growth_percent`, `growth_days`, and `created_at`.
- **Video Velocity:** Each trending video includes a `velocity` field (e.g., `"246K/hr"`) showing how fast it is accumulating views right now.
- **Rank Delta Tracking:** Know if a video is climbing, falling, or holding its position with `rank_delta_type` (`"up"`, `"down"`, `"same"`, `"new"`) and `rank_delta_value`.
- **YouTube Shorts Detection:** Videos are flagged with `is_short: true/false` so you can separate Shorts from regular content.
- **Exact Engagement Metrics:** Raw integer counts for `views`, `likes`, and `comments` alongside human-readable `views_formatted`, `likes_formatted`, and `comments_formatted`.
- **Rich Video Metadata:** Each video includes `video_id`, `thumbnail`, `duration`, `channel_id`, `channel_thumbnail`, `channel_subscriber_count`, `published_at` (ISO timestamp), `published_text` (e.g. `"3 days ago"`), `description`, and `language`.
- **Popular Keywords:** The day's hottest search keywords as a flat list of strings.
- **Timestamp:** Every dataset item includes a `scraped_at` ISO UTC timestamp.

### Input Parameters

The input of this scraper is a JSON object with the following fields:

| Field | Type | Description | Default |
| :--- | :--- | :--- | :--- |
| `country` | String | The country to scrape trends for (slug format, e.g., `united-kingdom`). | `world` |
| `category` | String | Category section to focus on (e.g., `music`, `gaming`, `all`). All categories on the page are always scraped. | `all` |

#### Supported Countries

- World
- India, Indonesia, United States, Brazil
- Saudi Arabia, France, Japan, Germany
- Thailand, United Kingdom, Turkey, Mexico
- Philippines, Spain, Vietnam, United Arab Emirates
- Russia, South Africa, Canada, Switzerland
- Australia, Chile, Netherlands, Italy, South Korea

### Output

Each dataset item is a complete snapshot of trends for the selected country, including:

- **`country`** — The country scraped.
- **`scraped_at`** — ISO UTC timestamp of the scrape.
- **`popular_channels`** — Ranked list of currently trending channels with full channel analytics.
- **`rising_channels`** — Channels breaking out based on views-to-subscribers ratio, with rising reasons.
- **`popular_keywords`** — Flat list of the day's hottest search terms.
- **`categories_data`** — Dictionary keyed by category slug (e.g. `"music"`, `"gaming"`) with full trending video lists per category.

#### Sample Output (abbreviated)

```json
{
  "country": "canada",
  "scraped_at": "2026-10-02T05:52:34.991697+00:00",
  "popular_channels": [
    {
      "rank": 1,
      "channel_id": "UCPC0L1d253x-KuMNwa05TpA",
      "channel_name": "Taylor Swift - Topic",
      "channel_handle": "@taylorswift",
      "channel_thumbnail": "https://yt3.ggpht.com/...",
      "subscriber_count": 718000,
      "video_count": 2154,
      "view_count": 10287434330,
      "avg_views": 4488372,
      "growth_percent": 0.0,
      "growth_days": 0,
      "description": "And, baby, that's show business for you...",
      "created_at": "2013-07-01T20:08:08Z",
      "rising_reasons": [],
      "rising_reason_types": [],
      "recent_videos": []
    }
  ],
  "rising_channels": [
    {
      "channel_name": "Taylor Swift - Topic",
      "subscriber_count": 718000,
      "rising_reasons": ["6.3x views:subscribers"],
      "rising_reason_types": ["breakout"],
      "recent_videos": []
    }
  ],
  "popular_keywords": ["punjabi song", "karan aujla", "saturday night", "fortnitemare"],
  "categories_data": {
    "music": {
      "name": "Music🏆 Dominated by Taylor Swift - Topic",
      "videos": [
        {
          "rank": 1,
          "rank_delta_type": "same",
          "rank_delta_value": 0,
          "video_id": "vRjaGgDsWSo",
          "title": "Casa Tupka Anthemo | @YoYoHoneySingh feat. Priyanshi | Full Video",
          "url": "https://youtube.com/watch?v=vRjaGgDsWSo",
          "thumbnail": "https://i.ytimg.com/vi/vRjaGgDsWSo/mqdefault.jpg",
          "duration": "3:06",
          "is_short": false,
          "channel_name": "Yo Yo Honey Singh",
          "channel_id": "UC1KonH1j8WMhc5cT6Bp7NtA",
          "channel_subscriber_count": 8740000,
          "published_at": "2026-09-19T05:30:09Z",
          "published_text": "12 days ago",
          "views": 76419776,
          "likes": 1439840,
          "comments": 111219,
          "views_formatted": "76M",
          "likes_formatted": "1.4M",
          "comments_formatted": "111K",
          "velocity": "246K/hr"
        }
      ]
    }
  }
}
```

### Related Actors

Expand your data collection with these other Apify Actors by the same author:

#### [YouTube Trending Videos by Categories Scraper](https://apify.com/eunit/youtube-trending-videos-by-categories)

- **URL:** <https://apify.com/eunit/youtube-trending-videos-by-categories>
- **Description:** Scrape real-time YouTube trending videos by country and category. Get detailed metrics like rank, title, views, likes, and channel name from 25+ countries. Monitor viral content, music, gaming, and more.

#### [Enhanced Twitter (X) Bot](https://apify.com/eunit/enhanced-twitter-x-bot)

- **URL:** <https://apify.com/eunit/enhanced-twitter-x-bot>
- **Description:** A versatile Twitter bot for powerful social media automation. This tool uses the Twitter API to auto-like, auto-follow, and manages your followers. Configure keywords, schedules, and safety limits for effective Twitter engagement and account growth.

#### [X (Twitter) Trends Scraper](https://apify.com/eunit/x-twitter-trends-scraper)

- **URL:** <https://apify.com/eunit/x-twitter-trends-scraper>
- **Description:** Scrape real-time Twitter/X trends from any country or city. Get top 50 trending hashtags, tweet counts, and hourly history. Ideal for social media monitoring, viral topic tracking, and market research. Fast, reliable, and supports granular location data.

#### [LinkedIn Job Posting Scraper](https://apify.com/eunit/linkedin-job-postings-scraper)

- **URL:** <https://apify.com/eunit/linkedin-job-postings-scraper>
- **Description:** Scrape job postings from LinkedIn. Extract job titles, companies, locations, and descriptions. Ideal for market research, salary analysis, and career planning. Fast, reliable, and supports granular location data.

### Your Feedback

We are always working on improving the performance of our Actors. If you've got any technical feedback for the [YouTube Popular Channels Scraper](https://apify.com/eunit/youtube-popular-channels-scraper) or simply found a bug, please create an issue on the [Actor's Issues tab](https://console.apify.com/actors/lwtPt5Ftg5CeAS54g/issues) in [Apify Console](https://console.apify.com/actors/lwtPt5Ftg5CeAS54g).

# Actor input Schema

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

Select the country to scrape trends for.

## `category` (type: `string`):

Select the category to filter trends by (optional). If 'All' is selected, data for the specific category section in the page will be returned along with general trends.

## Actor input object example

```json
{
  "country": "world",
  "category": "all"
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("eunit/youtube-popular-channels-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("eunit/youtube-popular-channels-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 '{}' |
apify call eunit/youtube-popular-channels-scraper --silent --output-dataset

```

## MCP server setup

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