pi-youtube-transcript

Pi extension to fetch YouTube video transcripts

Packages

Package details

extension

Install pi-youtube-transcript from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-youtube-transcript
Package
pi-youtube-transcript
Version
0.1.2
Published
May 13, 2026
Downloads
62/mo · 16/wk
Author
jonjonrankin
License
MIT
Types
extension
Size
5.9 KB
Dependencies
1 dependency · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-youtube-transcript

A pi extension that fetches YouTube video transcripts via the youtube-transcript library.

Install

pi install npm:pi-youtube-transcript

Usage

The extension registers a youtube_transcript tool that pi agents can call automatically when you ask about a YouTube video's content.

Example prompt:

Use youtube_transcript to summarize https://youtube.com/watch?v=dQw4w9WgXcQ

Supported URL formats

  • https://youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/shorts/VIDEO_ID
  • https://www.youtube.com/live/VIDEO_ID
  • Bare 11-character video IDs

Language

By default the tool returns the first available transcript. To request a specific language, the agent will pass a lang parameter (ISO language code like "en", "es", "fr").

License

MIT