spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Retrieve User's Currently Playing Track #12

Closed sanjams2 closed 7 years ago

sanjams2 commented 9 years ago

Is there a way/plans of an update to the web-api that provides a way to get the song a user is currently listening to?

benbristow commented 8 years ago

+1

jerblack commented 8 years ago

+1 here too

Evertvandenbruel commented 8 years ago
bombadillo commented 8 years ago

+1

ThottChief commented 8 years ago

+1

ashfinlayson commented 8 years ago

:+1:

Kwapi commented 8 years ago

great idea

finafisken commented 8 years ago

+1

luksha commented 8 years ago

+1

SkylerLutz commented 8 years ago

This needs to happen

AbbieGator commented 8 years ago

+1

k9ordon commented 8 years ago

+1

lachieh commented 8 years ago

@thelinmichael Any updates? It would be good to have this endpoint at least for the currently logged in user. I understand the privacy concerns and the potential load of providing this endpoint for all users publicly, but the ability for a user to log in using the api and see their own current song on an app would be great.

I'm thinking something like a GET on /v1/me/currenttrack/ which returns the same data as /v1/tracks/{id}

brunoksato commented 8 years ago

+1

dittodhole commented 8 years ago

+1

aleicher commented 8 years ago

+1 the suggestion by @lachieh sounds really good, since no data is exposed without the user authorizing it, and at the same time, the load on the API is limited. Being able to retrieve the current song (or the listening history) opens up interesting opportunities to add value on top of Spotify

Mheetu commented 8 years ago

+1

dfederschmidt commented 8 years ago

+1

freman commented 8 years ago

+1 and while you're at it, can you give me api that lets me tell the current active player to skip to the next track?

With these two features available by API I can implement the most desired ability to skip blacklisted songs.

remcorakers commented 8 years ago

+1

dittodhole commented 8 years ago

@jsanders67 that is exactly my issue for Spotify Connect players, hence my project node-upnp-scrobble-js

orrybaram commented 8 years ago

+1

hycday commented 8 years ago

just to understand, all our +1s are now a lot, what's the point of it ? will it get to somewhere or not really ? thanks a lot for any answer that can help :)

lachieh commented 8 years ago

It's the only way to simply 'agree' with the feature request publicly as GitHub doesn't have a better way of showing it.

Unfortunately, I think it's had the unfortunate effect of getting @thelinmichael and the Spotify team to 'unsubscribe' from this issue and effectively miss any new questions or suggestions.

Edit: This has changed as of 2016. If anyone wants to add support for this feature, please add a "thumbs up" to the initial post.

plamere commented 8 years ago

+1

orrybaram commented 8 years ago

@jsanders67 mentioned it, but here's my quick implementation with the Last FM API. It gets your recently played tracks, does a Spotify search on the most recent, returns the track's uri and builds an embedded player with the uri. https://gist.github.com/orrybaram/334d43ce7f5569b46c14

lachieh commented 8 years ago

@orrybaram Thanks. It's not quite ideal, as it relies on a third party (last.fm) but some people might be able to use it. It at least shows that what we are requesting is technically possible. Heck, the currently playing song is already in use for the Spotify Connect API. It can't be that much of a stretch to get it into the Web API.

ash-vd commented 8 years ago

Would love to see this feature implemented...

thedeeno commented 8 years ago

@freman that's exactly why they're not implementing this

freman commented 8 years ago

@thedeeno really? Why on earth would they want us to not be able to script rubbish music... I've managed to do it on OS X anyway - https://gist.github.com/freman/f055f614d5fcbfe96ff1

philippn commented 8 years ago

+1

seanemmer commented 8 years ago

+1

JesusEduardo2028 commented 8 years ago

+1

brunorsini commented 8 years ago

+1 !

jessemillman commented 8 years ago

+1

altitude commented 8 years ago

+1

thedeeno commented 8 years ago

@freman Not sure, just a guess. I assume it's more expensive for them.

Nice script!

tomeriksen commented 8 years ago

+1

endowzoner commented 8 years ago

+1

sjunnesson commented 8 years ago

+1

rollerd commented 8 years ago

+1

vincentaudebert commented 8 years ago

+1

bloudermilk commented 8 years ago

+1

augustinas commented 8 years ago

+1

wohlfea commented 8 years ago

+1

jdtzmn commented 8 years ago

I found a way to do this: Check out this article: http://cgbystrom.com/articles/deconstructing-spotifys-builtin-http-server/

For various languages: Python: https://github.com/cgbystrom/spotify-local-http-api Javascript: https://github.com/nutgaard/SpotifyHttpJs

pizzarob commented 8 years ago

+1 why isn't this implemented? The people want it!

ralapack commented 8 years ago

:+1:

ghost commented 8 years ago

+1

philnelson commented 8 years ago

+1, it's insane that this doesn't exist. There must be some "business reason" to omit this.