npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

hybrid-ytdl

v1.2.4

Published

Download youtube url from 5 server rest api

Downloads

9,612

Readme

hybrid-ytdl

Hybrid YouTube Downloader berbasis multiple API yang otomatis switch jika salah satu server down.
Mendukung download audio & video dengan opsi bitrate & resolusi, serta bisa memilih API secara manual.


📌 Instalasi

npm install hybrid-ytdl

💼 Sumber API

| API | Nama | Dukungan | Fetch? | |---|---|---|---| | API 1 | CloudkuImages | Audio & Video | ✅ | | API 2 | NVL Group | Audio & Video | ❌ | | API 3 | CaliphDev | Audio & Video | ✅ | | API 4 | SiputzX | Audio & Video | ✅ | | API 5 | SuraWeb | Audio | ❌ |

Catatan:
API 2 & API 5 langsung return URL tanpa fetch JSON, jadi lebih cepat.
API lain perlu fetch JSON dulu untuk dapatkan URL downloadnya.


💡 Fitur

  • 🔄 Otomatis pindah API jika server gagal
  • 🎵 Download Audio (bitrate custom: 128, 192, 320kbps)
  • 🎥 Download Video (resolusi custom: 360p, 720p, 1080p)
  • 🛠 Bisa pilih API manual (1-5) atau otomatis
  • 🚀 Menggunakan 5 API berbeda untuk kecepatan & backup
  • 💼 Mendukung metadata video seperti judul, durasi, thumbnail, dll.

🐝 Cara Penggunaan

🔍 Mendapatkan Informasi Video

const { getVideoInfo } = require('hybrid-ytdl');

(async () => {
    let info = await getVideoInfo("https://youtube.com/watch?v=kglEsR7bqAY");
    console.log(info);
})();

📈 Output Contoh

{
  "status": true,
  "title": "Story Teaser: La vaguelette | Genshin Impact",
  "creator": "Genshin Impact",
  "duration": 159,
  "thumbnail": "https://i.ytimg.com/vi/kglEsR7bqAY/hq720.jpg",
  "views": 5674285,
  "uploaded": "3 bulan lalu",
  "url": "https://youtube.com/watch?v=kglEsR7bqAY"
}

🎵 Download Audio (MP3)

const { downloadAudio } = require('hybrid-ytdl');

(async () => {
    let audio = await downloadAudio("https://youtube.com/watch?v=kglEsR7bqAY", "320", "api2"); // Pakai API 2 & bitrate 320kbps
    console.log(audio);
})();

📈 Output Contoh

{
  "status": true,
  "downloadUrl": "https://ytdownloader.nvlgroup.my.id/audio?url=kglEsR7bqAY&bitrate=320",
  "source": "API 2: Nauval Group"
}

📅 Catatan:

  • Jika tidak ada bitrate yang diinput, otomatis pakai 128kbps.
  • Jika bitrate custom (192, 320, dll.), otomatis pakai API 2.
  • Bisa pilih API manual (api1, api2, ..., api5), atau kosong untuk otomatis.

🎥 Download Video (MP4)

const { downloadVideo } = require('hybrid-ytdl');

(async () => {
    let video = await downloadVideo("https://youtube.com/watch?v=kglEsR7bqAY", "1080", "api2"); // Pakai API 2 & resolusi 1080p
    console.log(video);
})();

📈 Output Contoh

{
  "status": true,
  "downloadUrl": "https://ytdownloader.nvlgroup.my.id/download?url=kglEsR7bqAY&resolution=1080",
  "source": "API 2: Nauval Group"
}

📅 Catatan:

  • Jika tidak ada resolusi yang diinput, otomatis pakai 720p.
  • Jika resolusi custom (360, 1080, dll.), otomatis pakai API 2.
  • Bisa pilih API manual (api1, api2, ..., api5), atau kosong untuk otomatis.

🔧 Logika Pemilihan API

| Opsi | API yang dipakai | |---|---| | Bitrate/Resolusi Default | Semua API bisa digunakan | | Bitrate/Resolusi Custom | Hanya API 2: Nauval Group & API 1: Cloudkuimages yang dipakai | | Pilih API Manual | Hanya API yang dipilih akan digunakan | | Otomatis | API akan berpindah jika server gagal |


👤 Support By:

  • AlfiDev
  • Naufal
  • CaliphDev
  • SiputzX
  • SuraWeb
  • FlowFalcon

📜 Lisensi

MIT License


2025 hybrid-ytdl