browser-act/youtube-api-skill
This skill helps users automatically extract detailed video metrics and channel information from YouTube based on keyword searches using the BrowserAct API. The Agent should proactively apply this skill when users express needs such as extract specific keyword YouTube video detailed data, monitor the latest video performance of competitor channels, collect comment and like counts for videos on a specific topic, find AI agent tutorials published this week and extract metrics, evaluate total views and subscriber info for specific videos, scrape detailed metrics of marketing campaign videos, track video trends for a tech topic periodically, get high quality video list data for specified keywords on YouTube, mine detailed information of the latest YouTube videos, collect video duration and engagement data for specific industries, or monitor YouTube content creator performance metrics.
npx skills add https://github.com/browser-act/skills --skill youtube-api-skill
This skill provides users with an automated data extraction service through BrowserAct's YouTube API template. It can directly extract structured video metrics and channel information from YouTube. By simply inputting search keywords and upload date filters, it traverses the video results list, opens each video detail page, and directly returns clean, ready-to-use data.
Before running, you need to 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.
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 invoking the script, the Agent should flexibly configure the following parameters based on user needs:
stringOpenclaw, AI agent, browser automationstringTodayThis weekThis monthThis yearThis weekThe Agent should execute the following standalone script to achieve "one command to get results":
# Invocation example
python -u ./scripts/youtube_api.py "keywords" "upload_date"
Since this task involves automated browser operations, it may take a long time (several minutes). The script will continuously output status logs with timestamps while running (e.g., [14:30:05] Task Status: running).
Notice for Agent:
After successful execution, the script will directly parse and print the results from the API response. The results include:
channel_title: Channel name displayed on the video pagechannel_url: Channel URLsubscribers: Subscriber count shown on the channelvideo_title: Video title shown on the video pagevideo_url: Video URLpublish_date: Publish date or time shown on YouTubeview_count: View count shown on YouTubevideo_duration: Video durationcomment_count: Total comment countlike_count: Like countDuring the execution of the script, if an error is encountered (such as network fluctuations or task failure), the Agent should follow this logic:
"Invalid authorization", it means the API Key is invalid or expired. At this time, do not retry, you should 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 returned result is empty), the Agent should automatically try to execute the script again once.10. Automated Reporting: Extract weekly video performance metrics to feed into reporting workflows.
Take browser-act/youtube-api-skill from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.