@toolpal/youtube-transcript
publicv2.0published 1 download this weekMIT
Fetches the transcript, timestamped segments, chapters, and video metadata (title, channel, duration, publish date, available languages) from a public YouTube URL or video ID, and saves the transcript as a .txt, .md, .srt, or .vtt file. No API key needed.
You're viewing 1.0, an older version
The latest is 2.0.
Network
Any host, including internal addresses. The code calls www.youtube.com and builds other URLs at run time.
- uses fetchsrc/index.ts · dist/tool.mjs:4548
const watchRes = await fetch(`https://www.youtube.com/watch?v=${videoId}&hl=en`, { - uses fetchsrc/index.ts · dist/tool.mjs:4562
const apiRes = await fetch(`https://www.youtube.com/youtubei/v1/player?key=${encodeURIComponent(apiKey)}`, { - uses fetchsrc/index.ts · dist/tool.mjs:4665
const jsonRes = await fetch(jsonUrl, { - uses fetchsrc/index.ts · dist/tool.mjs:4676
const xmlRes = await fetch(base, {
Temporary files
A private temp directory per process
- imports node:fssrc/index.ts · dist/tool.mjs:10
import { writeFileSync } from "node:fs";
Everything else is denied: environment variables, files outside its package and temp directory, child processes, workers and native addons. Node's permission model enforces this, and it isn't a hard sandbox. Security model