Questions tagged [spotify]

Spotify is a streaming music service for multiple platforms. This tag covers Spotify's various developer libraries and public APIs, including Web API, mobile SDKs, and Web Playback SDK.

The Spotify Platform allows developers to integrate Spotify in their applications using Spotify's Web API, iOS SDK, Android SDK, and Web Playback SDK. Read more about these and other tools on the Spotify for Developers website.

What Questions should I ask?

Questions using this tag should be about how to use one of these platforms. You may find that in some cases, a question that arises whilst developing for these platforms is not Spotify specific; e.g. a common JavaScript question whilst creating a Spotify Web API Application, or an Android question whilst using the Android SDK. In these cases, you should tag your question with the or tag instead.

Platforms

Web API

The Web API provides developers with an interface to query Spotify's extensive music catalogue through a REST interface, using OAuth 2.0 for authentication.

Useful Resources

Web Playback SDK

The Spotify Web Playback SDK makes it possible to add audio streaming to your website. You can use it in conjunction with the Spotify Web API to build rich applications on top of the Spotify platform.

Useful Resources

iOS SDK

The Spotify iOS SDK makes it easy to add audio streaming, playlist manipulation, metadata lookup and other Spotify features to iOS apps.

Useful Resources

Android SDK

Similarly to the iOS SDK, the Spotify Android SDK enables developers to do things like music playback, playlist manipulation, and metadata lookup.

Useful Resources

libspotify [DEPRECATED]

This C library allows third-party developers to write applications that utilize the Spotify music streaming service. Please note that this library is considered deprecated.

3397 questions
9
votes
2 answers

Implicit Flow with silent refresh in React

Background I'm testing Implicit Flow auth in my React app and trying to implement so-called Silent Refresh capabilities, where I periodically ask for a new access token while the user is logged in, without the need to ask him for a new…
8-Bit Borges
  • 8,099
  • 15
  • 64
  • 132
9
votes
1 answer

How to change BPM value of Spotify Song Swift

I am trying to build an application that plays Spotify songs. I am really confused about how to change BPM(Beats Per Minute,) value of Spotify songs. First Step: Login through Spotify. Second Step: Get Current user all album. Third Step: get album…
Sham Dhiman
  • 544
  • 6
  • 26
9
votes
3 answers

Add song to Spotify Queue through Spotify API

With the new endpoint /player of the Spotify Web API we can now control the playback of a Spotify Client. With the endpoint https://api.spotify.com/v1/me/player/play we can add a song to be played. I was wondering if there is a way to utilize the…
Johannes
  • 231
  • 2
  • 5
9
votes
1 answer

Spotify session management

I have a spotify login in my app and try to made an autologin: Login function func getSpotifyToken(fromController controller: UIViewController, success: (spotifyToken: String?) -> Void, failure: (error: NSError?) -> Void) { loginSuccessBlock =…
Viktor
  • 840
  • 7
  • 18
9
votes
4 answers

Getting Spotify play history through either the Web API or libspotify

Is there a way to get my Spotify play history using either their js or C APIs? I saw a couple of examples, but that was using their outdated API version.
kmdent
  • 1,505
  • 15
  • 29
9
votes
2 answers

How is Spotify able to open the desktop app via the Gmail inbox view?

This is the first time I've ever seen a button like this (see right side). Clicking on that button launches Spotify. How is Spotify able to do this for their emails? Can this be done with other applications right now?
jetcom
  • 865
  • 5
  • 13
  • 20
8
votes
2 answers

Using Open Graph API, can I see when users Add To Playlist or Star tracks in Spotify?

How would I access when a user (and a friend of a user) adds a song to a playlist, or stars a song in Spotify, Rdio etc?
Jordan Feldstein
  • 9,671
  • 9
  • 44
  • 78
8
votes
1 answer

Angular HttpClient Behavior Raw HTML

I'm using Angular 5 HttpClient and I'm trying to get an HTML response from a page that provides both json data and HTML. (Spotify auth). When I curl, I get the expected HTML and the json payload. No matter what I try with HttpClient, all I can get…
Ahack
  • 203
  • 2
  • 11
8
votes
1 answer

Spotify SDK Missing token refresh service?

I am trying to avoid popup grant permission for user every time session expired in Spotify for SDK. Pop comes up after one hour maybe a popup appear to grant permission again to user so he can play tracks from Spotify on my app , the Error I am…
Khodour.F
  • 14,342
  • 11
  • 37
  • 73
8
votes
1 answer

Is the Spotify search API no longer available without authentication?

For years I've been using Spotify's search API for various projects. It has always been available to use without authentication. Example: https://api.spotify.com/v1/search?q=kanye%20west&type=track Now starting just today it is responding with the…
AthleteInAction
  • 409
  • 4
  • 13
8
votes
0 answers

State of libspotify in 2017

I know that libspotify will no longer get any support and is replaced by webapis. I do not have any problems with this because libspotify usability is just bad and there are a lot of unfixed bug as well as lots of missing features. However, there is…
Thalhammer
  • 275
  • 2
  • 7
8
votes
2 answers

How to properly handle token refresh with Spotify SDK and Swift 3. Error Code=3840

tl;dr I'm receiving: JSON text did not start with array or object and option to allow fragments not set. if i'm trying to receive a token and No refresh token available in the session! if I'm trying to renew a token. I'm trying to setup the token…
David Seek
  • 15,533
  • 14
  • 94
  • 125
8
votes
3 answers

Setting localhost as a Spotify redirect_uri

I've looked here on SO and I've found a few posts about redirect_uri but I can't seem to figure out how I use Localhost as my redirect uri . Hopefully anyone can explain this to me. With kind regards,
StabDev
  • 651
  • 3
  • 7
  • 13
8
votes
1 answer

Get ISRC code from iTunes Search API (Apple music)

Apple has a search API that allows you to query the iTunes Store for music: https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/ Here is an example search:…
evenodd
  • 1,746
  • 4
  • 22
  • 36
8
votes
0 answers

Can Spotify iOS SDK access offline tracks

Is it possible to access tracks offline using the Spotify iOS SDK? I haven't managed to find any documentation or examples that show how this is possible. Some old questions indicate it is available in the deprecated LibSpotifylibrary but it is…
Jim Leask
  • 5,191
  • 3
  • 18
  • 29