技能 youtube-video-api-skill
📦

youtube-video-api-skill

低风险 🌐 网络访问⚡ 包含脚本

Extract YouTube channel and video metrics automatically

Manually scraping YouTube data is time-consuming and often blocked by CAPTCHA or geo-restrictions. This skill automates extraction of channel metadata, video details, and engagement metrics via BrowserAct API without manual intervention.

支持: Claude Codex Code(CC)
🥉 73 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“youtube-video-api-skill”。 Extract the latest 5 videos from the BrowserAct YouTube channel

预期结果:

Channel: BrowserAct (https://www.youtube.com/@BrowserAct)

Latest Videos:
1. Video Title - 12,500 views, published 2 days ago
2. Video Title - 8,200 views, published 1 week ago
3. Video Title - 15,700 views, published 2 weeks ago
4. Video Title - 6,400 views, published 3 weeks ago
5. Video Title - 9,100 views, published 1 month ago

正在使用“youtube-video-api-skill”。 Compare the subscriber counts and top videos between two tech channels

预期结果:

Channel A: 450K subscribers, average 25K views per video
Channel B: 320K subscribers, average 18K views per video

Channel A produces 2-3 videos per week with higher engagement rates.

正在使用“youtube-video-api-skill”。 Get the earliest videos from a channel to understand their growth

预期结果:

Earliest Videos from [Channel Name]:
- First video (2018): 500 views
- First year content: average 200 views
- Breakout video (2020): 50K views marked growth inflection
- Current performance: consistent 10K-15K views

安全审计

低风险
v1 • 4/28/2026

Static scanner flagged 52 potential issues, but all findings are false positives. Network access is legitimate BrowserAct API calls. Environment variable access is standard API key retrieval. External command warnings triggered by bash examples in documentation, not actual execution. No cryptographic operations, no malicious intent, no prompt injection detected.

2
已扫描文件
197
分析行数
4
发现项
1
审计总数
低风险问题 (2)
Network Access via HTTP Requests
Script uses Python requests library to call BrowserAct API. This is intentional and required for the skill's core functionality.
Environment Variable Access for API Key
Script retrieves BROWSERACT_API_KEY from environment. Standard credential management pattern for third-party API authentication.
审计者: claude

质量评分

45
架构
100
可维护性
87
内容
50
社区
86
安全
91
规范符合性

你能构建什么

Competitor Channel Monitoring

Track competitor YouTube channels by extracting their video performance metrics. Monitor posting frequency, engagement rates, and subscriber growth to inform your content strategy.

Creator Research and Analysis

Analyze engagement patterns across creator channels. Identify which video types (popular vs latest) drive most views, and correlate subscriber counts with video performance.

Automated Content Reporting

Automate YouTube channel monitoring for regular reporting. Extract structured data directly into databases or CRM systems without manual CSV exports.

试试这些提示

Get popular videos from a channel
Use the youtube-video-api-skill to extract the popular videos from the YouTube channel at [CHANNEL_URL] and show me their view counts and engagement metrics.
Track latest uploads
Apply the youtube-video-api-skill to get the latest 10 videos from [CHANNEL_URL] including their publish dates and view counts.
Channel performance comparison
Use the youtube-video-api-skill to extract metrics from [CHANNEL_URL_1] and [CHANNEL_URL_2], then compare their subscriber counts, average view counts, and posting frequency.
Comprehensive channel audit
Run the youtube-video-api-skill for [CHANNEL_URL] using both Popular and Earliest video types. Generate a summary report with channel info, video counts, and engagement trends.

最佳实践

  • Always verify the BROWSERACT_API_KEY environment variable is set before invoking the skill to avoid authentication errors
  • Use the Popular video type as default for competitive analysis, as it shows the most relevant content
  • Check for 'Invalid authorization' in output first during error handling, as this indicates API key issues requiring user intervention

避免

  • Do not pass unvalidated channel URLs directly to the script without verifying they are valid YouTube URLs
  • Do not retry the script more than once for non-authentication errors, as repeated failures indicate underlying issues
  • Do not assume the skill can extract private or members-only content; it only accesses publicly visible YouTube data

常见问题

What is BrowserAct and why is it needed?
BrowserAct is a browser automation service that handles CAPTCHA, geo-blocking, and anti-scraping measures. The skill uses BrowserAct API to reliably extract YouTube data without manual scraping challenges.
How do I get a BrowserAct API key?
Visit https://www.browseract.com/reception/integrations to obtain your API key. Set it as the BROWSERACT_API_KEY environment variable or provide it directly when prompted by the agent.
Why does the task take several minutes to complete?
The skill uses automated browser operations to navigate YouTube pages, which requires time for page loading and data extraction. Polling occurs every 10 seconds with a maximum wait of 5 minutes.
What video types can I extract?
You can extract videos ordered by Popular (default), Latest, or Earliest. Popular shows highest-viewed content, Latest shows most recent uploads, and Earliest shows oldest videos on the channel.
Can I extract data from private or unlisted videos?
No, the skill only accesses publicly visible YouTube content. Private, unlisted, or age-restricted videos cannot be extracted through this skill.
How do I handle API key errors?
If you see 'Invalid authorization' in the output, check your BrowserAct API key at https://www.browseract.com/reception/integrations. Do not retry; resolve the key issue first by updating your environment variable.