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.

3971 questions
15
votes
2 answers

How Can I increase the expiry time of Spotify token?

Please advice how can I increase token expiry time While fetching data using spotify web API "https://accounts.spotify.com/api/token"
pca
  • 291
  • 2
  • 5
  • 13
15
votes
4 answers

"415 Error" when querying Spotify for tokens

I've been trying to recreate the spotify oauth connection in MeteorJS. I've gotten as far as requesting the access and refresh tokens, but I keep getting a 415 error now. Here is the relevant code: var results = HTTP.post( …
Pete.Mertz
  • 1,302
  • 2
  • 18
  • 34
14
votes
3 answers

How does the Spotify web browser button interact with the Spotify app?

Check out this play button, written entirely it seems, using javascript: spotify play button. Notice that pressing play will cause Spotify to start playing music. OK, I figure that's done via some app-specific protocol link (like spotify://play),…
Greg Slepak
  • 1,613
  • 16
  • 17
14
votes
1 answer

Mapping musicbrainz URIs into Spotify URIs

Does anybody know how can I find Spotify's URI for a given artist/album's musicbrainz URI? Spotify's web-api doesn't solve my problem cause I wanna map all the musicbrainz artists and albums and it's quite slow.
Sassan
  • 2,187
  • 2
  • 24
  • 43
13
votes
1 answer

Get current song playing in Spotify on iPhone

Accessing the MPMusicPlayerController.systemMusicPlayer() (code below) works for getting track info for what's playing in the Apple Music app, but is there a way we can access information of the current song playing in the Spotify app? This code…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
13
votes
2 answers

Setting tokens in Spotify iOS app disables login callback

I am trying to set up the login for my iOS app using Spotify's SDK. I have the login working, but only without tokens. Once I add these two lines of code: SPTAuth.defaultInstance().tokenSwapURL = NSURL(string:…
PoKoBros
  • 701
  • 3
  • 9
  • 25
13
votes
1 answer

How to pick an event listener that will let me wait until async.times is finished to run a function

I'm using a node.js server, the Spotify API, and the spotify-web-api-js node module to create a web application where the user can enter an artist's name, see a list of songs from related artists, and then optionally save that playlist to their own…
Yami Medina
  • 670
  • 10
  • 26
13
votes
3 answers

Starting a Song from Spotify Intent

Is there anyway to start a Spotify Track from its URI ? I've tried the following approaches but none of them work. When Spotify opens, it always lands in the Playlists page, instead of the track's player. String spotifyTrackURI =…
dornad
  • 1,274
  • 3
  • 17
  • 36
12
votes
3 answers

Controlling Spotify with AppleScript

Essentially what I'd like to do is play an entire album via AppleScript. Right now, you can use their special URIs to load the album, but not play it. You can also play a specific track, but once that finishes playing, your queue resumes what was…
Jesse
  • 551
  • 1
  • 5
  • 8
12
votes
3 answers

Spotify API: INVALID_APP_ID

I am currently working on an android app which is implementing the Spotify API. I have all of the code connecting my app to spotify using the tutorial and have been working on my app for sometime now. When I play a song through my app after…
Rockyfish
  • 339
  • 3
  • 15
12
votes
1 answer

Spotify Callback URI error

I'm working on my first app using ruby on rails and have run into a few problems when I deploy to Heroku. When I sign into Spotify on my app I get an error saying: INVALID_CLIENT: Invalid redirect URI in my console the error reads: Failed to load…
edrhuang
  • 121
  • 1
  • 2
  • 4
12
votes
3 answers

Using libspotify .dll/.lib files in MinGW32 compiling pySpotify

Using MinGW32 on a Windows PC I am trying to compile pySpotify. The first error was that libspotify/api.h was missing. I fixed this by copying the appropriate folder from libspotify into C:\MinGW\include. However now dllwrap is now failing with ld…
Metalshark
  • 8,194
  • 7
  • 34
  • 49
11
votes
1 answer

How to use Spring Security 5 and OAuth2 Client to get refresh tokens and make API calls?

I'm currently building a Spring Boot App with Spring Security + OAUth2 protocol. Here is the Authorization Guide from Spotify I'm following I'm having trouble understanding how to do steps 2 - 4 of Authorization Code Flow. I was able to get…
11
votes
1 answer

How can I get an access token Spotify API?

I've been looking at the Spotify api for a few days now and example source code and I still can't figure out how to get an access token to access a user's playlist data. I've gotten to the point where I pull up the login window, the user logs in,…
Ashwin Gupta
  • 2,159
  • 9
  • 30
  • 60
11
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
  • 741
  • 3
  • 7
  • 17