youtube-api-skill
하는 일
이 스킬은 키워드로 YouTube를 검색하고 찾은 영상의 세부 지표를 돌려줍니다. 영상 성과나 경쟁사 채널을 추적하는 마케터와 연구자를 위한 스킬입니다.
사용하는 경우
- ✓한 키워드에 대한 영상들의 성과를 비교하고 싶을 때.
- ✓경쟁사 채널의 최신 영상을 보고 싶을 때.
- ✓영상 묶음의 댓글 수와 좋아요 수가 필요할 때.
스킬 링크
https://github.com/browser-act/skills/blob/main/solutions/video-platforms/youtube-api-skill/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이번 달 업로드된 AI 생산성 도구 관련 YouTube 영상을 검색해서 조회수, 좋아요, 댓글 수, 채널 정보를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 YouTube에서 키워드와 업로드 날짜 필터를 입력하고, 검색 결과 목록을 훑은 뒤 각 영상 페이지를 엽니다. 각 영상과 채널의 구조화된 데이터를 돌려줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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 perf
자주 묻는 질문
스킬에 무엇을 전달해야 하나요?
검색 키워드와 업로드 날짜 필터를 전달합니다.
키가 필요한가요?
네, BROWSERACT_API_KEY 설정에 BrowserAct API 키가 필요합니다.
각 영상을 열어 보나요?
네, 설명에 따르면 데이터를 모으기 위해 각 영상의 상세 페이지를 엽니다.
상세 정보
작성자의 원본 설명
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, trac
repo: browser-act/skills
인기도
- GitHub 스타
- 6.3k
- 순위
- #14334
- 라이선스
- MIT
- 업데이트
- 2026. 8. 24.
댓글
- …
이 저장소의 다른 스킬
browser-act-skill-forge
6.3k에이전트가 웹사이트를 한 번 탐색해 재사용 가능한 스킬을 스크립트와 함께 저장하고, 이후 그 사이트의 데이터를 더 빠르게 가져오도록 돕습니다.
browser-act
6.3k에이전트가 BrowserAct 브라우저 자동화 도구로 페이지를 열고, 렌더링된 내용을 읽고, 양식을 채우고, 스크린샷을 찍고, 로그인된 세션을 관리하도록 돕습니다.
1688-product-detail
6.3k에이전트가 1688.com 도매 페이지에서 가격 단계, 변형 상품, 판매자 통계, 속성 같은 제품 세부 정보를 가져오도록 돕습니다.
airbnb-listing-detail
6.3k에이전트가 숫자 ID로 에어비앤비 숙소의 공개 정보를 가져오도록 돕습니다. 사진, 편의시설, 평점, 숙소 규칙을 포함합니다.