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
0 answers

Refreshing Tokens Spotify-Web-Api-JS

How do I indefinitely refresh the access token using JMPerez's web api. I use Spotify's Web API tutorial to get the authorization code flow login. But that login only happens once so I get the access token and refresh token once after logging in.…
Surya
  • 576
  • 1
  • 4
  • 16
2
votes
0 answers

Spotify & Youtube API integration: Liked Youtube music videos in Spotify

An overview of the project. API Used Using Spotify API to Create a Playlist and add music to the playlist Using Youtube Data API to retrieve liked videos OAuth 2.0 for verification Goal: The liked youtube videos of my youtube account should…
Sheeban
  • 21
  • 7
2
votes
1 answer

Song plays in only premium Spotify account

I am developing a iPhone application with integrating Spotify SDK. I am facing some issue regarding premium account and simple account. I am trying to play song with Spotify simple account without any premium account, but it always showing an…
Sham Dhiman
  • 1,348
  • 1
  • 21
  • 59
2
votes
1 answer

What data can I save from the spotify API?

I'm building a website and I'm using the Spotify API as a music library. I would like to add more filters and order options to search traks than the api allows me to so I was wondering what track/song data can I save to my DB from the API, like…
2
votes
2 answers

Accessing Spotify API for Multiple Artists in R

I have created a Client ID and Secret Key in Spotify's developer app section. I am referencing this document and want to extend this by choosing multiple artists. https://www.r-bloggers.com/the-eurovision-2016-song-contest-in-an-r-shiny-app/ In…
nak5120
  • 4,089
  • 4
  • 35
  • 94
2
votes
1 answer

Spotify Web API to control playback on connect devices

Is there any way to use an API to control playback on my registered spotify connect devices? I'm not trying to create or add a new connect devices but control playback to them. Is there any official or reverse engineering discussion on how to do…
ConfusedNoob
  • 9,826
  • 14
  • 64
  • 85
2
votes
1 answer

How do I make sure my static library has the right architectures for CocoaLibSpotify?

I get this error when I try to build a project using CocoaLibSpotify. ld: warning: directory not found for option '-FLibrary/libspotify-12.1.64-iOS-universal' ld: warning: ignoring file…
Michael
  • 2,973
  • 1
  • 27
  • 67
2
votes
1 answer

Libspotify or new SDK for Android application?

Hi Android Spotify developers. Could you please advise which API to use (LibSpotify beta or New Android SDK beta + Web API) to develop application with Spotify functionality for Android? As I see from API description LibSpotify provides more…
eal
  • 23
  • 2
2
votes
2 answers

Spotify API/ADK For Android

Is there any Spotify API/SDK available for Android. I have checked on their web site but got the Zip file which contain c code.After searching more on this topic I come to know that to access the c code I have to go for JNI way which I want to…
2
votes
1 answer

Libspotify - what user data is available?

What data is available via libspotify services in regards to user related data such as; songs played, starred tracks, following artists/genres, playlists etc for a specific user? Also - is this data only available for an authenticated user or public…
sambo
  • 221
  • 1
  • 6
2
votes
1 answer

libspotify:how to play a track from a track uri?

The question sounds very simple but I couldn't find a way to check if a track uri is correct. For example, the normal procedure to play a track by a given valid track uri spotify:track:5Z7ygHQo02SUrFmcgpwsKW is: 1) get sp_link* by…
2
votes
1 answer

C#: marshall strings to utf8 char*

Background I am trying to write a high level libspotify wrapper based on a modified libspotify.net (http://libspotifydotnet.codeplex.com/). As libspotify.net is just a thin (and completely bugged ... ) pinvoke layer, it does not handle the utf8…
Lukas Rieger
  • 676
  • 10
  • 31
2
votes
1 answer

error when running spotify python script

Hi I am trying to run a script for spotify that is python called starrify on my mac https://github.com/swinton/starrify I am getting this error when I run it error "Traceback (most recent call last): File…
2
votes
1 answer

Playlist search with libspotify : missing results

We are trying to search for playlists via libspotify. We are using the search functionality to search by keyword with the following function…
aurels
  • 801
  • 7
  • 15
2
votes
0 answers

Extra metadata unavailable in libspotify (ISRC, UPC)

The libspotify documentation for the Track subsystem makes no mention of metadata. You can see that extra metadata (such as ISRC) is present by using the XML Metadata…
rjp
  • 1,942
  • 12
  • 14
1
2
3
14 15