Skip to main content
This covers how to load YouTube transcripts into LangChain documents.

Setup

You’ll need to install the youtubei.js to extract metadata:
npm

Usage

You need to specify a link to the video in the url. You can also specify language in ISO 639-1 and addVideoInfo flag.

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.