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
0
votes
1 answer

Getting libspotify on a not-supported platform

I have a Synology NAS that I use a.o. to run a Logitech Media Server. Synology provides a standard package to run LMS. LMS has a Spotify plugin that requires a helper deamon and, of course, libspotify. Problem: The NAS is a DS413 with PPC…
Sciurius
  • 53
  • 5
0
votes
1 answer

Using Spotify API to know how many times an artist is played

Can you use the Spotify API to know how many times an artist is played each hour or day?
0
votes
1 answer

Proper implementation of libspotify get_audio_buffer_stats callback

Can anyone help decipher the correct implementation of the libspotify get_audio_buffer_stats callback. Specifically, we are supposed to populate a sp_audio_buffer_stats buffer, consisting of samples and stutter? According to the Docs: int samples…
mox1
  • 614
  • 3
  • 10
0
votes
1 answer

Can I use libspotify to play audio without using a low level audio API?

Is it possible to use libspotify to obtain the URI of a track and play it using a higher level Media Player? For instance, I'm interested in doing this with a QMediaPlayer in Qt. I ask this because one of Spotify's sample applications uses lower…
Joey Carson
  • 2,973
  • 7
  • 36
  • 60
0
votes
1 answer

Is it possible to get a list of followed artists using libspotify?

I have looked at the libspotify documentation and have not been able to find a function that allows me to get a list of handles to artists that the current user is following. Is there something I have missed or is it just not part of the public API…
Troy Patrick
  • 190
  • 2
  • 12
0
votes
1 answer

Are spotify apps allowed to stream unlimited music in the same way as SoundCloud apps?

I have a website(server based application) that has an integration with SoundCloud to allow users to search for and stream music directly from our site. Using libspotify, is it legal to allow our users to stream music in the same way from Spotify,…
0
votes
2 answers

Can I use the Spotify API to embed a high frequency signal into a playlist

I want to use the spotify api to embed music into my service, however I'd like to add a high frequency signal (c 20khz) to the songs played. the signal would repeat and would not be audible to listeners. I've read the Spotify API documentation,…
mark
  • 1,769
  • 3
  • 19
  • 38
0
votes
1 answer

Searching spotify user's music library for particular genre

I am developing third party app on spotify platform. In that, user have to select spotify user's music library playlist (top 100 songs by Spotify user). So, I am trying to search spotify library for particular genre. I am using SPSearch with Query…
Rahul Mane
  • 1,005
  • 18
  • 33
0
votes
1 answer

How to play next track from array

I'm building an app and using spotify. I managed to start and pause a song....But i can't get my head around the playnext button and playprevious button. can some please tell me how to handle these events with the libspotify playbackmanager. I have…
0
votes
1 answer

Libspotify simple hello world

I recently started using libspotify and were writing a simple hello world, based on the sample code of jukebox.h. My code currently looks like this: #include #include "libspotify/api.h" #include "Key.h" #include "Password.h" #include…
das_j
  • 4,444
  • 5
  • 31
  • 47
0
votes
1 answer

Trying to call a second table view with the items of de selected playlist in the first view

Maybe there's someone outthere who can help me fiure out my problem. I cant seem to display the playlistItems using cocoalibspotify. I have set up my playlistview and the first ableviewcontroller shows the playlist but when i try to call the items…
0
votes
1 answer

Libspotify claiming playlist container is loaded before it's ready

I'm making a .NET Spotify client in C#, using LibspotifyDotNet to wrap around the libspotify library, using Libspotify version 12.1.51. I'm getting some strange behaviour when loading the session playlistcontainer for the first time (i.e with no…
Craig Brett
  • 2,295
  • 1
  • 22
  • 27
0
votes
1 answer

Am I supposed to publish my Spotify API key in an open source app?

I have created a simple app, script almost, that backs up playlist contents (just song titles/etc., not the music) off Spotify. It uses libspotify. I want to publish the source; I wonder what the approach is for API keys in this case? Without the…
Sergey
  • 636
  • 6
  • 12
0
votes
1 answer

How to use libspotify to play radio

When I start radio of spotify,there are some general stations like classical,country etc.I want to get the playlists of these stations with libspotify,so I can play music as categorys in my own application.
0
votes
1 answer

CocoaLibSpotify Create playlists ending

I'm creating an IOS App based on cocoaLibSpotify. In some point, I'm creating a Spotify playlist from an array of songs. I have previously obtained all the Spotify URIs and then I create the playlist and add all the tracks one by one. The code below…
Pablo Blanco
  • 69
  • 10