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
1
vote
1 answer

Unable to login using Spotify iOS SDK Simple Track example if swap service defined

Using Spotify iOS SDK Beta-16. The Simple Track sample application included with the SDK works fine out of the box; can login, play, etc. However, if the #defines for kTokenSwapServiceURL and kTokenRefreshServiceURL are uncommented, and the urls…
user1899931
  • 107
  • 6
1
vote
1 answer

Spotify iOS SDK returning songs that do not exist? - Swift

So I'm building some playlist and song retrieval into my app at the moment, and I'm really confused by some of the results I'm getting back from the API. It seems to be returning songs that no longer exist on Spotify or have been long removed from a…
Ryan Daulton
  • 1,159
  • 1
  • 11
  • 22
1
vote
1 answer

Is UWP / XAML C# compatible with the Spotify API?

I am learning development for Windows Universal Platform and I wanted to create a simple app capable of leveraging some Spotify data once the user logs in. I can see from the documentation that there is an SDK for Android and iOS, and a library that…
Florian Monfort
  • 153
  • 4
  • 13
1
vote
1 answer

Spotify SDK genres are always empty?

Hey guys I am currently working with the Spotify SDK. I implemented a Login and asking for permission to access the Users Playlist. When the user gives me the permission I can access all their tracks and get all kinds of information out of them,…
Stav
  • 11
  • 3
1
vote
0 answers

Unable to iterate over (actual) results in Spotify API search

The number of returned results in Spotify API varies with different values of offset and limit. For instance: https://api.spotify.com/v1/search?query=madonna&offset=0&limit=50&type=playlist playlists.total=…
1
vote
0 answers

Spotify ::: playing songs using osascript and Python

I am running a python script in order to play two Spotify songs in a row via Echonest api. Apparently, there's something wrong with this osacript syntax: def play(id1, id2): print 'playing', id1, 'then', id2 os.system("osascript -e 'tell…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
1 answer

How to format environment variables with spaces on Heroku?

So I'm following this guide involving Spotify playlist integration on Slack. The guide says to create an environment variable called SPOTIFY_USERNAME. I'm very confused on how to format the value for this variable. My username shows up as "Ralph…
Ralph David Abernathy
  • 5,230
  • 11
  • 51
  • 78
1
vote
1 answer

Spotify Oauth, Getting users profile

I'm trying to allow users to login to my site using their spotify account but receive {"error":"server_error","error_description":"Unexpected status: 415"} when receiving the JSON response. This is the code I'm using: if (isset($_GET['code']) )…
1
vote
1 answer

Saving custom object to NSUserDefaults - can't set encoder and decoder methods

How would you be able to save a custom object to NSUserDefaults?? NSUserDefaults.standardUserDefaults().setObject(obj, forKey: "object") NSUserDefaults.standardUserDefaults().synchronize() The object is of the SPTAuthViewController class in the…
PoKoBros
  • 701
  • 3
  • 9
  • 25
1
vote
0 answers

Login issue when spotify app is installed but not logged in spotify inside my android application

Past couple of days i am facing a one problem : login in spotify in my application after installed spotify application in my android device. Before installed spotify application in my device it's proper working login & logout but when installing…
Dhruv Raval
  • 4,946
  • 3
  • 29
  • 34
1
vote
2 answers

Android Can't Import Two Libraries

I'm trying to create an android app that uses both the CNU Project Sphinx library for android and the Spotify library for android. I can implement the libraries fine in separate projects, but when I try and combine them into one, I get the…
Oblivionkey3
  • 1,752
  • 2
  • 17
  • 25
1
vote
3 answers

Spotify API - error retrieving access token during authorization process

I'm building my first Spotify application and right now I'm tackling the authorization process. So far I have been successful in retrieving my State and Code from https://accounts.spotify.com/authorize and now I'm sending a POST request via PHP…
Tobraham
  • 9
  • 5
1
vote
1 answer

Unknown error in Spotify auth flow SDK

When I try and authenticate using the Safari-flow for Spotify in the iOS SDK, all goes well. However, when I install the Spotify app, then it redirects me directly to the app and back, returning this error: Error Domain=com.spotify.auth Code=0…
1
vote
1 answer

Initiate Spotify track playback at a given start time using the iOS Spotify SDK?

We're using the iOS Spotify sdk to play Spotify tracks via SPTAudioStreamingController. I'm playing a track via playURIs:fromIndex:callback but the goal is to play it back starting from a given time offset (vs the start of the track). I've tried…
Drew O'Meara
  • 401
  • 2
  • 14
1
vote
1 answer

Get current user's authorized Spotify scopes

We are using the Spotify API and are adding a call which requires to change the authorization scope (adding; user-library-modify). We don't want to disconnect all our user's tokens when deploying this feature. Is it possible the get the current…
Martin de Keijzer
  • 382
  • 1
  • 3
  • 19