youtube-search

Search YouTube by query and return structured JSON video metadata.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/Meir017/agentskills --skill youtube-search-meir017
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: youtube-search
Source: https://github.com/Meir017/agentskills/tree/main/.agents/skills/youtube-search
Command: npx skills add https://github.com/Meir017/agentskills --skill youtube-search-meir017

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Quickly locating YouTube videos and obtaining structured metadata is tedious when done manually or via noisy scraping methods. This skill automates the process by returning clean JSON data for video title, videoId, channel, duration, views, publish date, and thumbnails.

Core Features & Use Cases

  • Fetches search results by query and returns a consistent JSON schema for each video.
  • Extracts key metadata (videoId, title, channel info, duration, viewCount, publishedDate, thumbnail, and URL) without requiring an API key.
  • Use cases include building video catalogs, feeding research dashboards, or powering AI assistants with video context.

Quick Start

Run the script with a query to fetch YouTube video metadata.

Frequently Asked Questions about youtube-search

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

FAQPage Schema
How do I get YouTube video metadata like viewCount and duration without an API key?

You can extract YouTube video metadata like viewCount and duration without an API key by using Node.js built-in fetch to parse youtube.com page data. This approach returns structured JSON containing videoId, channel, duration, viewCount, publishedTime, and thumbnails.

What is the best way to scrape YouTube search results into JSON format?

Scraping YouTube search results into JSON format is best handled by a Node.js script that fetches the youtube.com search page and parses the embedded data. This method provides a consistent JSON schema for each video without manual web scraping.

Do I need Node.js to extract video title, videoId, and thumbnail URLs from YouTube?

Yes, you need Node.js 18+ to extract video title, videoId, and thumbnail URLs from YouTube. The script relies on the built-in fetch API available in Node.js 18+ and requires network access to youtube.com to retrieve the search results.

Can I use web scraping to build a video catalog with YouTube channel info and publish dates?

Yes, you can use web scraping to build a video catalog by fetching YouTube search results. The script extracts structured JSON metadata including channel info, publishedTime, viewCount, and thumbnail URLs, which is ideal for cataloging.

Why does my YouTube search scraping script fail to return structured JSON results?

Your YouTube search scraping script might fail to return structured JSON results if you lack network access to youtube.com or are using a Node.js version below 18. The script requires Node.js 18+ for the built-in fetch API to properly parse page data.