视频数据提取_youtube-api-skill 以下为本文档的中文说明YouTube API 自动化数据提取技能是一个通过 BrowserAct API 自动提取 YouTube 视频详细指标和频道信息的专业工具。它的功能非常强大通过搜索关键词和上传日期过滤器自动遍历 YouTube 视频结果列表打开每个视频详情页面直接返回结构化、即用型的数据包括播放量、点赞数、评论数、频道订阅数等关键指标。使用场景覆盖所有需要 YouTube 数据支撑的工作提取特定关键词的 YouTube 视频详细数据、监控竞争对手频道的最新视频表现、收集特定话题的视频互动数据、查找本周发布的 AI 代理教程并提取指标、评估特定视频的总观看量和订阅者信息、追踪特定技术话题的视频趋势、定期收集营销活动视频指标等。该技能的核心特点在于稳定性和准确性。它采用预设工作流避免 AI 产生的幻觉无需处理 reCAPTCHA 验证不受 IP 限制和地理封锁影响执行速度比传统自动化工具快 10 倍以上。设计原则强调即用型和零维护数据直接以结构化格式返回无需清洗和整理可直接用于分析和决策。该技能的设计充分考虑了实际使用场景中的需求多样性和复杂性通过模块化的功能组织和清晰的接口定义使得用户能够快速上手并高效完成目标任务。它不仅在功能上YouTube API Automated Extraction Skill Skill IntroductionThis 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.✨ FeaturesNo Hallucinations, Ensuring Stable and Accurate Data Extraction: Pre-set workflow avoids AI-generated hallucinations.No CAPTCHA Issues: No need to handle reCAPTCHA or other verification challenges.No IP Restrictions and Geofencing: No need to deal with regional IP restrictions.Faster Execution Speed: Compared to pure AI-driven browser automation solutions, task execution is faster.Extremely High Cost-Effectiveness: Compared to AI solutions that consume a large amount of tokens, it can significantly reduce data acquisition costs. API Key Guide FlowBefore running, you need to check theBROWSERACT_API_KEYenvironment 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.”️ Input ParametersWhen invoking the script, the Agent should flexibly configure the following parameters based on user needs:KeyWords (Search Keywords)Type:stringDescription: Search keywords used to find videos on YouTube.Example:Openclaw,AI agent,browser automationUpload_date (Upload Date Filter)Type:stringDescription: Filter videos by recency in YouTube search results.Supported values:TodayThis weekThis monthThis yearDefault:This week Invocation Method (Recommended)The Agent should execute the following standalone script to achieve “one command to get results”:# Invocation examplepython-u./scripts/youtube_api.pykeywordsupload_date⏳ Execution Status MonitoringSince this task involves automated browser operations, it may take a long time (several minutes). The script willcontinuously output status logs with timestampswhile running (e.g.,[14:30:05] Task Status: running).Notice for Agent:While waiting for the script to return results, please keep paying attention to the terminal output.As long as the terminal is still outputting new status logs, it means the task is running normally. Please do not misjudge it as a deadlock or unresponsive.If the status remains unchanged for a long time or the script stops outputting and no result is returned, the retry mechanism can be considered. Data Output DescriptionAfter 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 count⚠️ Error Handling RetryDuring the execution of the script, if an error is encountered (such as network fluctuations or task failure), the Agent should follow this logic:Check the output content:If the outputcontainsInvalid 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.If the outputdoes not containInvalid authorizationbut the task execution fails (for example, the output starts withError:or the returned result is empty), the Agent shouldautomatically try to execute the script again once.Retry limit:Automatic retry is limited toonce. If the second attempt still fails, stop retrying and report the specific error information to the user. Typical Use CasesContent Monitoring: Weekly track and extract detailed performance metrics of specific topics.Competitor Scanning: Analyze the recent video details, views, and likes of competitor channels.Campaign Tracking: Track specific promotional campaigns and evaluate their video interaction metrics.Market Research: Collect structured data of videos in specific niches for deep research.Trend Analysis: Analyze which types of videos have higher engagement rates in a specific industry.Creator Analytics: Monitor specific YouTube creators’ video durations, views, and comments.Engagement Evaluation: Gather comment and like counts across multiple videos for sentiment estimation.Video Discovery: Find top-performing tutorials or product reviews from the past week.Data Enrichment: Build searchable video intelligence datasets for BI tools or CRM.Automated Reporting: Extract weekly video performance metrics to feed into reporting workflows.