Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote control API for Spotify?

Tags:

spotify

Is there such a thing as a Spotify remote control API? I want to write an app which lets the user control the Spotify desktop client (play, pause, volume, playlists, etc.) but I can't seem to find any documentation anywhere.

There are iOS and Android remote control apps out there so I'm just wondering how they do it if there isn't an API.

like image 918
lmirosevic Avatar asked Sep 09 '12 08:09

lmirosevic


People also ask

Can Spotify be controlled remotely?

To use your phone as a Spotify remote, you'll need the following: An iOS, Android, or Windows phone with the Spotify mobile app installed. A device to play the music on: this can be a smart home device like the Chromecast, Google Home, or Amazon Echo, or a computer running Spotify in a web browser or desktop app.

Is Spotify's API free?

You can make similar calls through the Web API to retrieve information from the Spotify catalog about artists, tracks and playlists. There is a huge amount of data available, and the best part is that it's free to access.

Can you use Spotify API to play music?

Starting playback The namesake feature of our Player API is the /v1/me/player/play endpoint — your tool for beginning or continuing the playback of music or podcasts on Spotify. It's more powerful than the play button that you see in Spotify's mobile app.


1 Answers

On Mac OS X, Spotify can be controlled 'remotely' (i.e. from other apps) using AppleScript, either using the bundled API or the System Events service.

Here's an example of using the bundled API: https://github.com/activars/spotify-applescript/blob/master/spotify_control.applescript

And another one using System Events (it isn't quite as elegant): http://www.jacktams.net/2010/04/28/spotify-applescripts-version-0-4-3/

Official documentation is a bit thin, although you should be able to use the AppleScript editor's library feature to find out more about the methods offered.

like image 156
Wander Nauta Avatar answered Oct 08 '22 11:10

Wander Nauta