jpskill.com
💼 ビジネス コミュニティ

youtube-video-api-skill

指定されたYouTubeチャンネルから、動画の詳細データやチャンネル登録者数、投稿頻度などを自動で取得し、競合チャンネルの分析やコンテンツ戦略に役立てられる情報を効率的に収集するSkill。

📜 元の英語説明(参考)

This 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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

指定されたYouTubeチャンネルから、動画の詳細データやチャンネル登録者数、投稿頻度などを自動で取得し、競合チャンネルの分析やコンテンツ戦略に役立てられる情報を効率的に収集するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o youtube-video-api-skill.zip https://jpskill.com/download/17645.zip && unzip -o youtube-video-api-skill.zip && rm youtube-video-api-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17645.zip -OutFile "$d\youtube-video-api-skill.zip"; Expand-Archive "$d\youtube-video-api-skill.zip" -DestinationPath $d -Force; ri "$d\youtube-video-api-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して youtube-video-api-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → youtube-video-api-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

YouTube Video API Skill

📖 はじめに

この Skill は、BrowserAct の YouTube Video API テンプレートを使用して、ユーザーに YouTube 動画のデータ抽出をワンストップで提供します。単一の API リクエストで、特定の YouTube チャンネルから構造化されたチャンネルレベルのデータと動画の詳細データを直接抽出できます。YouTube チャンネルの URL と動画の種類(Latest、Popular、Earliest)を入力するだけで、クリーンで、すぐに使える動画のメトリクスを取得できます。

✨ 特徴

  1. ハルシネーションがなく、安定した正確なデータ抽出を保証: 事前設定されたワークフローにより、生成 AI のハルシネーションを回避します。
  2. CAPTCHA の問題なし: reCAPTCHA やその他の認証の課題に対処する必要はありません。
  3. IP アクセス制限やジオブロッキングなし: 地域的な IP 制限に対処する必要はありません。
  4. よりアジャイルな実行速度: 純粋な AI 駆動のブラウザ自動化ソリューションと比較して、タスクの実行が高速です。
  5. 非常に高い費用対効果: 大量の Token を消費する AI ソリューションと比較して、データ取得コストを大幅に削減します。

🔑 API Key のガイダンスフロー

実行する前に、BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、まず他のアクションを実行しないでください。ユーザーにリクエストし、協力して提供されるのを待つ必要があります。 Agent はこの時点でユーザーに通知する必要があります:

"BrowserAct API Key がまだ設定されていないため、まず BrowserAct Console にアクセスして Key を取得してください。"

🛠️ 入力パラメータ

スクリプトを呼び出す際、Agent はユーザーのニーズに基づいて、以下のパラメータを柔軟に設定する必要があります。

  1. YouTube_channel_url

    • Type: string
    • Description: チャンネルの動画リストをロードするために使用される、ターゲットの YouTube チャンネル URL。
    • Example: https://www.youtube.com/@BrowserAct
  2. Video_type

    • Type: string
    • Description: チャンネルの動画リストを走査する際に使用する並べ替えモード。
    • Optional Values:
      • Latest
      • Popular
      • Earliest
    • Default: Popular

🚀 呼び出し方法

Agent は、次の独立したスクリプトを実行して、「1 つのコマンドで結果を得る」ことを実現する必要があります。

# 呼び出し例
python -u ./scripts/youtube_video_api.py "YouTube_channel_url" "Video_type"

⏳ 実行状況の監視

このタスクには自動化されたブラウザ操作が含まれるため、時間がかかる場合があります(数分)。スクリプトは、実行中にタイムスタンプ付きのステータスログを継続的に出力します(例:[14:30:05] Task Status: running)。 Agent の指示:

  • スクリプトが結果を返すのを待っている間、ターミナルの出力を監視してください。
  • ターミナルが新しいステータスログを出力している限り、タスクは正常に実行されています。デッドロックまたは応答がないと誤って判断しないでください。
  • ステータスが長時間変わらない場合、またはスクリプトの出力が停止し、結果が返されない場合は、リトライメカニズムを検討できます。

📊 データ出力の説明

正常に実行されると、スクリプトは API レスポンスから直接結果を解析して出力します。結果には以下が含まれます。

チャンネルフィールド

  • channel_title: チャンネルページに表示されるチャンネル名
  • channel_url: チャンネル URL
  • subscribers: チャンネルページに表示される登録者数

    動画フィールド

  • video_title: 動画ページに表示される動画タイトル
  • video_url: 動画 URL
  • publish_date: YouTube に表示される公開日または時刻
  • view_count: YouTube に表示される再生回数
  • video_duration: 動画の長さ
  • comment_count: コメントの総数(利用可能な場合)
  • like_count: いいね数(利用可能な場合)

⚠️ エラー処理とリトライ

