YTranscript

approved

by lstrzepek

Easily fetch transcription for any YouTube video.

★ 190 stars↓ 57,967 downloadsUpdated 1mo agoMIT

YTranscript

Fetch the transcript of any YouTube video and use it in Obsidian: insert it into a note with clickable timestamps, or read and search it in a side panel.

Requires Obsidian 1.7.2 or later. Works on desktop and mobile.

Usage

Insert a transcript into your note (mobile-friendly)

  1. Position cursor where you want the transcript inserted
  2. Run the command YTranscript: Insert YouTube transcript
  3. The plugin will detect YouTube URLs from:
    • Currently selected text in editor
    • System clipboard
    • Manual input (fallback)
  4. Confirm or edit the URL in the prompt
  5. Transcript will be inserted directly at cursor position with clickable timestamps
  6. Continue writing your notes with the transcript content inline

This new command is perfect for mobile users and provides a seamless note-taking experience.

Side panel (desktop)

  1. In editor window select link to Youtube video
  2. Run the command YTranscript: Get YouTube transcript from selected URL (or …from URL prompt to paste a link) Screenshot 2024-01-03 at 21 59 48
  3. Transcription will appear in side window with timestamp Screenshot 2024-01-03 at 22 02 04
  4. In settings you can control how often a timestamp appears (once every x lines, default: 5), and where the panel opens
  5. Clicking on timestamp opens video in that place
  6. Right-click to copy all, or use the copy button
  7. You can drag and drop lines of transcription or timestamp link

Both the classic side panel commands remain available for users who prefer the traditional workflow.

YTranscriptPlugin2

Network use and privacy

  • Network: to fetch a transcript, the plugin sends the video ID and your language/country settings to YouTube (youtube.com, its InnerTube player API), then downloads the caption track. No other servers are contacted.
  • Clipboard: the Insert YouTube transcript command reads your clipboard once, to pre-fill a YouTube link you copied. Copy actions write transcript text to the clipboard.
  • No accounts, telemetry or analytics.

Contributing

See CONTRIBUTING.md.

Acknowledgments

Many thanks to creators and contributors of following plugins:

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.