Maintained

    ytsearch.js — YouTube Search Wrapper

    A powerful Node.js package for YouTube search that supports videos, channels, playlists, movies, and live streams — all without the official API.

    Category
    Package
    Date
    July 15, 2023

    Technologies Used

    Node.jsnpm
    ytsearch.js — YouTube Search Wrapper

    ytsearch.js — YouTube Search Wrapper

    Overview

    ytsearch.js is a powerful yet lightweight Node.js package that allows developers to perform YouTube searches without relying on the official YouTube Data API. It supports fetching videos, channels, playlists, movies, and live streams, complete with pagination, sorting, and extended metadata. Designed with a developer-friendly API, it offers a clean, fast, and efficient way to integrate YouTube search into any Node.js application.

    Features

    • 🔍 Search YouTube content — videos, channels, playlists, movies, and live streams.
    • Fast & Lightweight — optimized with minimal dependencies.
    • 📦 Easy Installation via npm install ytsearch.js.
    • 🛠️ Developer-Friendly API — async/await support and clean typings.
    • 📊 Rich Metadata Access — titles, views, channel details, and more.
    • 📑 Pagination Support — handle large playlists and multi-page search results.
    • 🎯 Advanced Options — filtering, sorting, and combined multi-type searches (any).
    • Error Handling — robust mechanisms to ensure reliability.

    Installation

    npm install ytsearch.js
    

    Requires Node.js v14+.

    Usage

    const { searchYouTube } = require("ytsearch.js");
    
    (async () => {
      const results = await searchYouTube("Black Panther", {
        type: "video",
        limit: 10,
      });
      results.videos.forEach((item) => console.log(item.type, item.title));
    })();
    

    Example Output

    video Marvel Studios Black Panther - Official Trailer
    video Wakanda Battle - I’m Not Dead Scene - Black Panther Returns
    video Hiding in the Shadows | The Real Black Panther | National Geographic Wild UK
    video Meet The K2 Black Panther – One Of The World’s Best Tanks
    video (Black Panther) Best Action Hollywood Blockbuster Movie in Hindi
    video Black Panther - Car Chase Scene - Movie clip Epic 4K UHD
    

    Tech Stack

    • Node.js — Core runtime environment.
    • npm — Package distribution.

    Status

    🛠️ Actively maintained with continuous updates — including playlist pagination, advanced metadata fetching, sortable search results, and planned API enhancements.

    Links

    Related Projects

    Discover more projects with similar technologies or categories.

    PersonalActive

    Minecraft Cat Adventure: Infinite Falling (2D)

    A real-time Phaser + Matter.js survival game where live YouTube chat and keyboard commands directly control gameplay through a resilient command queue and cooldown system.

    Phaser 3Matter.js+7
    View Project
    Full-StackActive

    ZUA Dashboard - Discord Bot Dashboard (MERN)

    A modern MERN-based Discord management dashboard for the ZUA bot, with applications, tickets, moderation tools, analytics, and webhook integrations.

    MySQLExpress.js+7
    View Project
    PackageMaintained

    ytsearch-cli — YouTube Search Command-Line Tool

    A powerful and interactive CLI tool for searching YouTube videos, channels, and playlists directly from your terminal, built on top of ytsearch.js.

    Node.jsnpm+1
    View Project