Hybrid YouTube downloader for Node.js that uses 5 different server APIs to fetch audio and video downloads. Current stable version is 1.2.4. It automatically switches to a backup API if one server fails, supports custom bitrate (128, 192, 320 kbps) and resolution (360p, 720p, 1080p), and allows manual API selection. Differentiates from other YouTube downloaders by relying on external REST APIs rather than scraping YouTube directly, offering multiple fallback endpoints. The package is not actively maintained but still functional.
npm install hybrid-ytdlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to fetch video info, download audio with custom bitrate, and download video with custom resolution using a specific API.
If an API fails, set up automatic fallback logic or monitor the API status externally.
When using custom bitrate or resolution, ensure you manually select api1 or api2, or verify behavior with other APIs.
Use the 'api' parameter you passed in or parse the download URL pattern to determine the source.
Avoid using api5 for downloadAudio; use downloadVideo instead if needed.
Create your own type declarations or use JSDoc annotations for type safety.
Run 'npm install hybrid-ytdl' and ensure you're requiring the correct package name.
Use Node.js 18 or later, or install a fetch polyfill like 'node-fetch' and import it globally.
Retry with a different API by passing the 'api' parameter (e.g., 'api2') or wait and try again.
Check the status field of the returned object before accessing properties. Wrap calls in try/catch.
No dependency data recorded yet.