{"id":15707186,"url":"https://github.com/simonbs/spotify-controls-api","last_synced_at":"2026-01-08T09:02:06.123Z","repository":{"id":144743602,"uuid":"54271342","full_name":"simonbs/spotify-controls-api","owner":"simonbs","description":"Simple API for controlling Spotify from other services.","archived":false,"fork":false,"pushed_at":"2016-03-19T15:05:07.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T17:38:51.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-19T14:56:22.000Z","updated_at":"2023-03-18T22:40:38.000Z","dependencies_parsed_at":"2023-04-26T18:00:44.977Z","dependency_job_id":null,"html_url":"https://github.com/simonbs/spotify-controls-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fspotify-controls-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fspotify-controls-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fspotify-controls-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2Fspotify-controls-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonbs","download_url":"https://codeload.github.com/simonbs/spotify-controls-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342994,"owners_count":20761947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T20:37:58.589Z","updated_at":"2026-01-08T09:02:01.091Z","avatar_url":"https://github.com/simonbs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spotify-controls-api\n\nA dead simple API for controlling Spotify from other services.\n\nThis tiny API is useful for integration into other services, e.g. [openHAB](http://github.com/openhab/openhab-distro) if you are into home automation. The API can easily be integrated into openHAB using either the [HTTP Binding](https://github.com/openhab/openhab/wiki/Http-Binding) or the [Exec binding](https://github.com/openhab/openhab/wiki/Exec-Binding).\n\n## Features\n\nThis simple API allows you to control Spotify running on an OS X machine using a simple API which you can communicate with using HTTP.\n\nThe following commands are supported:\n\n- Play\n- Pause\n- Play/pause, i.e. toggling between the two.\n- Next track\n- Previous track\n- Retrieving artist name and track name for the current track.\n\n## Usage\n\nRun the Node.js app using `node app.js`. The API will be available on `localhost:3000`.\n\nYou can issue the following requests. E.g. `PUT localhost:3000/next` to skip to the next track.\n\n| HTTP Method | Resource                      |\n|-------------|--------------------------------\n| PUT         | /play                         |\n| PUT         | /pause                        |\n| PUT         | /playpause                    |\n| PUT         | /next                         |\n| PUT         | /previous                     |\n| GET         | /current                      |\n\nThe API is backed by an Apple Script which sends the commands to Spotify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fspotify-controls-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonbs%2Fspotify-controls-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fspotify-controls-api/lists"}