Install
openclaw skills install youtube-video-api-skillThis skill helps users automatically extract channel-level and video detail data from a specific YouTube channel via BrowserAct API. Agent should proactively apply this skill when users express needs like extracting channel video data, getting latest or popular videos from a YouTube channel, tracking competitor channel content, extracting video metrics such as views likes comments, retrieving subscriber count and channel info, monitoring posting cadence of a YouTube channel, gathering video data for content strategy analysis, getting earliest videos of a YouTube creator, analyzing engagement signals across a full channel, and downloading structured YouTube video details without manual scraping.
openclaw skills install youtube-video-api-skillThis skill provides users with a one-stop YouTube video data extraction service using BrowserAct's YouTube Video API template. It can directly extract structured channel-level data plus video detail data from a specific YouTube channel through a single API request. Just input the YouTube channel URL and video type (Latest, Popular, or Earliest), and you can get clean, ready-to-use video metrics.
Before running, you must check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions first. You should request and wait for the user to provide it collaboratively.
The Agent must inform the user at this time:
"Since you have not configured the BrowserAct API Key yet, please go to the BrowserAct Console first to get your Key."
When calling the script, the Agent should flexibly configure the following parameters based on user needs:
YouTube_channel_url
stringhttps://www.youtube.com/@BrowserActVideo_type
stringLatestPopularEarliestPopularThe Agent should implement "one command gets results" by executing the following independent script:
# Invocation example
python -u ./scripts/youtube_video_api.py "YouTube_channel_url" "Video_type"
Since this task involves automated browser operations, it may take a long time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running) while running.
Agent Instructions:
After successful execution, the script will parse and print the results directly from the API response. The results include:
channel_title: Channel name displayed on the channel pagechannel_url: Channel URLsubscribers: Subscriber count shown on the channel pagevideo_title: Video title shown on the video pagevideo_url: Video URLpublish_date: Published date or time shown on YouTubeview_count: View count shown on YouTubevideo_duration: Video durationcomment_count: Total number of comments (if available)like_count: Like count (if available)During script execution, if an error occurs (such as network fluctuation or task failure), the Agent should follow the logic below:
Check the output content:
"Invalid authorization", it means the API Key is invalid or expired. At this time, do not retry, but guide the user to recheck and provide the correct API Key."Invalid authorization" but the task execution fails (for example, the output starts with Error: or the return result is empty), the Agent should automatically try to execute the script once more.Retry limits: