youtube-search-api-skill

Extract structured video, channel, and playlist data from YouTube search results via the BrowserAct API.

5.5k|269|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/browser-act/skills --skill youtube-search-api-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: youtube-search-api-skill
Source: https://github.com/browser-act/skills/tree/main/solutions/video-platforms/youtube-search-api-skill
Command: npx skills add https://github.com/browser-act/skills --skill youtube-search-api-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Manually collecting YouTube search results for research, competitor analysis, or content monitoring is slow and error-prone, and direct scraping often hits CAPTCHAs, IP blocks, and geo-restrictions. This Skill runs a pre-built BrowserAct workflow template in a cloud browser to return clean, structured YouTube search data from a single command.

Core Features & Use Cases

  • Structured Search Extraction: Pull titles, descriptions, view counts, publish times, and URLs from YouTube search result tabs (Videos, Shorts, Channels, Playlists).
  • No Anti-Bot Friction: The cloud workflow handles CAPTCHAs, IP limits, and regional restrictions automatically.
  • Configurable Queries: Control keywords, result tab type, and maximum item count per run.
  • Use Case: A market researcher wants the top 50 videos for the keyword "web scraping" with view counts and publish dates. The Agent runs the script once and receives structured results ready for analysis.

Quick Start

Ask the Agent to search YouTube for your keyword, for example: "Use the YouTube search skill to extract the top 50 videos for the keyword 'AI automation' with view counts and URLs."

Frequently Asked Questions about youtube-search-api-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract YouTube search results without scraping them myself?

Run the included Python script with a keyword, result type, and item limit. It calls the BrowserAct API workflow template, polls the task status, and prints structured fields like title, view count, publish time, and URL.

What data fields can I get from YouTube search results?

The extraction returns the title, short description snippet, view count, publish time, and URL for each result item. You can target the Videos, Shorts, Channels, or Playlists tabs of YouTube search.

Do I need an API key to use the BrowserAct YouTube search workflow?

Yes, the script requires a BROWSERACT_API_KEY environment variable. You can obtain the key from the BrowserAct Console integrations page, and the script exits with setup instructions if the key is missing.

Why does the YouTube search task take several minutes to finish?

The workflow runs in a real cloud browser, so the script polls task status every 10 seconds for up to 300 seconds. Continuous timestamped status logs indicate normal progress, not a hang.

What happens if the BrowserAct API key is invalid or the task fails?

An "Invalid authorization" output means the key is wrong or expired and should not be retried. Other failures, such as network errors or empty results, are retried automatically once before reporting the error.