youtube-api-skill
YouTubeで特定のキーワードに関する動画の詳細なデータや競合チャンネルの状況、コメント数などを自動的に収集し、マーケティングやトレンド分析に役立てる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.
🇯🇵 日本人クリエイター向け解説
YouTubeで特定のキーワードに関する動画の詳細なデータや競合チャンネルの状況、コメント数などを自動的に収集し、マーケティングやトレンド分析に役立てるSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o youtube-api-skill.zip https://jpskill.com/download/17637.zip && unzip -o youtube-api-skill.zip && rm youtube-api-skill.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17637.zip -OutFile "$d\youtube-api-skill.zip"; Expand-Archive "$d\youtube-api-skill.zip" -DestinationPath $d -Force; ri "$d\youtube-api-skill.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
youtube-api-skill.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
youtube-api-skillフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 2
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
YouTube API 自動抽出 Skill
📖 Skill の紹介
この Skill は、BrowserAct の YouTube API テンプレートを通じて、自動化されたデータ抽出サービスをユーザーに提供します。YouTube から構造化された動画のメトリクスやチャンネル情報を直接抽出できます。検索キーワードとアップロード日のフィルターを入力するだけで、動画の検索結果リストを巡回し、各動画の詳細ページを開き、すぐに使えるクリーンなデータを直接返します。
✨ 特徴
- ハルシネーションなし、安定した正確なデータ抽出を保証: 事前設定されたワークフローにより、AI が生成するハルシネーションを回避します。
- CAPTCHA の問題なし: reCAPTCHA やその他の認証課題に対処する必要はありません。
- IP 制限とジオフェンシングなし: 地域的な IP 制限に対処する必要はありません。
- より速い実行速度: 純粋な AI 駆動のブラウザ自動化ソリューションと比較して、タスクの実行がより高速です。
- 非常に高い費用対効果: 大量のトークンを消費する AI ソリューションと比較して、データ取得コストを大幅に削減できます。
🔑 API Key ガイドフロー
実行する前に、BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、まず他のアクションを実行しないでください。ユーザーに要求し、共同で提供されるのを待つ必要があります。
Agent はこの時点でユーザーに通知する必要があります:
"BrowserAct API Key がまだ設定されていないため、まず BrowserAct Console にアクセスして Key を取得してください。"
🛠️ 入力パラメータ
スクリプトを呼び出す際、Agent はユーザーのニーズに基づいて、以下のパラメータを柔軟に設定する必要があります。
-
KeyWords (検索キーワード)
- Type:
string - Description: YouTube で動画を検索するために使用される検索キーワード。
- Example:
Openclaw,AI agent,browser automation
- Type:
-
Upload_date (アップロード日フィルター)
- Type:
string - Description: YouTube の検索結果で、動画を最新度でフィルタリングします。
- Supported values:
TodayThis weekThis monthThis year
- Default:
This week
- Type:
🚀 呼び出し方法 (推奨)
Agent は、"1 つのコマンドで結果を取得" するために、以下のスタンドアロンスクリプトを実行する必要があります。
# 呼び出し例
python -u ./scripts/youtube_api.py "keywords" "upload_date"
⏳ 実行状況の監視
このタスクには自動化されたブラウザ操作が含まれるため、時間がかかる場合があります (数分)。スクリプトは、実行中に タイムスタンプ付きのステータスログを継続的に出力 します (例: [14:30:05] Task Status: running)。
Agent への注意:
- スクリプトが結果を返すのを待っている間、ターミナルの出力に注意してください。
- ターミナルが新しいステータスログを出力している限り、タスクは正常に実行されています。デッドロックまたは応答がないと誤って判断しないでください。
- ステータスが長時間変わらない場合、またはスクリプトの出力が停止し、結果が返されない場合は、再試行メカニズムを検討できます。
📊 データ出力の説明
正常に実行されると、スクリプトは API レスポンスから結果を直接解析して出力します。結果には以下が含まれます。
channel_title: 動画ページに表示されるチャンネル名channel_url: チャンネル URLsubscribers: チャンネルに表示される登録者数video_title: 動画ページに表示される動画タイトルvideo_url: 動画 URLpublish_date: YouTube に表示される公開日または時刻view_count: YouTube に表示される再生回数video_duration: 動画の長さcomment_count: コメントの総数like_count: いいね数
⚠️ エラー処理と再試行
スクリプトの実行中に、エラーが発生した場合 (ネットワークの変動やタスクの失敗など)、Agent は次のロジックに従う必要があります。
-
出力内容の確認:
- 出力に
"Invalid authorization"が 含まれている 場合、API Key が無効であるか、期限切れであることを意味します。この時点で、再試行しないでください。ユーザーに再確認して正しい API Key を提供するように指示する必要があります。 - 出力に
"Invalid authorization"が 含まれていない が、タスクの実行が失敗した場合 (たとえば、出力がError:で始まるか、返された結果が空の場合)、Agent は 自動的にスクリプトをもう一度実行する必要があります。
- 出力に
-
再試行制限:
- 自動再試行は 1 回 に制限されています。2 回目の試行が失敗した場合も、再試行を停止し、特定のエラー情報をユーザーに報告してください。
🌟 典型的なユースケース
- コンテンツモニタリング: 特定のトピックの詳細なパフォーマンス指標を毎週追跡および抽出します。
- 競合他社スキャン: 競合他社のチャンネルの最近の動画の詳細、再生回数、いいね数を分析します。
- キャンペーン追跡: 特定のプロモーションキャンペーンを追跡し、動画のインタラクション指標を評価します。
- 市場調査: 特定のニッチ市場の動画の構造化データを収集して、詳細な調査を行います。
- トレンド分析: 特定の業界で、どの種類の動画のエンゲージメント率が高いかを分析します。
- クリエイター分析: 特定の YouTube クリエイターの動画の長さ、再生回数、コメントを監視します。
- エンゲージメント評価: 感情分析のために、複数の動画のコメント数といいね数を収集します。
- 動画ディスカバリー: 過去 1 週間のトップパフォーマンスのチュートリアルまたは製品レビューを見つけます。
- データエンリッチメント: BI ツールまたは CRM 用の検索可能な動画インテリジェンスデータセットを構築します。
- 自動レポート: 毎週の動画パフォーマンス指標を抽出して、レポートワークフローにフィードします。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
YouTube API Automated Extraction Skill
📖 Skill Introduction
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.
✨ Features
- No 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 Flow
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."
🛠️ Input Parameters
When invoking the script, the Agent should flexibly configure the following parameters based on user needs:
-
KeyWords (Search Keywords)
- Type:
string - Description: Search keywords used to find videos on YouTube.
- Example:
Openclaw,AI agent,browser automation
- Type:
-
Upload_date (Upload Date Filter)
- Type:
string - Description: Filter videos by recency in YouTube search results.
- Supported values:
TodayThis weekThis monthThis year
- Default:
This week
- Type:
🚀 Invocation Method (Recommended)
The 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"
⏳ Execution Status Monitoring
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:
- 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 Description
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 count
⚠️ Error Handling & Retry
During 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 output contains
"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. - If the output does not contain
"Invalid authorization"but the task execution fails (for example, the output starts withError:or the returned result is empty), the Agent should automatically try to execute the script again once.
- If the output contains
-
Retry limit:
- Automatic retry is limited to once. If the second attempt still fails, stop retrying and report the specific error information to the user.
🌟 Typical Use Cases
- Content 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.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (6,510 bytes)
- 📎 scripts/youtube_api.py (3,934 bytes)