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

Low quality iTunes API preview url

I'm working with iTunes API to offer preview playbacks in my app. So I have links like this: http://a1780.phobos.apple.com/us/r1000/039/Music3/v4/b8/b3/7a/b8b37a93-2154-34da-74fc-8e8a316979a8/mzaf_7991652075174454658.plus.aac.p.m4a It works almost…
Diego Haz
  • 952
  • 1
  • 6
  • 24
1
vote
1 answer

Spotify API deprecated functions no alternative

Spotify has deprecated some of their functions in the iOS SDK, but has not provided an alternative. I'm having trouble working with one of these functions in Swift. Is there any documentation online that discusses alternatives? Not sure what it…
mattgabor
  • 2,064
  • 6
  • 25
  • 38
1
vote
0 answers

libspotify: Access violation reading location 0x00000000. (Windows)

So, I try to get a specific playlist via the URI like this: sp_link *link; sp_playlist *playlist; sp_playlist_callbacks playlist_callbacks = { 0 }; link =…
qwertz
  • 14,614
  • 10
  • 34
  • 46
1
vote
1 answer

Intercept Spotify friend-feed?

I've got kind of an open ended question here. I'm wondering if there's a way to intercept the Spotify friend-feed data that comes into the desktop app. What I'd like to do is write a program that would let me autoplay whatever song is at the top of…
1
vote
1 answer

Status of libspotify replacement library for desktop/other platforms

Roughly 6 months ago I had a chat on IRC with some Spotify engineers about a pending replacement library for libspotify, which I understood is deprecated and no longer developed. Essentially it was said that work was being done on a small…
1
vote
1 answer

Streaming audio using libspotifydotnet (Spotify - libspotify)

After checking out this, this, and this post, I understand that I have to stream audio using something like NAudio and also that playing a song is done by: libspotify.sp_session_player_load(_sessionPtr,…
Luis Lavieri
  • 4,064
  • 6
  • 39
  • 69
1
vote
1 answer

Where can I get or generate appkey.c for Spotify?

I am trying to run the examples for CocoaLibSpotify, but I need the file appkey.c with the API credentials. Where can I get this, or how do I generate it?
Elliot Chance
  • 5,526
  • 10
  • 49
  • 80
1
vote
0 answers

libspotify/ pyspotify segmentation fault randomly when creating session

So everything works correctly, and I haven't changed any of my code. At all. However, sometimes randomly I'll run the SAME EXACT PROGRAM, and pyspotify will not create a session for me. I tested this in the interpreter, removed tmp data that was…
drshrey
  • 11
  • 1
  • 4
1
vote
1 answer

libspotify C sending zeros at the end of track

I'm using libspotify SDK, C library for win32. I think to have a right setup, every session callback is registered. I don't understand why i can't receive the call for end_of_track, while music_delivery continues to be called with zero padding 22050…
MisterXYX83
  • 87
  • 1
  • 10
1
vote
0 answers

Xamarin and libspotify - connection getting aborted (libspotify error 113)

I am writing a music app for android with xamarin that connects to spotify. My problem is this - I have updated a copy of the libspotify-sharp project to work with the latest libspotify which works fine when debugging but if I try to run the app…
Mick
  • 11
  • 2
1
vote
1 answer

sp_session_create crashes in libspotify.dll 12.1.51 for win32 x86

For some users, the libspotify crashes when calling sp_session_create. All config parameters are set except the proxy settings which are NULL. The crash occurs at libspotify+0xdc7c0 I have minidumps available.
JBL
  • 129
  • 8
1
vote
1 answer

Visualization of streamed music from Spotify

I'm streaming music from Spotify with C# wrapper ohLibSpotify and play it with NAudio. Now I'm trying to create a spectrum visualization for the data i receive. When i get data from libspotify, following callback gets called: public void…
freakimkaefig
  • 409
  • 5
  • 19
1
vote
1 answer

Get Spotify Track artwork on UITableView

I am trying to get artworks or album covers using spotify API. I am using: NSString *url = @"http://ws.spotify.com/search/1/track.json"; NSMutableDictionary *params = [[NSMutableDictionary alloc] initWithObjectsAndKeys: …
SleepNot
  • 2,982
  • 10
  • 43
  • 72
1
vote
0 answers

Using SPSearch to retrieve playlists/artists/etc?

I am attempting to accessing related artists/playlists, etc using the SPSearch class as follows, but upon examining the logs it appears that the search never finishes loading: self.search = [SPSearch searchWithSearchQuery:self.artist…
Brent Hronik
  • 2,357
  • 1
  • 27
  • 43
1
vote
1 answer

CocoaLibSpotify - Library not loaded

I've created a simple mac app that uses the Cocoa wrapper for libspotify. When I export the project as an Application and try to run it, it crashes immediately. Crash report: Application Specific Information: dyld: launch, loading dependent…
Backslash
  • 343
  • 5
  • 12