API Reference
YTubeInsight: A Python package for YouTube channel analytics.
This package provides tools to analyze YouTube channels, including video count tracking and detailed video information extraction.
- exception ytubeinsight.YTubeInsightError[source]
Bases:
ExceptionBase exception class for YTubeInsight.
- ytubeinsight.analyze_channel(channel_input, api_key, is_channel_id=False)[source]
Analyze a YouTube channel and return video data for the past year.
- Parameters:
channel_input (str) – Either a full channel URL or channel ID
api_key (str) – YouTube Data API key
is_channel_id (bool) – Indicates if channel_input is a channel ID
- Returns:
Contains video count and list of video data
- Return type:
dict
- Raises:
YTubeInsightError – If any error occurs during the analysis process
- ytubeinsight.analyze_channel(channel_input, api_key, is_channel_id=False)[source]
Analyze a YouTube channel and return video data for the past year.
- Parameters:
channel_input (str) – Either a full channel URL or channel ID
api_key (str) – YouTube Data API key
is_channel_id (bool) – Indicates if channel_input is a channel ID
- Returns:
Contains video count and list of video data
- Return type:
dict
- Raises:
YTubeInsightError – If any error occurs during the analysis process