plasch281 downloadsSearch YouTube videos by link and automatically create notes with video metadata.
Search YouTube videos by link and automatically create Obsidian notes with rich metadata.
title, url, videoId, channelName, channelUrl, thumbnailUrl, publishedAt, viewCount, tags{{placeholder}} variablesCtrl/Cmd + P).| Format | Example |
|---|---|
| Standard watch URL | https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| Short URL | https://youtu.be/dQw4w9WgXcQ |
| Shorts | https://www.youtube.com/shorts/dQw4w9WgXcQ |
| Embed URL | https://www.youtube.com/embed/dQw4w9WgXcQ |
| Mobile | https://m.youtube.com/watch?v=dQw4w9WgXcQ |
---
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"
---

## 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_
| Setting | Description | Default |
|---|---|---|
| Note location | Folder where notes are saved | YouTube |
| Filename template | Template for the note filename | {{title}} |
| Open note after creation | Auto-open the new note | true |
| Setting | Description | Default |
|---|---|---|
| Include channel info | Add channelName and channelUrl |
false |
| Include thumbnail | Add thumbnailUrl and show image |
true |
| Include tags | Add YouTube video tags | false |
| Include video info | Add YouTube video info | false |
| Setting | Description | Default |
|---|---|---|
| Save thumbnail locally | Download thumbnail to vault | false |
| Thumbnail directory | Where to save thumbnails | YouTube/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.
Use these in the Filename template or Custom note template settings:
| Variable | Value |
|---|---|
{{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) |
main.js, manifest.json, and styles.css from the latest release.<vault>/.obsidian/plugins/youtube-search/.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.
The plugin uses no YouTube API key. It fetches video metadata via:
youtube.com/oembed) — provides title, channel name, and thumbnail URL. No auth required.This means the plugin works out of the box with no configuration needed.
All requests go directly from Obsidian to YouTube's servers. No data is sent to any third-party service.
MIT