Questions tagged [libspotify]

The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service.

Libspotify
The libspotify C API package allows third-party developers to write applications that utilize the Spotify music streaming service. Hopefully, this will enable and inspire you to build some really cool stuff. We’re looking forward to seeing what you can come up with.

Documentation
The API documentation is available online. The libspotify distribution also contains the documentation, as well as a few code examples. There is also an FAQ available.

Application keys
Please login with your Spotify Premium account to apply for an application key.

Download
Libspotify is available for Windows, Mac OS X (x86 / x86_64), iOS, and Linux (x86 / x86_64 / ARM).

Download the file and unpack it with your favourite extractor. On the command line for most Linux distributions, you can use tar xzf libspotify-*.tar.gz to extract it. You will now have a directory called something starting with libspotify-. Inside, you should find a README worth at least skimming through.

User experience guidelines
The following guidelines have been carefully developed to provide our users with a familiar and friendly experience across all platforms, and to maintain the Spotify look & feel that we all know and love. Please ensure that your application follows them closely.

Branding
See the Terms of Use on how to use these logotypes.

Branding in graphical user interfaces

Terms of Use
We need to protect users, content providers, the Spotify trade marks and our software and service while at the same time enabling you to create applications. We therefore require you to comply with some basic rules. You should also note our trade mark guidelines.

Furthermore we want to let you know that the use of our APIs under these terms is for non-commercial use only: they are not intended to allow you to sell any software or devices based on these APIs. If you would like to make use of Spotify in a commercial way, then please contact our Partner team before you engage in any work.

Region-specific Terms of Use can be found here:

Third party licenses
Several fantastic pieces of free and open-source software have really helped get Spotify to where it is today. A few require that we include their license agreements within our product. Consider it done. As we enjoy giving credit where it's due, we included the entire list below. This means you can not only see which software we've been using, but the terms of the licenses too. A big thanks from all of us at Spotify to the smart people behind the fantastic programs listed. Rock on!

218 questions
1
vote
1 answer

CocoaLibSpotify - SPSearch Returns 0 Artists via KVO for @"a"

SPSearch was working as expected, initialized as: SPSearch* new_search = [[SPSearch alloc] initWithSearchQuery: search_string pageSize: 50 …
Asher
  • 1,195
  • 1
  • 11
  • 19
1
vote
1 answer

Array not showing in Table View

Can anyone tell me why my code isn't showing any results in my table view. Here is my code. I already tried to change the @"@" into indexPath.row without any luck. I 'm looking for any answer into the right direction. I'm fairly new to xcode and…
1
vote
0 answers

sp_playlist_create returns NULL second time

I am using sp_playlist *sp_playlist_create(sp_session *sess, sp_link *link) to load playlists from a *sp_link that I create using sp_link *sp_link_create_from_string(char *uri). I am doing this twice, using equal uris, and the first time it works…
user1147646
  • 101
  • 8
1
vote
0 answers

Occasionally sp_session_process_events() blocked until process is terminated

While listening to music and browsing Spotify we are occasionally running into this issue where sp_session_process_events() never returns. Since we are putting all libspotify calls on the same thread, our app is locked up indefinitely. All of the…
Evan
  • 157
  • 11
1
vote
1 answer

Is libspotify available as a plugin for any mobile cross-platform SDK?

Is libspotify available as a plugin for any cross-platform SDK? I'm talking about a native plugin for mobile SDKs like Phonegap, Gideros Mobile, Corona, Intel XDK, Marmalade or similar.
Per Quested Aronsson
  • 11,380
  • 8
  • 54
  • 76
1
vote
2 answers

Detecting Spotify Song Plays

I'm working on a mobile application that detects song plays from various media players, both on iPhone and Android. We currently support a number of applications in both platforms. Our application works in a similar way to how Last.FM detects and…
1
vote
0 answers

libspotify sp_search_type

When executing sp_search_create, there is a parameter for sp_search_type which is defined typedef enum sp_search_type { SP_SEARCH_STANDARD = 0, SP_SEARCH_SUGGEST = 1, } sp_search_type; I don't see any change in the result. Is there a…
Evan
  • 157
  • 11
1
vote
1 answer

multiple session spotify

Our app runs on a multi audio zoned PC that distributes music to various parts of ones home etc. Does anyone know if Libspotify supports multiple sessions? It appears to be structured to do so , but I've had no luck getting it to work. If so any…
Evan
  • 157
  • 11
1
vote
1 answer

Loading Spotify album metadatas with PySpotify

I can't figure how to load album metadatas with pyspotify. Whatever I've tried, albumbrowser is still loading. Here is my class : logged_in is called by a callback when we are successfully logged in using session.connect() in main function. class…
Poulpatine
  • 95
  • 1
  • 1
  • 6
1
vote
1 answer

libspotify: sometimes created playlists get no names

I am using the latest version of the libspotify API (12.1.51). And I am coding using C# and libspotify.NET (a simple interop wrapper library for libspotify). I have built a program that creates playlists using the libspotify API. I am using the…
1
vote
1 answer

Libspotfiy Playlist Folder handling

I'd like to get a few things cleared up about playlist folder handling in Libspotify. A few things seem a bit inconsistent about it (I get the impression folder handling has been hacked in as a bit of an afterthought?) When I cycle through all the…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
1
vote
1 answer

libspotify does not connect

I'm trying to get familiar with libspotify and I must say the documentation on libspotify is seriously lacking. I've hacked together a small app from the examples but I can't get it to work. I'm building a C Console Application in Visual Studio…
Demigod
  • 11
  • 3
1
vote
1 answer

libspotify: What can I and can't I do with image IDs?

Various libspotify API functions deal with image IDs: These all return an image ID as a const byte*: sp_album_cover sp_artist_portrait sp_artistbrowse_portrait sp_image_image_id sp_image_create takes an image ID parameter as const byte[20], while…
Weeble
  • 17,058
  • 3
  • 60
  • 75
0
votes
1 answer

Why user and account object is undefined in Next Auth callback

I was trying to console log session.user.accessToken and clientsecret which turned out to be undefined, so i headed towards NextAuth.js to see if there's problem, it seems account and user is undefined in jwt callback function while…
0
votes
0 answers

Spotify API: Error 401, "Permissions missing"

I am trying to make use of spotify api to play songs in my webapp. I have implemented the authorization using next-auth with spotify and with the session I have pulled all my playlists to show in a list. However, when I try to play a song in that…