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

React App with Spotify API PUT Request to Play/Pause Current Song

Helo, I'm trying to code a React app which gets current song from Spotify and plays/pauses the song. However I can't pause or play the current song. const pauseURL = 'https://api.spotify.com/v1/me/player/pause' const [token, setToken] =…
0
votes
1 answer

I have an Error 429 with spotify api on single request

I am making a website that retrieves and displays my playlists, everything was working fine yesterday, this morning while I did not touch the code I have an error 429 every time I want to retrieve data on the api. My code : export const…
0
votes
1 answer

How to get Spotify music list without Authentication

I want to know about, is it possible to Fetch a Spotify music list without an Access token or Aothuentication in mobile flutter SDK or web API. because I want to only Fetch the Spotify music list in my flutter app. Thanks in advance.
Alpit Panchal
  • 709
  • 1
  • 7
  • 25
0
votes
1 answer

Accesing my account on spotify and playing liked songs python

I want to create a program that, if called, will access my liked songs playlist on Spotify and play either a random song or a song that has been called. I know that I should use the Spotify library, however, I don't really know how to achieve my…
Elloder
  • 29
  • 5
0
votes
1 answer

Util.prompt_for_user_token() method isn't running

I'm attempting to run a util.prompt_for_user_token() method but the method is taking forever to run. I'm running it from the gcollab jupyter notebook. I am using the code found in the spotipy…
justin Yang
  • 57
  • 2
  • 7
0
votes
0 answers

How can I play a playlist using Spotify API in Python?

I have been trying to play a spotify playlist using spotipy using the authorization code flow and I keep getting that error : HTTP Error for PUT to https://api.spotify.com/v1/me/player/play returned 403 due to Player command failed: Premium…
RKMake
  • 37
  • 7
0
votes
1 answer

Create a new spotify playlist - script is not working

I'm new in python and want to do my first project by inserting a Youtube music video URL and creating a playlist in Spotify that contains the song in the URL. For some reason, my script is not working. I would like to know why. Once I run the…
Moran
  • 1
0
votes
0 answers

How to manipulate (slow down/change pitch) audio from Spotofy?

From what I've found online so far, it seems as though the Spotify SDK does not allow developers to manipulate audio (by slowing down songs/changing their pitch); all it allows you to do is simply play the audio at its original pitch/speed. What I'm…
spitchay
  • 89
  • 1
  • 10
0
votes
1 answer

Spotify user albums mismatch

While fetching User Library albums at this endopoint: https://api.spotify.com/v1/me/albums See api reference here the api call returns a small part of album list. But in Spotify App or Spotify Desktop App, it shows a different number of…
0
votes
1 answer

Error: Failed to resolve: spotify-android-auth:1.0.0: ; Has anyone had this error and do you know how to correct it?

Really struggling to figure out exactly what is going on here. Just trying to get the spoitfy api to work in android studio https://i.stack.imgur.com/I8Ynm.jpg Any insight is greatly appreciated. Thanks
0
votes
1 answer

For-loop to get spotify tracks by album in R

I am trying to write a for-loop to call multiple albums and retrieve the track id's and track names per album. The original code works for one album: spotifyKey <- "###########################" spotifySecret <-…
nak5120
  • 4,089
  • 4
  • 35
  • 94
0
votes
1 answer

In Google Scripts: UrlFetchApp.fetch(''https://accounts.spotify.com/api/token'') returns code 405

In Google scripts, I am attempting to call the client_credentials OAuth flow from spotify, while it should return the access token, the request fails with code 405. data = { 'grant_type':'client_credentials', 'client_id' : 'CLIENT_ID', …
0
votes
2 answers

How to develop Spotify Desktop Applications, now Libspotify is discontinued

have done my due diligence, and not found any other posts that answer this question, but as usual, if you know a similar question, point me that way! I noticed a long time back that Libspotify has been…
The Naughty Otter
  • 419
  • 1
  • 6
  • 15
0
votes
0 answers

Grab output of command php - shell_exec

Im using spotify plugin called spop located: https://github.com/Schnouki/spop Now im tying to make a search system that passes commands and returns the string and then i can parse it and make it readable etc. If i do the below it works, returns what…
William
  • 1,009
  • 15
  • 41
0
votes
1 answer

Trying to get song metadata with Spotify Android SDK results in illegal argument exception

I'm trying to get song metadata with the Spotify Android SDK without buffering the song. Here's my code: public String getTitleFromURI(String uri) { //uri = "spotify:track:6ORqU0bHbVCRjXm9AjyHyZ" MediaMetadataRetriever retriever = new…
Aaron
  • 21
  • 4