Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Node Spotify Web | 639 | 72 | 14 | 6 years ago | 11 | December 11, 2014 | 50 | mit | JavaScript | |
Node.js implementation of the Spotify Web protocol | ||||||||||
Spotify Websocket Api | 389 | 8 years ago | 16 | Python | ||||||
Spotify Websocket API is a fully open source Spotify library based on the WebSocket API used in the Spotify Web beta | ||||||||||
Spotify Connect Ws | 46 | 5 years ago | JavaScript | |||||||
A Socket.IO plugin for interfacing with Spotify's Connect API using WebSockets. | ||||||||||
Sactivity | 12 | a year ago | 7 | gpl-3.0 | TypeScript | |||||
Spotify WebSocket Activity API Library | ||||||||||
Along | 10 | 4 years ago | TypeScript | |||||||
🎙Your Spotify playlists with voice interface. 🔬Empathy and the Web Speech Recognition API. | ||||||||||
Musicpage | 9 | 6 years ago | CSS | |||||||
Python powered music controlling webpage with websockets and bottle py (works with spotify, vlc, audacious, and others) | ||||||||||
Tuneswitch | 7 | 2 years ago | Dart | |||||||
An app that switches music listened by users according to location | ||||||||||
Stream Stuff | 6 | a year ago | Python | |||||||
Stream layout written with ember | ||||||||||
Spotify Rooms | 5 | a year ago | 18 | mit | TypeScript | |||||
👂 Listen to Spotify together (WIP) | ||||||||||
Soundfoundry | 4 | 5 years ago | 19 | TypeScript | ||||||
Social sound list for Spotify made with Angular and WebSockets |
NOTE: This API will only work with paid Spotify accounts. I'm perfectly fine with this restriction and won't be attempting to circumvent it, nor will I merge patches that do. It'd only end in a game of cat and mouse which is a waste of everyone's time. If you like Spotify, buy a Premium account and tell the industry that it's a great payment model for music.
Firstly, try out the demo script to make sure you've got the dependencies installed properly:
Then you can try one of the example scripts
cd examples python blocking.py <username> <password> album
This should show an album title and a list of track titles for it.
Using the API is pretty simple, here's the basics:
sp = Spotify("username", "password") results = sp.search("carly rae jepsen") for track in results.getTrack() print track
Included is an experimental client called respotify, based on this API. It's almost identical to despotify-simple in terms of functionality. Be sure to have the following additional dependencies installed:
Once you've installed these, you can run the client like this:
cd clients/respotify ./respotify.py <username> <password> _ ___ _ (_) / __) ____ _____ ___ ____ ___ _| |_ _ _| |__ _ _ / ___) ___ |/___) _ \ / _ (_ _) (_ __) | | | | | | ____|___ | |_| | |_| || |_| | | | | |_| | |_| |_____|___/| __/ \___/ \__)_| |_| \__ | |_| (____/ info shows account information play plays the track with given index help shows help information stop stops any currently playing track album view the album for a specific track quit quits the application artist view the artist for a specific track list lists your rootlist or a playlist uri lists metadata for a URI (album) next plays the next track in the current playlist current shows the current playlist we're playing prev plays the previous track in the current playlist >
Want to help out? Great! Here's a a list of things that need doing or improving:
If you'd like to help out with this library or write a new one for another language do let me know and pop into #despotify on EFnet. I'm aware of people working on Java and Node.js libraries currently, more are of course welcome.