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.

3397 questions
1
vote
1 answer

libspotify API: when does password blob expire?

As per API document, credentials_blob_updated callback is called when storable credentials have been updated. But in "spshell" example, blob for storage is kept refreshing from time to time even if there is no credential change. Is it normal?…
mile
  • 362
  • 1
  • 5
  • 15
1
vote
1 answer

How to get currently playing track in Spotify Mac from Cocoa

I'm developing a lyric application for Mac and I want to add Spotify support to my app. I just need to retrieve currently playing track on spotify client for Mac and get notified if playing state has changed. is there any API to use in my app for…
Shahin
  • 814
  • 6
  • 21
1
vote
1 answer

How to add additional columns to a Spotify playlist

I am trying to build a spotify app that includes a playlist. I need to provide additional columns to the playlist view. I cannot inject html into the view because the model overwrites the edits shortly after. Is there some way to add my own data to…
1
vote
1 answer

using Spotify's webAPI in an iOS app

So I'm in the process of developing an iOS app and I wanted to use the Spotify web API for searching and looking up songs in Spotify. However, I can't really tell if that is how to do it or if there would be better ways to do it and wanted to…
user1480248
  • 95
  • 1
  • 7
1
vote
1 answer

Spotify app's oAuth callback returns "Not allowed to load local resource"

I'm currently developing a spotify app which requires oAuth to sign into GetGlue. It successfully loads the authentication dialog box with the GetGlue service. However, when making its oauth callback, it returns the following JavaScript error: "Not…
1
vote
1 answer

Share a specific view inside an app

How can I share a specific view inside an app by the standard share popover like this? models.application.showSharePopup(document.getElementById("share_playlist"), "spotify:app:whatsnew:home"); This give the error Uncaught Error: The provided URI…
user507410
  • 492
  • 4
  • 12
1
vote
1 answer

Detect commercial in Spotify App API

Is there any way to detect if a commercial is playing? I'm using player.observe(models.EVENT.CHANGE, function (event) to detect when a new song is played. The problem is that this event occurs when a commercial is played too. (Hard to test if you…
Marcus Hansson
  • 135
  • 1
  • 8
1
vote
1 answer

Subscribe to Spotify events

Does anyone know of a way to subscribe to events in the Spotify application? To subscribe to iTunes events, you would just add an observer to the notification center like this: [[NSDistributedNotificationCenter defaultCenter] addObserver:self…
simonbs
  • 7,543
  • 12
  • 64
  • 112
1
vote
2 answers

Spotify integration with Facebook OpenGraph

I'm trying to reproduce some cool things of the Spotify opengraph integration but there is one thing I understand how they do : when you go on your spotify app profile (mine : https://www.facebook.com/antonio.mendespinto/music) you can see that the…
1
vote
1 answer

libspotify API: is there any way to store session after login?

Is there any way to retrieve session id so other programs could share it for the login? Or is it allowed to share session id among multiple programs for a single user? Thanks.
mile
  • 362
  • 1
  • 5
  • 15
1
vote
1 answer

libspotify API: what is the relationship among the availability of track, album, playlist, image etc.?

Track data needs to be ready in order to play the track. Does album have to be loaded in order to retrieve the album cover art image? Is it same for artist portrait? I'm trying to retrieve album cover art image with album URI available. My plan was…
mile
  • 362
  • 1
  • 5
  • 15
1
vote
0 answers

Add as Playlist - error looping through tracks

I'm trying to loop through a album which have x tracks, then add them to the playlist. But I'm getting the follow error message in the console: Uncaught Error: link not allowed Code: var album =…
1
vote
1 answer

libspotify API: how to retrieve cover art using libspotify API?

The post Retrieve cover artwork using Spotify API says there is no way to retrieve the cover artwork using Spotify's Web API, but I wonder if it's possible to retrieve the cover artwork URI using libspotify API. I noticed there are few…
mile
  • 362
  • 1
  • 5
  • 15
1
vote
3 answers

Can't use libspotify 12 in android app

I'm trying to load libspotify in my android app using NDK. I'm using the library libspotify++ and jlibspotify. everything seems to be loaded but it crashes when libspotify is trying to load the library "libspotify.so.12" I cannot use symbolic links…
Wärting
  • 899
  • 10
  • 15
1
vote
1 answer

Adding a field to a Spotify list

I'm trying to add a field to the List provided by the Spotify API. Here is my code to create the list: var playList_view = new views.List(playlist_test, function(track) { return new views.Track(track, views.Track.FIELD.NAME | …
1 2 3
99
100