youtube

Query YouTube Data API v3 endpoints for videos, channels, playlists, and comments via curl.

76|18|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/vm0-ai/vm0-skills --skill youtube-vm0-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: youtube
Source: https://github.com/vm0-ai/vm0-skills/tree/main/youtube
Command: npx skills add https://github.com/vm0-ai/vm0-skills --skill youtube-vm0-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables you to query YouTube data (videos, channels, playlists, comments) directly from the command line.

Core Features & Use Cases

  • Search videos by keywords or filters
  • Get video details (title, description, stats, duration)
  • Get channel info (subscribers, videos, description)
  • List playlist items and fetch comments

Quick Start

bash -c 'curl -s "https://www.googleapis.com/youtube/v3/search?part=snippet&q=kubernetes+tutorial&type=video&maxResults=5&key=${YOUTUBE_API_KEY}"' | jq '.items[] | {videoId: .id.videoId, title: .snippet.title, channel: .snippet.channelTitle}'

Frequently Asked Questions about youtube

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

FAQPage Schema
How do I search YouTube videos from the command line?

Search YouTube videos using curl with the YouTube Data API v3 by passing keywords to the search endpoint with your API key. Specify the query parameter, set type=video, and use jq to extract videoId, title, and channel details from the JSON response.

Can I fetch video details like duration and view counts via API?

Yes, the videos endpoint returns full metadata including title, description, duration, and view statistics. Use the video ID from search results to call the videos endpoint and extract snippet and statistics parts via curl and jq.

How do I list playlist items and retrieve comments?

Use the playlistItems endpoint to list videos in a playlist, and the commentThreads endpoint to fetch comments. Both endpoints require a playlist ID or video ID respectively, accept an API key, and return JSON responses parsed with jq.

What authentication do I need to access YouTube API data?

YouTube Data API v3 requires an API key passed as the key parameter in curl requests. Store your key in the YOUTUBE_API_KEY environment variable and reference it in curl commands to authenticate all endpoint requests.

Can I get trending videos or channel subscriber counts?

The chart endpoint retrieves regional trending videos, and the channels endpoint returns subscriber counts and channel descriptions. Both use curl with your API key to fetch data for specific regions or channel IDs.

What are the limitations of API key authentication?

API keys authenticate requests but have quota limits and visibility restrictions. Apply API key restrictions in the Google Cloud Console to limit requests by referrer, IP, or Android/iOS app to protect your quota and prevent unauthorized use.