# Youtube Channel Scraper (`powerful_bachelor/youtube-channel-scraper`) Actor

The YouTube Channel Scraper is a powerful tool for extracting detailed info from YT channels. It retrieves video count 📹, subscribers count 📊, description 📝, verification status ✅, keywords 🏷️, tags 🔖, view count 👁️, and social media links 🔗. Ideal for researchers, marketers, and creators!!

- **URL**: https://apify.com/powerful_bachelor/youtube-channel-scraper.md
- **Developed by:** [Powerful Bachelor](https://apify.com/powerful_bachelor) (community)
- **Categories:** SEO tools
- **Stats:** 105 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.40 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper

[![Actor status](https://apify.com/actor-badge?actor=powerful_bachelor/Youtube-Channel-Scraper-Pro)](https://apify.com/powerful_bachelor/Youtube-Channel-Scraper-Pro)

### 📋 Introduction

The YouTube Channel Scraper is a comprehensive, user-friendly tool designed for extracting detailed information about YouTube channels. This powerful utility streamlines the collection of essential data, enabling thorough analysis and insights into channel performance, content strategy, and audience engagement. It's an ideal solution for researchers, marketing professionals, content creators, and social media analysts aiming to optimize their YouTube strategies.

### 🛠 Main Features

- **📄 Channel Overview:** Retrieve key information such as channel description, video count, subscribers count, and verification status.
- **🔑 Keyword and Tag Analysis:** Extract keywords and tags used by the channel for enhanced SEO and content strategy.
- **📈 Performance Metrics:** Gather data on video counts, view counts, and subscriber trends to assess channel growth and engagement.
- **🗂 Comprehensive Insights:** Obtain detailed channel insights, including the channel's description, keywords, tags, and country of origin.
- **🔗 Social Media Links:** Collect and display links to the channel's associated social media profiles and other important links.
- **📊 Versatile Use Cases:** Suitable for a wide range of purposes, from analyzing content strategies to conducting market research, tracking channel growth, and optimizing SEO efforts.
- **🎯 Flexible Data Export Options:** Supports exporting data in various formats such as JSON, CSV, Excel, or HTML, catering to different analytical needs.

### 📋 Getting Started

To start using the YouTube Channel Scraper:

1. Navigate to the tool on the Apify Store.
2. Enter the URL(s) of the YouTube channel(s) you are interested in analyzing.
3. Click "Save & Start" to kick off the data extraction process.
4. Download the compiled data in your chosen format for further analysis and integration into your projects.

### Input Configuration

Configure your scraping task with inputs in JSON format, as shown below:

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/@Apify"
    }
  ]
}
```

### Output Overview

Following a successful data extraction, the output is neatly organized in a structured table format. This table provides key metrics and insights from the analyzed YouTube channels, delivering a clear, comprehensive overview of the data collected.

```
{
  "channel_name": "Apify",
  "channel_urls": ["http://www.youtube.com/@Apify"],
  "thumbnail_url": "https://yt3.googleusercontent.com/0C0AcuOEiqNP-o03aAu21FOLlIYgRjGAO6Y4SZH8TFgfQG1jEro5ydVeGSx15VNcMryQ5GpV=s900-c-k-c0x00ffffff-no-rj",
  "tags": [
    "web automation",
    "web scraping",
    "web crawling",
    "apify",
    "node.js",
    "javascript",
    "RPA",
    "data extraction",
    "crawlee",
    "data for AI",
    "RAG",
    "retrieval augmented generation",
    "GPT"
  ],
  "keywords": "\"web automation\" \"web scraping\" \"web crawling\" apify node.js javascript RPA \"data extraction\" crawlee \"data for AI\" RAG \"retrieval augmented generation\" GPT",
  "is_verified_artist": false,
  "is_verified": false,
  "is_family_safe": true,
  "channel_id": "UCTgwcoeGGKmZ3zzCXN2qo_A",
  "view_count": "333,052 views",
  "description": "Welcome to Apify’s official YouTube channel!\n\nApify is a web scraping and automation platform, which lets you automate anything you can do in a web browser 🚀\n\nGather data with pre-built tools we call Actors and further use it to feed generative AI or for lead generation, machine learning, market research, and a myriad of other use cases 🤖\n\nAre you a developer? Build your own Actors and publish them on Apify Store to earn passive income 💸\n\nSubscribe now for tutorials on how to use our Actors, build your own ones, utilize our open-source libraries, or learn about various web scraping technologies 📖\n",
  "country": "Czechia",
  "video_count": "99 videos",
  "subscriber_count": "3.37K subscribers",
  "social_media_links": {
    "Try Apify for FREE": "apify.com",
    "Join dev community on Discord": "discord.com/invite/jyEM2PRvMU",
    "LinkedIn": "linkedin.com/company/apifytech",
    "Twitter": "twitter.com/apify",
    "GitHub": "github.com/apify",
    "Apify Docs": "docs.apify.com",
    "Get a custom scraper": "apify.com/enterprise"
  },
  "available_countries": ["LT", "GT", "AL",...]
}

```

### 🚀 Transform Your Data Insights

Boost your projects and strategies by tapping into the valuable insights obtained from YouTube channels with the YouTube Channel Scraper. Begin utilizing the extensive data from YouTube channels now to make informed choices that fuel your success.

# Actor input Schema

## `channelNames` (type: `array`):

Insert the Youtube Channel Names that you want to scrape

## `channelUrls` (type: `array`):

URLs to start with

## Actor input object example

```json
{
  "channelNames": [
    "Apify",
    "MrBeast"
  ],
  "channelUrls": [
    {
      "url": "https://www.youtube.com/@Apify"
    }
  ]
}
```

# 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 = {
    "channelNames": [
        "Apify",
        "MrBeast"
    ],
    "channelUrls": [
        {
            "url": "https://www.youtube.com/@Apify"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerful_bachelor/youtube-channel-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 = {
    "channelNames": [
        "Apify",
        "MrBeast",
    ],
    "channelUrls": [{ "url": "https://www.youtube.com/@Apify" }],
}

# Run the Actor and wait for it to finish
run = client.actor("powerful_bachelor/youtube-channel-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 '{
  "channelNames": [
    "Apify",
    "MrBeast"
  ],
  "channelUrls": [
    {
      "url": "https://www.youtube.com/@Apify"
    }
  ]
}' |
apify call powerful_bachelor/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

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