スクリプトの実行中に、エラーが発生した場合(ネットワークの変動やタスクの失敗など)、Agent は以下のロジックに従う必要があります。

  1. 出力内容の確認:

    • 出力に "Invalid authorization"含まれている場合、API Key が無効であるか期限切れであることを意味します。この時点で、リトライせずに、ユーザーに再確認して正しい API Key を提供するように指示してください。
    • 出力に "Invalid authorization"含まれていないが、タスクの実行が失敗した場合(たとえば、出力が Error: で始まるか、戻り値が空の場合)、Agent は自動的にスクリプトをもう一度実行する必要があります
  2. リトライ制限:

    • 自動リトライは1 回に制限されています。2 回目の試行でも失敗した場合は、リトライを停止し、特定のエラー情報をユーザーに報告してください。

🌟 代表的なユースケース

  1. 競合他社の追跡: 競合他社のチャンネルのパフォーマンスの傾向と投稿頻度を追跡します。
  2. クリエイター調査: コンテンツクリエイターのエンゲージメントシグナルと人気のある動画を分析します。
  3. コンテンツ運用レポート: レポート作成のためにチャンネルの動画とパフォーマンス指標を監視します。
  4. 成長分析: どの動画タイプ(Latest/Popular)が成長を促進するかを理解します。
  5. データベースの自動化: 手動でエクスポートすることなく、チャンネルの動画を CRM またはデータベースに直接送信します。
  6. 市場調査: 特定の業界のさまざまなチャンネルにわたる動画のメトリクスを集計します。
  7. トレンドの発見: 特定のテクノロジーまたはゲームチャンネルで最も人気のある動画を特定します。
  8. 視聴者のエンゲージメント分析: 登録者数と動画の再生回数およびいいね数を関連付けます。
  9. コンテンツ戦略: チャンネルの最も初期の動画を確認して、その起源と成長の道筋を理解します。
  10. 自動化されたソーシャルモニタリング: 主要な業界リーダーがリリースした新しいコンテンツを常に把握します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

YouTube Video API Skill

📖 Introduction

This 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.

✨ Features

  1. No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
  2. No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP access restrictions and geo-blocking: No need to deal with regional IP restrictions.
  4. More agile execution speed: Compared to pure AI-driven browser automation solutions, task execution is faster.
  5. Extremely high cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of Tokens.

🔑 API Key Guidance Flow

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."

🛠️ Input Parameters

When calling the script, the Agent should flexibly configure the following parameters based on user needs:

  1. YouTube_channel_url

    • Type: string
    • Description: Target YouTube channel URL used to load the channel video list.
    • Example: https://www.youtube.com/@BrowserAct
  2. Video_type

    • Type: string
    • Description: Which ordering mode to use when traversing the channel video list.
    • Optional Values:
      • Latest
      • Popular
      • Earliest
    • Default: Popular

🚀 Invocation Method

The 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"

⏳ Running 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 (e.g., [14:30:05] Task Status: running) while running. Agent Instructions:

  • While waiting for the script to return results, please keep an eye on the terminal output.
  • As long as the terminal is still outputting new status logs, it means the task is running normally. Do not misjudge it as a deadlock or unresponsiveness.
  • 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 parse and print the results directly from the API response. The results include:

Channel fields

  • channel_title: Channel name displayed on the channel page
  • channel_url: Channel URL
  • subscribers: Subscriber count shown on the channel page

    Video fields

  • video_title: Video title shown on the video page
  • video_url: Video URL
  • publish_date: Published date or time shown on YouTube
  • view_count: View count shown on YouTube
  • video_duration: Video duration
  • comment_count: Total number of comments (if available)
  • like_count: Like count (if available)

⚠️ Error Handling & Retry

During script execution, if an error occurs (such as network fluctuation or task failure), the Agent should follow the logic below:

  1. 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, but 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 with Error: or the return result is empty), the Agent should automatically try to execute the script once more.
  2. Retry limits:

    • 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

  1. Competitor Tracking: Track performance trends and posting cadence of a competitor's channel.
  2. Creator Research: Analyze engagement signals and popular videos of content creators.
  3. Content Ops Reporting: Monitor channel videos and performance metrics for reporting.
  4. Growth Analytics: Understand what video types (Latest/Popular) drive growth.
  5. Database Automation: Send channel videos directly into CRM or databases without manual export.
  6. Market Research: Aggregate video metrics across different channels in a specific industry.
  7. Trend Spotting: Identify the most popular videos on specific tech or gaming channels.
  8. Audience Engagement Analysis: Correlate subscriber counts with video views and likes.
  9. Content Strategy: Review a channel's earliest videos to understand their origin and growth path.
  10. Automated Social Monitoring: Keep tabs on new content released by key industry leaders.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。