analyze_channel: Comprehensive channel analysis

View source: R/helper_functions.R

analyze_channelR Documentation

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,
  ...
)

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

Value

List containing comprehensive channel analysis

Examples

## Not run: 
# Basic channel analysis
analysis <- analyze_channel("UCuAXFkgsw1L7xaCfnd5JJOw")

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

## End(Not run)

tuber documentation built on March 25, 2026, 9:08 a.m.