Search Song on Spotify

This shorcut makes it easy to search a song on Spotify by using the official Spotify Web API.


Description

Search Song on Spotify

This shortcut is an easy way to search for a song on Spotify. It returns all available metadata from Spotify, for example its cover and song url. This data can be used to play the song, add it to a playlist etc. The shortcut is using the official Spotify Web API.

Important: This shortcut depends on another additional shortcut which you need to download first in order to make it work:

Spotify Get Search Token

Please download the above shortcut beforehand and make sure to follow the instructions how to set it up! This has to be done only once and I use it in all my Spotify shortcuts.

You'll need the DataJar app to get my Spotify shortcuts to work. DataJar makes it easy and secure to store all Spotify API credentials without the risk to share them by accident. Necessary tokens will be reused as long as they are valid and automatically refreshed otherwise. You don't have to bother with any authentication-related stuff by yourself.

To customise the search results you might want to add your Spotify country code (ISO 3166-1) inside your DataJar dictionary as well: spotifyApi.country (e.g. US or GB). Otherwise it defaults to Germany.

How it works: The shortcut expects a dictionary as input containing both an artist and a title to search for. It will return a dictionary with the Spotify result containing all information as listed in the api reference here.

Preview: Here's an example of the simplest way how you can use this shortcut in your own ones. There are only three steps to search and play a song: screenshot


Latest Release Notes

1.0.0 - Oct. 10, 2022, 2:09 p.m.

initial release