# 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
- **Stats:** 27 total users, 3 monthly users, 98.9% 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouTube Trends & Channels Scraper

This Apify Actor scrapes trending data from YouTube. It extracts popular channels, trending videos by category, and popular keywords for over 25 countries.

### 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, etc.
- **Detailed Stats:** Extracts views, likes, comments, and metadata for each video.
- **Popular Channels:** Retrieves the list of currently buzzing channels and their recent videos.
- **Popular Keywords:** Gets the hottest keywords of the day.

### 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 | The specific category section to focus on (e.g., `music`, `gaming`, `all`). | `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

The results are stored in the default dataset. Each item represents a snapshot of the trends for the selected country and includes:

- **Country:** The country scraped.
- **Scraped URL:** The source URL.
- **Popular Channels:** List of channels with their recent trending videos.
- **Popular Keywords:** List of top keywords.
- **Categories Data:** A dictionary where keys are category IDs and values contain the list of trending videos in that category.

#### Sample Output

```json
{
  "country": "united-kingdom",
  "popular_channels": [
    {
      "channel_name": "MrBeast",
      "recent_videos": [
        { "title": "I Built 100 Houses", "url": "https://youtube.com/..." }
      ]
    }
  ],
  "popular_keywords": ["football", "election", "music"],
  "categories_data": {
    "music": {
      "name": "Music",
      "videos": [
        {
          "rank": "1",
          "title": "New Song - Official Video",
          "stats": {
            "views": "1.2M",
            "likes": "50K",
            "comments": "2K"
          }
        }
      ]
    }
  }
}
```

### Related Actors

Expand your data collection capabilities with these other powerful Apify Actors developed 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. So if you’ve got any technical feedback for the [Youtube Popular Channels Scraper](https://apify.com/eunit/youtube-popular-channels-scraper) Actor 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=eunit/youtube-popular-channels-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/lwtPt5Ftg5CeAS54g/builds/w39gosfEeKoN3VIiC/openapi.json
