Spotify Remote Command Execution

With this service, you can execute simple commands to control your Spotify playback on your devices using a simple HTTP request.
There are plenty of possible usages, for example, you can create a cronjob that stops playback at a specific time,
e.g. as a sleep timer or combined with a doorcam / motion detection software.

Execute a command

Your Spotify username (not email address):

Your API key (received during the registration of your username to this service):

Before you can use this service, you need to connect this service to your Spotify account.
You may revoke access at any time from your Spotify account settings. If access is revoked, this service will automatically delete the locally stored Spotify credentials during the next synchronization.

Command:


Track (optional, e.g. 7Ae8DWaqtdPhdwKS7PWngf, only for usage with command "Play"):


Result:


You can execute the command by calling following URL, e.g. with the command line tool curl or wget:

https://www.daniel-marschall.de/spotify_control/command.php?username=...&key=...&command=...&track=...

The command URL is intentionally designed as a single HTTP GET request so that it can easily be used from automation systems, cron jobs, shell scripts, door cameras, IoT devices and similar software without requiring OAuth or custom HTTP headers.

Treat the generated command URL as confidential. Anyone who knows the URL can control your Spotify playback.




If you have any questions or if you encounter bugs or problems, please contact (in English or German).


Additional notes

Independent project

This service is an independent utility using the Spotify Web API. It is not affiliated with, sponsored, endorsed, or certified by Spotify AB.

Privacy Policy

This service allows you to remotely control playback on your own Spotify account using the official Spotify Web API.

When you connect your Spotify account, this service stores only the information required to operate:

No listening history, playlists, music library, playback history or personal profile information is stored.

Your data is used solely to execute commands you explicitly request (such as pause, play, next or previous track).

Your data is never sold or shared with third parties.

If you revoke this application's access from your Spotify account, the next connection attempt will detect the revocation and all locally stored Spotify credentials associated with your account will be deleted automatically.

If you have questions regarding your data, please contact Daniel Marschall.

Terms of Service

This service is provided free of charge without warranty.

You may use this service only with Spotify accounts for which you are authorized.

You are responsible for keeping your generated API key and command URLs confidential. Anyone knowing the command URL may control playback on your Spotify account.

This service acts only as a remote control for the official Spotify player through the Spotify Web API. It does not distribute, modify, copy or store Spotify content.

Spotify and its trademarks are the property of Spotify AB.

This service is not affiliated with, sponsored, endorsed or certified by Spotify AB.

The operator of this service may suspend or discontinue the service at any time without notice.

By using this service, you agree to these Terms of Service.