YouTube Search

approved

by plasch

Search YouTube videos by link and automatically create notes with video metadata. - This plugin has not been manually reviewed by Obsidian staff.

ā˜… 2 stars↓ 207 downloadsUpdated 2mo agoMIT

YouTube Search — Obsidian Plugin

Search YouTube videos by link and automatically create Obsidian notes with rich metadata.


Features

  • šŸŽ¬ Paste any YouTube URL and create a note in seconds
  • šŸ“‹ Auto-paste from clipboard — the URL field automatically populates if your clipboard contains a YouTube link
  • šŸ“ Generates notes with frontmatter properties: title, url, videoId, channelName, channelUrl, thumbnailUrl, publishedAt, viewCount, tags
  • šŸ–¼ļø Optionally download and save thumbnails locally to your vault
  • āœļø Fully customisable note template using {{placeholder}} variables
  • āš™ļø Settings to control which properties are included

How to Use

  1. Click the YouTube ribbon icon (ā–¶ in the sidebar), or run the command "Add YouTube video" from the command palette (Ctrl/Cmd + P).
  2. Paste your YouTube video URL into the input field.
  3. A preview of the video (thumbnail, title, channel, metadata) is shown — review it.
  4. Click "Create Note" — done!

Supported URL Formats

FormatExample
Standard watch URLhttps://www.youtube.com/watch?v=dQw4w9WgXcQ
Short URLhttps://youtu.be/dQw4w9WgXcQ
Shortshttps://www.youtube.com/shorts/dQw4w9WgXcQ
Embed URLhttps://www.youtube.com/embed/dQw4w9WgXcQ
Mobilehttps://m.youtube.com/watch?v=dQw4w9WgXcQ

Generated Note Example

---
title: "Never Gonna Give You Up"
url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
videoId: "dQw4w9WgXcQ"
channelName: "Rick Astley"
channelUrl: "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw"
thumbnailUrl: "https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg"
publishedAt: "Oct 25, 2009"
viewCount: "1.4B"
dateAdded: "2025-01-15"
---

![thumbnail](https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg)

## Never Gonna Give You Up

ā–¶ļø [Watch on YouTube](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

**Channel:** [Rick Astley](https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw)

## Notes

> _Your notes here_

Settings

Note Creation

SettingDescriptionDefault
Note locationFolder where notes are savedYouTube
Filename templateTemplate for the note filename{{title}}
Open note after creationAuto-open the new notetrue

Note Properties

SettingDescriptionDefault
Include channel infoAdd channelName and channelUrlfalse
Include thumbnailAdd thumbnailUrl and show imagetrue
Include tagsAdd YouTube video tagsfalse
Include video infoAdd YouTube video infofalse

Thumbnail

SettingDescriptionDefault
Save thumbnail locallyDownload thumbnail to vaultfalse
Thumbnail directoryWhere to save thumbnailsYouTube/thumbnails

When Save thumbnail locally is enabled, the thumbnailUrl property becomes an Obsidian wiki-link [[YouTube/thumbnails/VIDEO_ID.jpg]] so the image embeds natively.

Template Variables

Use these in the Filename template or Custom note template settings:

VariableValue
{{title}}Video title
{{videoId}}YouTube video ID (e.g. dQw4w9WgXcQ)
{{url}}Full YouTube URL
{{embedUrl}}YouTube embed URL
{{channelName}}Channel name
{{channelUrl}}Channel URL
{{channelId}}Channel ID
{{thumbnailUrl}}Thumbnail URL (local path or remote URL)
{{thumbnailUrlRemote}}Always the remote thumbnail URL
{{description}}Video description (first 500 chars)
{{publishedAt}}Publish date
{{viewCount}}View count (formatted, e.g. 1.4B)
{{tags}}Comma-separated list of video tags
{{date}}Today's date (YYYY-MM-DD)
{{time}}Current time (HH:MM:SS)

Installation

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create a folder <vault>/.obsidian/plugins/youtube-search/.
  3. Copy the three files into that folder.
  4. In Obsidian → Settings → Community plugins, enable YouTube Search.

From Source

git clone https://github.com/plasch/obsidian-youtube-search-plugin
cd obsidian-youtube-search-plugin
npm install
npm run build

Then copy main.js, manifest.json, and styles.css to your plugin folder.

How It Works

The plugin uses no YouTube API key. It fetches video metadata via:

  1. YouTube oEmbed API (youtube.com/oembed) — provides title, channel name, and thumbnail URL. No auth required.
  2. YouTube page scraping — extracts additional metadata (description, tags, view count, publish date, channel ID) from the video page HTML.

This means the plugin works out of the box with no configuration needed.

Privacy

All requests go directly from Obsidian to YouTube's servers. No data is sent to any third-party service.

License

MIT

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.