youtube-transcript-extractor-api-skill
指定されたYouTube動画から、字幕やメタデータを自動で取得し、内容分析や要約、チャンネル情報の収集などを効率的に行い、AIによる要約やデータセット作成にも活用できる情報を抽出するSkill。
📜 元の英語説明(参考)
This skill helps users automatically extract YouTube video transcripts and metadata via the BrowserAct API. The Agent should proactively apply this skill when users express needs like extracting full transcript from a specific YouTube video, getting subtitles and metadata for video content analysis, gathering video titles and likes counts, summarizing YouTube videos without watching them, collecting channel details from a video URL, tracking transcript automation for specific videos, scraping YouTube subtitles for internal knowledge bases, fetching full video content for AI summarization pipelines, downloading structured transcripts from YouTube links, analyzing video text content for media research, monitoring video publisher information and channel links, or building datasets from YouTube video transcripts.
🇯🇵 日本人クリエイター向け解説
指定されたYouTube動画から、字幕やメタデータを自動で取得し、内容分析や要約、チャンネル情報の収集などを効率的に行い、AIによる要約やデータセット作成にも活用できる情報を抽出するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o youtube-transcript-extractor-api-skill.zip https://jpskill.com/download/17644.zip && unzip -o youtube-transcript-extractor-api-skill.zip && rm youtube-transcript-extractor-api-skill.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17644.zip -OutFile "$d\youtube-transcript-extractor-api-skill.zip"; Expand-Archive "$d\youtube-transcript-extractor-api-skill.zip" -DestinationPath $d -Force; ri "$d\youtube-transcript-extractor-api-skill.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
youtube-transcript-extractor-api-skill.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
youtube-transcript-extractor-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 Transcript Extractor API Skill
📖 はじめに
このスキルは、BrowserAct の YouTube Transcript Extractor API テンプレートを使用した、ワンストップの動画文字起こし抽出サービスを提供します。あらゆる YouTube 動画から、動画の完全な文字起こしとメタデータを直接抽出できます。TargetURL を指定するだけで、すぐに使えるクリーンな文字起こしとメタデータを入手できます。
✨ 特徴
- ハルシネーションがなく、安定した正確なデータ抽出を保証: 事前設定されたワークフローにより、生成 AI のハルシネーションを回避します。
- CAPTCHA の問題なし: reCAPTCHA やその他の検証課題に対処する必要はありません。
- IP アクセス制限やジオフェンシングなし: 地域ごとの IP 制限に対処する必要はありません。
- より高速な実行: 純粋な AI 駆動のブラウザ自動化ソリューションと比較して、タスクの実行がはるかに高速です。
- 高い費用対効果: 大量のトークンを消費する AI ソリューションと比較して、データ取得コストを大幅に削減します。
🔑 API キーの設定
実行する前に、BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、他のアクションを実行しないでください。ユーザーにリクエストして、提供されるのを待つ必要があります。
エージェントは、この時点でユーザーに通知する必要があります:
「BrowserAct API Key がまだ設定されていないため、BrowserAct Console にアクセスして、最初にキーを取得してください。」
🛠️ 入力パラメータ
エージェントは、スクリプトを呼び出す際に、ユーザーのニーズに基づいて次のパラメータを設定する必要があります。
- TargetURL (ターゲット URL)
- タイプ:
string - 説明: 文字起こしとメタデータを抽出する YouTube 動画の URL。
- 例:
https://www.youtube.com/watch?v=st534T7-mdE
- タイプ:
🚀 使用方法 (推奨)
エージェントは、次の独立したスクリプトを実行して、「ワンコマンドで結果を得る」ことを実現する必要があります。
# 実行例
python -u ./scripts/youtube_transcript_extractor_api.py "TargetURL"
⏳ 実行状況の監視
このタスクには自動化されたブラウザ操作が含まれるため、時間がかかる場合があります(数分)。実行中、スクリプトはタイムスタンプ付きのステータスログを継続的に出力します(例:[14:30:05] Task Status: running)。
エージェントへの指示:
- スクリプトが結果を返すのを待っている間、ターミナル出力を監視してください。
- ターミナルが新しいステータスログを出力し続けている限り、タスクは正常に実行されていることを意味します。デッドロックや無応答と誤って判断しないでください。
- ステータスが長時間変化しない場合、またはスクリプトが結果を返さずに停止した場合にのみ、再試行メカニズムをトリガーすることを検討してください。
📊 データ出力の説明
正常に実行されると、スクリプトは API レスポンスから直接結果を解析して出力します。結果には以下が含まれます。
video_title: YouTube 動画のタイトルvideo_url: 元の動画への直接リンクpublisher: 動画を公開しているチャンネルの名前channel_link: パブリッシャーの YouTube チャンネルの URLvideo_likes_count: 動画が受け取った「いいね」の数transcript: 動画から抽出された完全な文字起こし/字幕
⚠️ エラー処理と再試行
スクリプトの実行中にエラーが発生した場合(ネットワークの変動やタスクの失敗など)、エージェントは次のロジックに従う必要があります。
-
出力内容の確認:
- 出力に
"Invalid authorization"が含まれている場合、API キーが無効であるか期限切れであることを意味します。この場合、再試行しないでください。ユーザーに正しい API キーを確認して提供するように指示してください。 - 出力に
"Invalid authorization"が含まれていないが、タスクの実行が失敗した場合(たとえば、出力がError:で始まるか、空の結果を返す場合)、エージェントは自動的にスクリプトをもう一度実行する必要があります。
- 出力に
-
再試行制限:
- 自動再試行は1 回のみに制限されています。2 回目の試行でも失敗した場合は、再試行を停止し、特定のエラーメッセージをユーザーに報告してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
YouTube Transcript Extractor API Skill
📖 Introduction
This skill provides a one-stop video transcript extraction service using BrowserAct's YouTube Transcript Extractor API template. It can directly extract full video transcripts and metadata from any YouTube video. By simply providing the TargetURL, you can get clean, ready-to-use transcript and metadata.
✨ Features
- No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid generative AI hallucinations.
- No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
- No IP access restrictions or geofencing: No need to deal with regional IP limits.
- Faster execution: Compared to pure AI-driven browser automation solutions, task execution is much faster.
- High cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume large amounts of tokens.
🔑 API Key Setup
Before running, you must check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions; you must request and wait for the user to provide it.
The Agent must inform the user at this point:
"Since you haven't configured the BrowserAct API Key yet, please go to the BrowserAct Console to get your Key first."
🛠️ Input Parameters
The Agent should configure the following parameter based on the user's needs when calling the script:
- TargetURL (Target URL)
- Type:
string - Description: The URL of the YouTube video you want to extract the transcript and metadata from.
- Example:
https://www.youtube.com/watch?v=st534T7-mdE
- Type:
🚀 Usage (Recommended)
The Agent should execute the following independent script to achieve "one command, get results":
# Example Call
python -u ./scripts/youtube_transcript_extractor_api.py "TargetURL"
⏳ Running Status Monitoring
Since this task involves automated browser operations, it may take a long time (several minutes). While running, the script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running).
Agent Instructions:
- While waiting for the script to return results, please keep an eye on the terminal output.
- As long as the terminal continues to output new status logs, it means the task is running normally. Do not misjudge it as a deadlock or unresponsiveness.
- Only if the status remains unchanged for a long time or the script stops outputting without returning a result, should you consider triggering the retry mechanism.
📊 Data Output Description
After successful execution, the script will parse and print the results directly from the API response. The results include:
video_title: The title of the YouTube videovideo_url: The direct link to the original videopublisher: The name of the channel publishing the videochannel_link: The URL of the publisher's YouTube channelvideo_likes_count: The number of likes the video has receivedtranscript: The complete extracted transcript/subtitles of the video
⚠️ Error Handling & Retry
During script execution, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic:
-
Check output content:
- If the output contains
"Invalid authorization", it means the API Key is invalid or expired. In this case, do not retry, and guide the user to check 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 returns an empty result), the Agent should automatically try to execute the script one more time.
- If the output contains
-
Retry limits:
- Automatic retry is limited to only once. If the second attempt still fails, stop retrying and report the specific error message to the user.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (5,021 bytes)
- 📎 scripts/youtube_transcript_extractor_api.py (4,128 bytes)