youtube-search-api-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.
What this skill does
# 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](https://www.browseract.com/reception/integrations) 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: ```bash # 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. 3. **Content monitoring**: Regularly extract search results for specific industry keywords to see what's trending. 4. **Channel research**: Search for channels within a specific niche and gather their URLs. 5. **Tutorial aggregation**: Find and extract educational videos for specific software or tools. 6. **Shorts tracking**: Monitor YouTube Shorts for trending hashtags or topics. 7. **Playlist extraction**: Find curated playlists for specific subjects. 8. **Market research**: Build structured datasets of search results for market analysis. 9. **Creator outreach**: Find emerging creators in a particular field for collaboration. 10. **View count analysis**: Compare view counts of the top videos for various keywords.
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.