youtube-search
Skill2 starsChanged 46 days agoMITView on GitHub
Search YouTube videos by query or within specific channels. Supports date filtering, sort ordering, and duration filters to exclude YouTube Shorts. Returns LLM-optimized JSON with video details.
- Reads credentials
13 other projects use a version of this.
Adopted by
Most recently taken up by
- TheVeller/claude-skillstheir own version, first seen Nov 2, 2026
- Mathews-Tom/armorytheir own version, first seen Nov 1, 2026
- zedxter/utility-belttheir own version, first seen Nov 1, 2026
- rocosen/flashdata-mcptheir own version, first seen Oct 17, 2026
- ccsang/claude-skillstheir own version, first seen Oct 11, 2026
- Gopyr/gopyr-skills-hubtheir own version, first seen Oct 11, 2026
Used with
Projects with it also use youtube-transcript.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dandacompanySkillyoutube-transcript
Extract YouTube video transcripts/subtitles using yt-dlp. Handles rate limiting, auto-generated captions, multiple languages, and VTT parsing.
Also in 4 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- ZeroPointRepo/youtube-skills★ 972same name
- Mathews-Tom/armory★ 340same name
- artemchuikin/youtube-skills★ 273same name
- AISA-skills/social-media-skills★ 4same name
- audibleblink/skills★ 4same name
- TheVeller/claude-skills★ 4same name
- zedxter/utility-belt★ 4same name
- baofeng-tech/agent-skills-so★ 0same name
- ccsang/claude-skills★ 0same name
- Gopyr/gopyr-skills-hub★ 0same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- skills/web-asset-generator/CLAUDE.mdCLAUDE.md
- academic-writingSkill
- agent-os-childSkill
- agy-pSkill
- amazon-uk-scraperSkill
- artifact-variationsSkill
- audio-transcription-workflowSkill
- capture-dashboardSkill
- claude-channelsSkill
- claude-pSkill
- code-documenterSkill
- context7-docsSkill
- context7-searchSkill
- deep-researchSkill
- docx-draftSkill
- grill-meSkill
- handoffSkill
- long-horizon-waiting-strategiesSkill
- openapi-schemaSkill
- opencode-pluginSkill
- pi-extensionSkill
- pi-web-ui-internal-api-orchestrationSkill
- pptx-draftSkill
- saas-idea-finderSkill
- scraping-redditSkill
- scraping-twitterSkill
- secret-scanningSkill
- socialmedia-optimizationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- text-to-speechSkill
- thematic-analysisSkill
- transcribe-audioSkill
- video-deep-understandingSkill
- video-useSkill
- web-asset-generatorSkill
- web-crawlingSkill
- web-create-assetsSkill
- web-data-acquisitionSkill
- webfetch-skillSkill
- youtube-captionSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Search for YouTube videos using the YouTube Data API v3.
- Distinctive: line 23
Search videos by topic or channel
- Distinctive: line 133
Use channel_id, not handle: when possible (saves resolution cost)
- Very specific: line 137
For bulk channel analysis: Prefer youtube_channel_videos.py over youtube_channel_search.py
- Distinctive: line 141
If you exhaust today's quota:
- Distinctive: line 142
Option 1: Wait 24 hours for quota reset
- Distinctive: line 143
Option 2: Create new Google Cloud project with fresh quota
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Search YouTube Videos
Search for YouTube videos using the YouTube Data API v3. Find videos by query across all of YouTube or within specific channels.
Prerequisites
YouTube API Key available in the environment or a shell startup file such as ~/.bashrc:
export YOUTUBE_API_KEY="your-api-key-here"Get one from Google Cloud Console: Create project → Enable YouTube Data API v3 → Create API Key.
Daily quota: 10,000 units (each search ≈ 100 units, channel resolution ≈ 1 unit, playlist fetch ≈ 1 unit).
When to Use
- Search videos by topic or channel
- Filter by date, duration, sort order
- Get up to 50 results per query
Quick Start
Basic search:
python3 ./scripts/youtube_search.py --query "AI tutorials" --max-results 10Channel-specific (if you already have the channel ID):
python3 ./scripts/youtube_search.py --query "Python" --channel-id "UC123..." --max-results 20Parameters
| Parameter | Required | Default | Notes |
--query or -q | Yes | - | Search term |
--channel-id or -c | No | - | If provided, search only in this channel |
--max-results or -m | No | 10 | Max 50 (preserves quota and LLM context) |
--order or -o | No | relevance | date, rating, relevance, viewCount |
--published-after | No | - | ISO 8601 format (e.g., "2025-01-01T00:00:00Z") |
--published-before | No | - | ISO 8601 format |
--video-duration or -d | No | any | any, short (<4min), medium (4-20min), long (>20min) |
Helper Scripts (API Quota Warning)
⚠️ Each helper script uses API quota. Plan carefully before running multiple times.
1. youtube_channel_id.py - Resolve @handle to Channel ID
Cost: 1 unit per resolution
python3 ./scripts/youtube_channel_id.py --handle "@MetalSole"2. youtube_channel_videos.py - List Channel Videos
Cost: 1-2 units for channel lookup + 1 unit per ~50 videos fetched
# By handle
python3 ./scripts/youtube_channel_videos.py --handle "@MetalSole" --max-results 50
# By channel ID (saves quota - skips handle resolution)
python3 ./scripts/youtube_channel_videos.py --channel-id "UC123..." --max-results 50
# By playlist ID (cheapest - fastest method)
python3 ./scripts/youtube_channel_videos.py --playlist-id "UU123..." --max-results 503. youtube_channel_search.py - Search Within Channel
Cost: 1-2 units (channel lookup) + 100 units (search query)
python3 ./scripts/youtube_channel_search.py --channel-handle "@MetalSole" --query "AI"Quota Estimation
| Operation | Cost | Purpose |
| Basic search with query | ~100 | Find videos by topic |
| Resolve handle (@MetalSole) | ~1 | Get channel ID from handle |
| Fetch 50 channel videos | ~1 | List all uploads from channel |
| Search within channel | ~100 | Find topic within specific channel |
Example cost: Searching 10 channels for videos = ~10 units. Then searching within each channel = ~1000 units total. Plan accordingly!
Output Format
Returns JSON with video metadata:
{
"success": true,
"videos": [
{
"title": "Video Title",
"url": "https://www.youtube.com/watch?v=VIDEO_ID",
"channel_title": "Channel Name",
"published_at": "2025-01-15T10:00:00Z",
"description": "..."
}
]
}Examples
# Latest AI videos
python3 ./scripts/youtube_search.py --query "AI" --order "date" --max-results 10
# Longer-form content only (no shorts)
python3 ./scripts/youtube_search.py --query "tutorial" --video-duration "medium" --max-results 15
# Last 30 days
python3 ./scripts/youtube_search.py --query "news" --published-after "2025-11-23T00:00:00Z"Troubleshooting
| Problem | Solution |
| API key not found | Make available in your environment or shell startup file: export YOUTUBE_API_KEY="key-here" |
| 403 Forbidden | Key lacks permissions. Enable YouTube Data API v3 in Google Cloud Console |
| Quota exceeded | Used 10,000 units today. Create new Google Cloud project or wait 24hrs |
| No results | Try broader query, remove date filters |
Tips for Efficient Quota Use
- Use channel_id, not handle when possible (saves resolution cost)
- Use playlist_id for channel videos (cheapest - ~1 unit instead of 100+)
- Batch operations: Plan all queries before executing to avoid re-runs
- Cache results: Save output to file to avoid re-querying same channels
- For bulk channel analysis: Prefer
youtube_channel_videos.pyoveryoutube_channel_search.py
When Quota Runs Out
If you exhaust today's quota:
- Option 1: Wait 24 hours for quota reset
- Option 2: Create new Google Cloud project with fresh quota
- Option 3: Request quota increase (takes 24-48 hours)
- Option 4: Switch to web-based channel browsing (manual, no quota cost)
Security & Limitations
- API key = read-only access to public data
- Cannot access: private videos, watch history, subscriptions
- Max 50 results per query (for context window)
- View counts/likes not included
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

