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

How to make a queue for spotify sdk android

I have an arraylist of songs uri from spotify using android sdk. But only one song is playing I want to detect when one song is complete so that I can initiate another song below is the code I am using. Config playerConfig = new…
Asad AndyDev
  • 481
  • 5
  • 23
1
vote
1 answer

Spotify logout on android

i have this code to log in to spotify in my app. I using the offical spotify lib. public void spotifyLoginBtnClicked(View v){ //start the authentication for spotify AuthenticationRequest.Builder builder = new…
cyden
  • 11
  • 1
1
vote
0 answers

Oauth.io Updating Request Object with New Access Token

I am using the Oauth.io phonegap-sdk for my Ionic app. I am having a problem updating my Oauth.io request object with a new access token. I am able to get the refresh token on the client side and I am able to successfully get a new access token…
1
vote
0 answers

Spotify api - using location data

Does the spotify api allow the option to pull down data related to location? Most popular genre of music in a location Most popular artist in your area Most popular band in your area https://developer.spotify.com/spotify-echo-nest-api/ ^ I was…
The Old County
  • 89
  • 13
  • 59
  • 129
1
vote
0 answers

Notify Spotify of hackathon usage

I am hosting a hackathon at my company and intending on making use of the Spotify WebAPI. I wanted to know what the preferred way of registering apps (does every attendee need a Spotify account or is there some work I can do ahead of the hackathon…
1
vote
0 answers

Do i need to setup a server to use spotifys authorization code flow?

I am using Electron to create an app for my raspberry pi to run and i want to be able to use my spotify playlists but i am having a little trouble using their api. I need to use their authorization code flow which grants you an access token after…
Zerry Hogan
  • 183
  • 2
  • 14
1
vote
1 answer

Unexpectedly unwrapping an optional to find a nil after an API call to Spotify

So I know this may be a bit specific but I've been staring at my code and am unable to resolve this issue. Basically, I'm making a network call to spotify to obtain a certain playlist and pass a number that will ultimately determine the number of…
Sam L.
  • 43
  • 1
  • 8
1
vote
2 answers

Spotify long term login with Android SDK

I'm looking forward to implement an app which connects to Spotify. To use Spotify services, I need a token, which I can get with the Spotify SDK, however this token is intended for quick expiring not for long term use. In the web API I can make…
Javier Enríquez
  • 630
  • 1
  • 9
  • 25
1
vote
1 answer

Spotify Web Api returns doubled results for artist's album search

Maybe someone from you will know why Spotify Web Api returns two the same album for this query? curl -X GET "https://api.spotify.com/v1/artists/3nFkdlSjzX9mRTtwJOzDYB/albums?album_type=album&market=PL&limit=50" -H "Accept: application/json" -H…
blaze
  • 13
  • 3
1
vote
1 answer

Can I use Spotify Audio Features API without Spotify account?

I'm trying to use "tempo" parameter for audio tracks by Spotify API. I found that following web API (Get Audio Features for a Track) can return "tempo" data which I want. https://developer.spotify.com/web-api/get-audio-features/ However, it requires…
ken
  • 648
  • 2
  • 6
  • 16
1
vote
1 answer

Using VBA for a POST request to the Spotify Accounts service via REST API

I'm trying to retrieve data from my spotify-account and put it in an Excelsheet. I want to create some VBA-code to access the data using the Spotify Web Api. I followed the Spotify Web API Authorization Guide but I'm stuck when I try to request the…
ronbrand
  • 11
  • 2
1
vote
1 answer

Spotipy -- accessing tracks from a public playlist without authentication

I want to search through public playlists and get the tracks. So far I have code which can get the names of the playlists but not the tracks: import spotipy import sys sp = spotipy.Spotify() if len(sys.argv) > 1: artist_name = '…
skex
  • 49
  • 3
  • 9
1
vote
1 answer

Android Spotify SDK Login error Unexpected token

I'm trying to implement Spotify SDK on an android app, when I click the button the Spotify activity starts just fine but when I try to login nothing happens and it logs me an Unexpected token error, I used the exact same code as in the Spotify…
Andres Rodriguez
  • 209
  • 1
  • 6
  • 13
1
vote
3 answers

Getting and playing 30 second previews from Spotify

I've looked into how to play 30 second previews but so far all I can find is android wrappers for the web API that require user authentication. I need to be able to search for an artist and play the first preview that pops up without needing the…
MichaelStoddart
  • 5,571
  • 4
  • 27
  • 49
1
vote
1 answer

Spotify - Track ID Features

I'm trying to acquire Spotify track ID's and I want to limit the number of non-functional ones that I have to trawl through. Are there any notable features of the track ID's that I can use to optimize my search? (Excluding that they are made from…
Damon Jenkins
  • 352
  • 1
  • 3
  • 12