Search code examples
macosswiftitunesspotify

How to start a specific song in spotify/iTunes


If I have access to information like : song name, artist, album, would it be possible to perform a search on spotify/iTunes (or even Apple Music) and start the song (if the search is successful) within the desktop client ?


Solution

  • Spotify

    Spotify has now a SDK for iOS but it will only works on iOS and NOT on OS X. Source - Frequently Asked Questions about the iOS SDK

    iTunes

    iTunes has some unofficial frameworks that may help you. I found this one named "EyeTunes" which can let you do what you want as said in your questions. (perform a search and launch a song). But, it is unofficial.

    Apple Music

    Today, no SDK or API has been announced so for the moment it is not a solution.