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

Nothing returned when requesting CSV with curl

I've tried a lot of combinations of headers, but still get an empty result returned from curl. I know I need to send an auth token (which I do) and use SSL (which I am). This works in the browser. Am I missing something? $agent= 'Mozilla/5.0…
Chris Tanner
  • 90
  • 1
  • 6
1
vote
2 answers

Acquire random songs from Spotify API

I know how to query XX from Spotify API. As script below, we simply set keywords = XX url = 'https://api.spotify.com/v1/search?q='+ keywords +'&type=' + search_type +'&offset='+ off +'&limit=' + lim j = requests.get(url).json() But I'm wondering,…
LookIntoEast
  • 8,048
  • 18
  • 64
  • 92
1
vote
0 answers

Retrieving total count of Spotify playlist followers

Ex. www.spotontrack.com/playlists In the API documentation, there is a followers object with a total key, yet this code: client_credentials_manager = SpotifyClientCredentials() sp =…
Chris Tanner
  • 90
  • 1
  • 6
1
vote
0 answers

How to use cURL requests in Java

I am trying to get some authorisation codes from Spotify. I use the athorisation flow described here: https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow. Now I am stuck at number four: "Your application requests…
K41
  • 11
  • 3
1
vote
1 answer

How to pass Spotify access token retrieved by Spring controller?

I am using Spotify web API to get access to user data: public class Application { public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); final String clientId = "clientId"; final…
UO Man
  • 153
  • 4
  • 13
1
vote
1 answer

Change Spotify apk name

I'm trying to change the name of the apk of spotify, but show me many dependencies to make this... First I follow this manual: Change Package Names of APKs On the first step, I found on in manifest.xml
1
vote
1 answer

Spotify api getting acces token / code

so I'm trying to use this library library to access my Spotify account but i can't figure out how i can get an acces token but i can't figure out how i can get the response from the authorization URL I have trayed creating a input stream that…
simondid
  • 25
  • 8
1
vote
1 answer

requesting artist biography is missing in spotify api docs

I've looked everywhere in the Spotify API documentation as well as spending an hour or so circumventing plan A, by trying to use Rovi's API (Spotify's data provider, I think...). Rovi's music api access is a mess, btw. Anybody have success in…
sushidub
  • 35
  • 7
1
vote
1 answer

Trouble requesting Spotify access token [Bad Request]

I am trying to a request a spotify access token using the procedure defined under 'Client Credentials Flow' on the Spotify developer page, Here is my current implementation (Currently returns http 400 error): using (var client = new…
Tom Gothorp
  • 93
  • 1
  • 8
1
vote
0 answers

Stream error in the HTTP/2 framing layer - Spotify API in R script

I'm trying to get data from Spotify by API. For example get audio features for a track (https://api.spotify.com/v1/audio-features/{id}), which needs authorization. Example query is: search_query <-…
1
vote
1 answer

Login to Spotify fails when using ad-hoc distribution

I'm using the Spotify SDK in an iOS app and login is working when running in the simulator or running on a device when I've installed the app directly from Xcode. When I distribute an Ad-Hoc build of the app (using Fabric) the method call…
Christian Fox
  • 390
  • 2
  • 15
1
vote
2 answers

Spotify API Always thinks redirect_url is invalid

I've tried to authorize an app to use the Spotify API a few ways so far, but no matter what it says invalid redirect_url.
BWStearns
  • 2,567
  • 2
  • 19
  • 33
1
vote
1 answer

Spotify Playlist ios sdk swift issues

For some reason whenever I run the function get Spotify playlists, it returns that I have no playlists even though I have two. I was wondering what the issue was. Thanks, Richard SPTPlaylistList.playlists(forUser: auth?.clientID, …
1
vote
1 answer

Spotify API Access and Refresh Token

I'm trying to use Spotify's Web API in a C# Form using this .Net Wrapper/API. I want to create a Form where the user is able to enter his Username and Password and then the Program creates him a Playlist (using the Authorization Code Flow), but I'm…
ZZ_James
  • 129
  • 2
  • 12
1
vote
0 answers

Authentication Javascript with Spotify Web API

I need to authenticate in Spotify Web Api without dialog text for approved, or load in a complete page and after load a page with results. My code: function login(callback) { var CLIENT_ID = 'ID CLIENT'; var REDIRECT_URI = 'REDIRECT…