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

libspotify logout crashes when called from a nodeJS module

I am trying to write a module for nodeJS which wraps libspotify. The goal is to write a webapp that allows the remote control of a device playing music from spotify. I have decided to go along the spshell example to ensure thread safety and write a…
FrontierPsychiatrist
  • 1,343
  • 10
  • 20
2
votes
1 answer

Strange noise and abnormalities when writing audio data from libspotify into a file

Currently we're implementing Libspotify in a win 7 64 bit system. Everything seems to work fine except the playback. We get data from the callback , but even using audicity on the saved audio, is filled with abnormalities. So to research further we…
Evan
  • 157
  • 11
2
votes
1 answer

Lifetime of tracks in libspotify

When using libspotify, I respond to callbacks about playlists changing by going through the playlists and getting information about the tracks. When I get a track handle, when does that track handle become invalid? Can I assume that in a session, a…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
2
votes
1 answer

Libspotify destruction procedure

I'm developing a libspotify wrapper for C# and am in the process of writing unit tests. As such, I need to repeatedly create sessions, log in, perform actions, log out, release and clean up the session, ready for the next test. I'm unsure what the…
Tom Davies
  • 2,386
  • 3
  • 27
  • 44
2
votes
1 answer

What compiler flags does libspotify expect related to packing?

I'm using libspotify 12.1.51 on Windows. While it mostly works as expected, I'm having some difficulty with sp_offline_sync_status: typedef struct sp_offline_sync_status { int queued_tracks; sp_uint64 queued_bytes; int done_tracks; …
Weeble
  • 17,058
  • 3
  • 60
  • 75
1
vote
2 answers

I want to make a playlist from all my liked songs on spotify with spotipy library

Since my liked songs aren't public I want spotipy to get a list from all the songs and add them to my playlist, but when I try to do that with a loop it says that the uri is incorrect, I don't know if I should use another…
shreddinghost
  • 33
  • 1
  • 3
1
vote
1 answer

MaxRetryError with Spotify API

I'm using the spotipy library right now to scrape half a million track infos from the spotify API. It worked well with getting the track info and track features, but now I'm trying to get the audio analysis which has much more data per track, but…
Bepeem
  • 11
  • 3
1
vote
0 answers

Unable to do Authorization Control Flow for Other Users Spotipy

I am currently unable to do authorization control flow for any user other than myself using the Spotipy API. I'm able to prompt login but only for the account associated with the client id and client secret I'm using. In my code I'm using the…
Nithin
  • 11
  • 2
1
vote
1 answer

How to lower or higher the volume of music in Spotify SDK Swift

I'm working on a simple app that allows a user to sign in with his/her spotify account and then plays a song after user authentication. I tried following the spotify-provided tutorial, but i am really confused how to get volume and how to set low or…
Sham Dhiman
  • 1,348
  • 1
  • 21
  • 59
1
vote
1 answer

Limit spotify search results

I am using spotify api to get informations of song but I want to limit search results. Search results show 20 results as default but I want to do it 1 . Here is my code: require "SpotifyWebAPIException.php"; require "Request.php"; require…
fatihsolhan
  • 565
  • 5
  • 19
1
vote
2 answers

Spotify play full tracks workaround?

I am trying to build an application that plays Spotify songs, among other features. I am well aware that the Spotify API doesn't provide web access to full tracks on desktop. However, I'd still like to explore other workarounds or options. My web…
1
vote
2 answers

Obtain Audio Attributes to All Spotify Songs By Artist

This is a follow-up question to: Accessing Spotify API for Multiple Artists in R My goal here is to extract multiple artists from Spotify's API and then retrieve all of the songs by artist with their attributes. So this is what we have done so far…
nak5120
  • 4,089
  • 4
  • 35
  • 94
1
vote
1 answer

Is UWP / XAML C# compatible with the Spotify API?

I am learning development for Windows Universal Platform and I wanted to create a simple app capable of leveraging some Spotify data once the user logs in. I can see from the documentation that there is an SDK for Android and iOS, and a library that…
Florian Monfort
  • 153
  • 4
  • 13
1
vote
0 answers

Libspotify on Raspbian - compiling the examples

I'm trying to compile the examples provided with Libspotify on my Raspberry Pi B. Had a load of errors about alsa to start with, but managed to fix them by installing libasound2-dev. Now I'm getting the following error when I try to compile - does…
user2463758
  • 67
  • 3
  • 11
1
vote
0 answers

iOS - Spotify OAuth redirect hanging at launch screen

I am trying to log into Spotify with my Swift app and a new issue came up out of nowhere. After I do the OAuth dance, Safari redirects to my app, then: on my iPad mini (9.2.1), hangs forever on launch screen on client's iPhone 5S (9.0), crashes on…
mraaroncruz
  • 3,780
  • 2
  • 32
  • 31
1 2
3
14 15