youtube-search-api-skill
キーワードでYouTube動画を検索したり、特定のテーマの最新ショート動画を見つけたり、競合分析のためにチャンネルデータを集めたりと、YouTube検索結果から必要な情報を効率的に抽出するSkill。
📜 元の英語説明(参考)
This skill helps users automatically extract structured data from YouTube search results using the BrowserAct API. The Agent should proactively apply this skill when users express needs like searching for YouTube videos by keywords, finding the latest YouTube Shorts for a specific topic, gathering YouTube channel data for competitor analysis, monitoring trending YouTube playlists, extracting YouTube search results for market research, tracking view counts for specific YouTube keywords, compiling a list of YouTube videos on a subject, discovering new YouTube content creators in a niche, searching YouTube for tutorial videos automatically, and retrieving structured YouTube search data without opening video pages.
🇯🇵 日本人クリエイター向け解説
キーワードでYouTube動画を検索したり、特定のテーマの最新ショート動画を見つけたり、競合分析のためにチャンネルデータを集めたりと、YouTube検索結果から必要な情報を効率的に抽出するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o youtube-search-api-skill.zip https://jpskill.com/download/17642.zip && unzip -o youtube-search-api-skill.zip && rm youtube-search-api-skill.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17642.zip -OutFile "$d\youtube-search-api-skill.zip"; Expand-Archive "$d\youtube-search-api-skill.zip" -DestinationPath $d -Force; ri "$d\youtube-search-api-skill.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
youtube-search-api-skill.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
youtube-search-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 Search API Skill
📖 はじめに
この Skill は、BrowserAct の YouTube Search API テンプレートを通じて、ユーザーにワンストップの YouTube 検索データ抽出サービスを提供します。YouTube の検索結果リストから、構造化されたフィールドを直接抽出できます。検索キーワードと制限条件を指定するだけで、クリーンで使いやすい動画、Shorts、チャンネル、またはプレイリストのデータを取得できます。
✨ 特徴
- ハルシネーション(幻覚)がなく、安定した正確なデータ抽出を保証: 事前に設定されたワークフローにより、AI 生成によるハルシネーションを回避します。
- CAPTCHA の問題なし: reCAPTCHA やその他の認証チャレンジに対応する必要はありません。
- IP アクセス制限やジオフェンシングなし: 地域ごとの IP 制限に対処する必要はありません。
- よりアジャイルな実行速度: 純粋な AI 駆動のブラウザ自動化ソリューションと比較して、タスクの実行が高速です。
- 非常に高い費用対効果: 大量のトークンを消費する AI ソリューションと比較して、データ取得コストを大幅に削減します。
🔑 API キーの設定フロー
実行する前に、まず BROWSERACT_API_KEY 環境変数が設定されているか確認する必要があります。設定されていない場合は、他のアクションを実行せず、ユーザーに協力を依頼して提供されるのを待つ必要があります。
このとき、Agent はユーザーに次のように伝える必要があります:
"BrowserAct API Key が設定されていないため、まず BrowserAct Console にアクセスして Key を取得してください。"
🛠️ 入力パラメータ
スクリプトを呼び出す際、Agent はユーザーのニーズに基づいて、以下のパラメータを柔軟に設定する必要があります。
-
KeyWords
- Type:
string - Description: YouTube で使用される検索キーワード。任意のキーワードまたはフレーズを使用できます。
- Example:
AI,automation,n8n,web scraping
- Type:
-
Video_type
- Type:
string - Description: どの結果タブから抽出するか。
- Supported values:
Videos,Shorts,Channels,Playlists - Default:
Videos
- Type:
-
Date_limit
- Type:
number - Description: 検索結果リストから抽出するアイテムの最大数。
- Example:
20,50,100 - Default:
100
- Type:
🚀 使い方 (推奨)
Agent は、次の独立したスクリプトを実行して、「ワンコマンドで結果」を実現する必要があります。
# 呼び出し例
python -u ./scripts/youtube_search_api.py "KeyWords" "Video_type" Date_limit
⏳ 実行状況の監視
このタスクは自動化されたブラウザ操作を伴うため、時間がかかる場合があります(数分)。スクリプトは実行中に タイムスタンプ付きのステータスログを継続的に出力します (例: [14:30:05] Task Status: running)。
Agent への注意:
- スクリプトが結果を返すのを待っている間、ターミナル出力に注意してください。
- ターミナルが新しいステータスログを出力し続けている限り、タスクは正常に実行されています。デッドロックまたは無応答と誤って判断しないでください。
- ステータスが長時間変化しない場合、またはスクリプトの出力が停止し、結果が返されない場合にのみ、再試行メカニズムをトリガーすることを検討できます。
📊 データ出力
実行が成功すると、スクリプトは API レスポンスから直接結果を解析して出力します。抽出されるデータは次のとおりです。
title: 検索結果に表示されるタイトルdescription: 短い説明スニペット (利用可能な場合)view_count: 結果に表示される視聴回数published_at: 結果に表示される公開時間url: 結果アイテムの URL
⚠️ エラー処理と再試行メカニズム
スクリプトの実行中にエラーが発生した場合(ネットワークの変動やタスクの失敗など)、Agent は次のロジックに従う必要があります。
-
出力内容の確認:
- 出力に
"Invalid authorization"が 含まれている 場合、API Key が無効または期限切れであることを意味します。このとき、再試行しないでください。ユーザーに再確認を促し、正しい API Key を提供してもらう必要があります。 - 出力に
"Invalid authorization"が 含まれていない が、タスクの実行に失敗した場合(たとえば、出力がError:で始まるか、返された結果が空の場合)、Agent は 自動的にスクリプトの再実行を試みる 必要があります。
- 出力に
-
再試行制限:
- 自動再試行は 1 回のみ に制限されています。2 回目の試行でも失敗した場合は、再試行を停止し、特定のエラーメッセージをユーザーに報告してください。
🌟 代表的なユースケース
- キーワードファーストな発見: 検索意図から直接トピックプールとコンテンツデータセットを構築します。
- 競合スキャン: 競合他社のブランド名を検索し、上位に関連する動画を抽出します。
- コンテンツモニタリング: 特定の業界キーワードの検索結果を定期的に抽出し、トレンドを把握します。
- チャンネルリサーチ: 特定のニッチ内のチャンネルを検索し、その URL を収集します。
- チュートリアル集約: 特定のソフトウェアまたはツールの教育用動画を検索して抽出します。
- Shorts の追跡: トレンドのハッシュタグまたはトピックについて YouTube Shorts を監視します。
- プレイリスト抽出: 特定の主題に関する厳選されたプレイリストを検索します。
- 市場調査: 市場分析のために検索結果の構造化されたデータセットを構築します。
- クリエイターへのアウトリーチ: コラボレーションのために特定の分野の新興クリエイターを見つけます。
- 視聴回数分析: さまざまなキーワードの上位動画の視聴回数を比較します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
YouTube Search API Skill
📖 Introduction
This skill provides users with a one-stop YouTube search data extraction service through BrowserAct's YouTube Search API template. It can extract structured fields directly from the YouTube search results list. Simply provide the search keywords and limit conditions to get clean, usable video, shorts, channel, or playlist data.
✨ Features
- No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid AI generative hallucinations.
- No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
- No IP access limits or geo-fencing: No need to deal with regional IP restrictions.
- More agile execution speed: Compared to pure AI-driven browser automation solutions, task execution is faster.
- Extremely high cost-effectiveness: Significantly reduces data acquisition costs compared to AI solutions that consume a large number of tokens.
🔑 API Key Setup Flow
Before running, you must first check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions; you should request and wait for the user's collaboration to provide it.
The Agent must inform the user at this time:
"Since you have not configured the BrowserAct API Key, 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 the user's needs:
-
KeyWords
- Type:
string - Description: Search keywords used on YouTube. Can be any keyword or phrase.
- Example:
AI,automation,n8n,web scraping
- Type:
-
Video_type
- Type:
string - Description: Which results tab to extract from.
- Supported values:
Videos,Shorts,Channels,Playlists - Default:
Videos
- Type:
-
Date_limit
- Type:
number - Description: Maximum number of items to extract from the search results list.
- Example:
20,50,100 - Default:
100
- Type:
🚀 Usage (Recommended)
The Agent should achieve "one-command results" by executing the following independent script:
# Call example
python -u ./scripts/youtube_search_api.py "KeyWords" "Video_type" Date_limit
⏳ Execution Status Monitoring
Because 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.
Notice to 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 mistakenly judge it as a deadlock or unresponsiveness.
- Only if the status remains unchanged for a long time or the script stops outputting and no result is returned, can you consider triggering the retry mechanism.
📊 Data Output
After successful execution, the script will parse and print the result directly from the API response. The extracted data includes:
title: Title shown in search resultsdescription: Short description snippet (when available)view_count: View count displayed in resultspublished_at: Publish time displayed in resultsurl: Result item URL
⚠️ Error Handling & Retry Mechanism
During the execution of the script, if an error occurs (such as network fluctuation 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, and 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.
- If the output contains
-
Retry limit:
- Automatic retry is limited to only once. If the second attempt still fails, stop retrying and report the specific error message to the user.
🌟 Typical Use Cases
- Keyword-first discovery: Build topic pools and content datasets directly from search intent.
- Competitor scanning: Search for competitor brand names and extract top related videos.
- Content monitoring: Regularly extract search results for specific industry keywords to see what's trending.
- Channel research: Search for channels within a specific niche and gather their URLs.
- Tutorial aggregation: Find and extract educational videos for specific software or tools.
- Shorts tracking: Monitor YouTube Shorts for trending hashtags or topics.
- Playlist extraction: Find curated playlists for specific subjects.
- Market research: Build structured datasets of search results for market analysis.
- Creator outreach: Find emerging creators in a particular field for collaboration.
- View count analysis: Compare view counts of the top videos for various keywords.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (6,122 bytes)
- 📎 scripts/youtube_search_api.py (4,080 bytes)