본문으로 건너뛰기
Skillpedia
웹 스크레이핑6.3k · #14339

youtube-search-api-skill

하는 일

이 스킬은 선택한 키워드와 제한 조건에 따라 YouTube 검색 결과에서 구조화된 항목을 추출합니다. YouTube 결과를 빠르게 훑어보려는 연구자와 마케터를 위한 스킬입니다.

사용하는 경우

  • ✓주제에 관한 YouTube 영상이나 Shorts 목록이 필요할 때.
  • ✓경쟁사 조사를 위해 채널이나 재생목록 결과가 필요할 때.
  • ✓키워드 주변에서 어떤 재생목록이 유행하는지 추적하고 싶을 때.

스킬 링크

https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-search-api-skill/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-search-api-skill/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“YouTube에서 사워도우 빵 굽기를 검색해서 상위 영상과 Shorts 20개를 제목, 채널, 링크와 함께 나열해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 키워드로 YouTube 검색을 실행하고 결과 목록을 읽습니다. 설정한 제한 조건에 맞는 영상, Short, 채널, 재생목록마다 구조화된 항목을 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

  1. No hallucinations, ensuring stable and accurate data extraction: Pre-set workflows avoid AI generative hallucinations.
  2. No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP access limits or geo-fencing: 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 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:

  1. KeyWords

    • Type: string
    • Description: Search keywords used on YouTube. Can be any keyword or phrase.
    • Example: AI, automation, n8n, web scraping
  2. Video_type

    • Type: string
    • Description: Which results tab to extract from.
    • Supported values: Videos, Shorts, Channels, Playlists
    • Default: Videos
  3. Date_limit

    • Type: number
    • Description: Maximum number of items to extract from the search results list.
    • Example: 20, 50, 100
    • Default: 100

🚀 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 results
  • description: Short description snippet (when available)
  • view_count: View count displayed in results
  • published_at: Publish time displayed in results
  • url: 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:

  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, 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 with Error: or the returned result is empty), the Agent should automatically try to execute the script again.
  2. 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

  1. Keyword-first discovery: Build topic pools and content datasets directly from search intent.
  2. Competitor scanning: Search for competitor brand names and extract top related videos.
자주 묻는 질문

어떤 종류의 결과를 돌려줄 수 있나요?

영상, Shorts, 채널, 재생목록이 설명에 나와 있습니다.

제한을 설정해야 하나요?

검색 조건에 제한을 둘 수 있으며, 예를 들어 원하는 결과 개수를 정할 수 있습니다.

키가 필요한가요?

네, BROWSERACT_API_KEY 설정에 BrowserAct API 키가 필요합니다.

상세 정보

작성자의 원본 설명

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, searchi

repo: browser-act/skills

인기도

GitHub 스타
6.3k
순위
#14339
라이선스
MIT
업데이트
2026. 8. 24.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