Learn R Programming

tuber (version 2.0.0)

analyze_channel: Comprehensive channel analysis

Description

Performs a complete analysis of a YouTube channel including basic info, statistics, recent videos, and performance metrics.

Usage

analyze_channel(
  channel_id,
  max_videos = 50,
  auth = "key",
  include_comments = FALSE,
  ...
)

Value

List containing comprehensive channel analysis

Arguments

channel_id

Channel ID to analyze

max_videos

Maximum number of recent videos to analyze (default: 50)

auth

Authentication method: "token" (OAuth2) or "key" (API key)

include_comments

Whether to fetch comment statistics (requires more quota)

...

Additional arguments passed to API functions

Examples

Run this code
if (FALSE) {
# Basic channel analysis
analysis <- analyze_channel("UCuAXFkgsw1L7xaCfnd5JJOw")

# Detailed analysis with comments
detailed <- analyze_channel("UCuAXFkgsw1L7xaCfnd5JJOw",
                           max_videos = 100,
                           include_comments = TRUE)
}

Run the code above in your browser using DataLab