Remote Management API for Spotify?

Is there such a thing as the Spotify remote control API? I want to write an application that allows the user to manage the Spotify desktop client (play, pause, volume, playlists, etc.), but I can not find any documentation anywhere.

There are applications for remote control of iOS and Android, so I'm just wondering how they do it if there is no API.

+6
source share
1 answer

On Mac OS X, Spotify can be remotely controlled (for example, from other applications) using AppleScript using either the supplied API or the system event service.

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

And one more, using system events (this is not so elegant): http://www.jacktams.net/2010/04/28/spotify-applescripts-version-0-4-3/

The official documentation is a bit thin, although you can use the library function of the AppleScript editor to learn more about the suggested methods.

+2
source

Source: https://habr.com/ru/post/924946/


All Articles