Spotify Plugin for Obsidian
This plugin is a injector for the Spotify SDK. You need to write code yourself.
![](https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=mickeydarrenlau&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff)
This project uses the official Spotify TS Api
The Spotify Plugin for Obsidian allows you to integrate Spotify functionality into your Obsidian notes. With this plugin, you can access your Spotify account, search for songs, albums, and artists, and retrieve information about playlists, tracks, and more. Start using the Spotify Plugin today and enhance your note-taking experience with music integration!
Installation
To install the Spotify Plugin for Obsidian, follow these steps:
- Open Obsidian and navigate to the "Community Plugins" tab in the settings.
- Search for "Spotify api" in the plugin search bar.
- Click on the "Install" button next to the Spotify api Plugin.
- Once installed, enable the plugin.
Configuration
Before you can use the Spotify Plugin, you need to configure it with your Spotify API credentials. Here's how:
- Go to the Spotify Developer Dashboard and create a new application.
- Go to "Basic Information" for your new app
- Under "Redirect URIs", add
obsidian://spotify/auth
- Copy the "Client ID" and "Client Secret" values from your Spotify application.
- Open the Obsidian settings and navigate to the "Spotify" tab.
- Paste the "Client ID" and "Client Secret" values into the respective fields.
- Next follow the Authorization steps
Authentication
To authenticate with Spotify, follow these steps:
- Open the Obsidian settings and navigate to the "Spotify" tab.
- Enter your client and secret id
- Click the "Spotify login" button.
- Follow the on-screen instructions to complete the authentication process.
Usage
Once authenticated, you can use the Spotify Plugin to interact with the Spotify API. Here are some examples of what you can do:
- Search for songs, albums, and artists.
- Retrieve information about playlists, tracks, and albums.
- Control playback on Spotify devices.
- Get recommendations based on your listening history.
- Access user-specific data, such as top tracks and recently played tracks.
To use the Spotify Plugin in your Obsidian notes, you can use the provided JavaScript code examples. Here's an example of how to search for tracks:
// Search for tracks
const searchResults = await window.spotifysdk.search("Believer", "track");
console.log(searchResults);