A Node.js library for fetching transcripts from YouTube videos using YouTube's unofficial API. Version 2.0.0 requires Node.js >=20.0.0 and is ESM-only with TypeScript types included. Unlike alternatives, it supports custom fetch functions, caching (in-memory and file system), language selection, and HTTP fallback. Actively maintained, but may break if YouTube changes its internal API.
npm install youtube-transcript-plusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Fetches transcript for a YouTube video ID with language and caching options.
Use import { fetchTranscript } from 'youtube-transcript-plus' instead of require().Upgrade Node.js to v20 or later.
Use named import { fetchTranscript } instead of default import.Monitor the GitHub repo for updates or consider official alternatives.
Check video availability; handle errors gracefully.
Change to import { fetchTranscript } from 'youtube-transcript-plus' and ensure package.json contains "type": "module" or use .mjs extension.Verify the video has captions; try a different language ('en', 'es', etc.) or omit 'lang' to get the default.Set { disableHttps: true } in options if HTTP is allowed, or configure proxy via custom fetch functions.Implement retries with backoff or use a proxy; consider caching to reduce requests.
No dependency data recorded yet.