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
5 answers

Javascript jquery Help w/ for loop buttons

I have problem with my code.I'm building a spotify app for school using the spotify WEB Api. My problem is that I have a function that will use a for loop to output data in a table and also create buttons with individual ids like=
MikkoDE
  • 11
  • 1
1
vote
1 answer

return only user owned playlist spotify api

I want to get a list of playlists that a user owns from Spotify. I don't want any collaborative or shared playlist, just the playlists the user owns, and can update. It its explained here how to get a user's playlist. My code currently looks like…
user6002037
1
vote
0 answers

Username formatting issue when using Spotify API + RSpotify gem

I'm running into a strange issue with the Spotify API, specifically the Playlist search (using RSpotify::Playlist.find()). I'm providing a playlist ID and the owner's ID, but in some cases the owner's username has characters that require…
Max
  • 597
  • 7
  • 21
1
vote
1 answer

ISRC on track objects

I'm aware that not every endpoint provides an ISRC code for tracks. But can it be assumed with certainty that every track has an ISRC code when queried directly from the https://api.spotify.com/v1/tracks endpoint? Are there cases where no ISRC is…
Alex Harris
  • 6,172
  • 2
  • 32
  • 57
1
vote
1 answer

Spotify Follow Count Num

I added the Spotify Follow Button Embed Code for our wordpress website. Question: Is there a way to hide the number for followers the user have, the one showing on right after the follow button.
1
vote
1 answer

Is it allowed to use the Spotify Web API for commercial projects?

I have a simple question concerning the Spotify Web API. Is it legal to retrieve data from this service as a base for my app which then should be commercial? Without going too much into detail: I use the information to present the user an extra…
The_Unknown
  • 988
  • 2
  • 11
  • 22
1
vote
1 answer

Facebook, Spotify (iOS) using MPVolumeView or custom view to bring airplay?

I am working on a voip app and want to route audio to bluetooth. I learned that the only way to do is to bring up airplay menu using MPVolumeView. The downside of the MPVolumeView is that it is not very customizeable. I looked at facebook and…
Rizwan
  • 29
  • 4
1
vote
1 answer

Spotify Android SDK with Doze battery optimizations

When I use the Spotify Android SDK to play music and Doze kicks in, the music stops playing because the app loses network connectivity. Is there a way to solve this? The only way I can think of is ask the user to whitelist the app using a…
RuudJ
  • 53
  • 8
1
vote
1 answer

Play local song and spotify song in the same android player service

I have an Android service that can play local song (I followed this tuto: https://code.tutsplus.com/tutorials/create-a-music-player-on-android-song-playback--mobile-22778) I can control the player using a MediaController (made with this…
Maloz
  • 165
  • 1
  • 2
  • 17
1
vote
1 answer

How can I get a list of playlists by user with the spotify web api?

I'm working on a project and I would like to get a list of all the playlists of the logged in user on spotify. Currently I can loggin and see user info (by following the demo on spotify). Now I want to get the playlists of the user that is logged in…
1
vote
3 answers

Authorising a Spotify session on a headless system

Clearly by the negative score, I haven't provided enough information - sorry about that. However, perhaps add comments to explain why rather than just marking it down? 2nd attempt at a description: I would like to be able to connect to Spotify's web…
Martin Harrison
  • 145
  • 2
  • 11
1
vote
1 answer

401 Unauthorized when trying to grab playlists using Spotify API

I've pulled a client_credentials token and while I can access other parts of the API, I can't seem to pull playlist information. It's definitely a public playlist, yet I'm getting 401 Unauthorized. Am I just misunderstanding something? Edit For…
Max
  • 597
  • 7
  • 21
1
vote
1 answer

create playlist spotify API

I am trying to create a playlist using the Spotify API and am receiving the following error: { "error" : { "status" : 400, "message" : "Error parsing JSON." } } I am following the example on this page that says to use the following curl…
user6002037
1
vote
0 answers

Undefined variable notice when trying to use Spotify API PHP Wrapper

I hope you are well. I am brand new to coding and have spent a lot of time trying to find a solution to my question, without much luck. I was trying to utilize Spotify's API with PHP but ran into thus far unsurmountable hurdles. Please see steps…
TryHardy91
  • 13
  • 2
1
vote
0 answers

How to handle connectivity loss properly in spotify android sdk?

Am developing an Android application which should work mainly as a music player with several sources ,Spotify,SoundCloud and external storage. on the normal state would receive information from the backend and then determine whether to play the song…