Questions tagged [spotify]

Spotify is a streaming music service for multiple platforms. This tag covers Spotify's various developer libraries and public APIs, including Web API, mobile SDKs, and Web Playback SDK.

The Spotify Platform allows developers to integrate Spotify in their applications using Spotify's Web API, iOS SDK, Android SDK, and Web Playback SDK. Read more about these and other tools on the Spotify for Developers website.

What Questions should I ask?

Questions using this tag should be about how to use one of these platforms. You may find that in some cases, a question that arises whilst developing for these platforms is not Spotify specific; e.g. a common JavaScript question whilst creating a Spotify Web API Application, or an Android question whilst using the Android SDK. In these cases, you should tag your question with the or tag instead.

Platforms

Web API

The Web API provides developers with an interface to query Spotify's extensive music catalogue through a REST interface, using OAuth 2.0 for authentication.

Useful Resources

Web Playback SDK

The Spotify Web Playback SDK makes it possible to add audio streaming to your website. You can use it in conjunction with the Spotify Web API to build rich applications on top of the Spotify platform.

Useful Resources

iOS SDK

The Spotify iOS SDK makes it easy to add audio streaming, playlist manipulation, metadata lookup and other Spotify features to iOS apps.

Useful Resources

Android SDK

Similarly to the iOS SDK, the Spotify Android SDK enables developers to do things like music playback, playlist manipulation, and metadata lookup.

Useful Resources

libspotify [DEPRECATED]

This C library allows third-party developers to write applications that utilize the Spotify music streaming service. Please note that this library is considered deprecated.

3971 questions
1
vote
1 answer

(Spotify Web API) Create New Playlist - POST request returning 'Error 403 (Forbidden)'

Here is the link to the Web API notes on how to create a new playlist. https://developer.spotify.com/web-api/create-playlist/ As far as I understand, the POST requests the url https://api.spotify.com/v1/users/{user_id}/playlists. This is requested…
Alex Dawson
  • 13
  • 1
  • 3
1
vote
1 answer

spotify API query not producing Album metadata

I'm trying to build a app that gets info from the Spotify API but since I don't have the Spotify ids I want to grab the ids using search queries. I wanted to just try it so I tested it with an album called yellow and a band called SCANDAL. However…
1
vote
0 answers

Spotify SDK iOS: While Playing Music in background application will be crashed after few second

I am playing Spotify music in background mode. It works fine. But after few seconds application will be crashed. I had tried to found solution but still i could not found any Proper Solution. Please help me.
Parthpatel1105
  • 541
  • 6
  • 17
1
vote
1 answer

Get current song name, for a local application

I want to get the current song name that is being played by spotify desktop. Is there any api for doing this? Optimally I would like something like: string song = spotify.GetSong(); in c++ or c#. I can only seem to find the old libspotify api…
Cjen1
  • 1,826
  • 3
  • 17
  • 47
1
vote
1 answer

How does Spotify mask the audio URL and also prevent download of song mp3

I'm looking to mask the audio playing on my site so people can't download the audio files and also don't know what the url for the actual file (mp3) is
credizian
  • 469
  • 5
  • 20
1
vote
0 answers

Spotify denying access for valid Id

I am trying to access Spotify playlists using the spotipy and pbl libraries. See http://pbl.readthedocs.io/en/latest/ for the latter. I have this: import sys from pbl import * import spotipy import spotipy.util as util def fetch(): #pbl methods…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
0 answers

Want to get authorization to multiple accounts at once

Okay so I just got started setting up my spotify developer account and getting my application registered and am now going through the basics of the Spotify Web API. Now I have a specific thing I want to be able to do with the application (if it's…
kbman99
  • 21
  • 2
1
vote
1 answer

Memory (Ram) overflow Swift

Hi all i'm trying to make a login view like spotify. https://github.com/chenjunpu/SpotifyLoginVideo i use this example. My problem is that when i try to go to login page the ram that it use is the same with the video view (plus 30mb) I tried this…
mike vorisis
  • 2,786
  • 6
  • 40
  • 74
1
vote
2 answers

Get userId from Spotify iOS SDK

Is there a way to get the userId using the Spotify iOS SDK rather than using the web api?
Jules
  • 660
  • 8
  • 29
1
vote
0 answers

Alternative of deprecated methods/constants in Spotify IOS SDK beta 16

I am using Spotify IOS SDK beta 6. I have to upgrade my SDK to beta 16. As I observed that many methods/constants of beta 6 version are mark deprecated version beta 16. SDK version beta 16 only marks them deprecated but not suggests any alternative…
1
vote
1 answer

Multi parameter curl request Python, Spotify API

I am trying to execute a curl request for the Spotify API. From what I have seen you can use the requests library yet I am not sure how to do it accounting for the Authorization parameter. Below is the curl request-- Any help is much…
puhtiprince
  • 535
  • 1
  • 5
  • 8
1
vote
1 answer

Finding if a song exists by the name of a given input text

I am working on an application which would allow users to enter some text as song name and another input for the artist name, and then will check whether a song exists that matches both the input parameters. I'm currently using Spotify's API for the…
Manas Chaturvedi
  • 5,210
  • 18
  • 52
  • 104
1
vote
1 answer

Error Authenticating Spotify - Bad Request

I'm having a hard time trying to authenticate my spotify app on localhost. I have my redirect_uri set as localhost:8888/callback (have also tried it with http://) at my developer account, but I get this error page when terminal prompts me to enter…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
1 answer

Embedding a Spotify Play Button within Carto.db map infowindow

been trying to find a solve for embedding a Spotify play button within an infowindow within Carto.db (or any other open source location intelligence platform). The closest I've seen is this user's solve…
1
vote
1 answer

Invalid authorization code when trying to get access token in spotipy

I am trying to authenticate my python app to a specific user using spotipy. I have done this before with a few other users with no problems. This user however each time I try I keep getting '{"error":"invalid_grant","error_description":"Invalid…
Jared Wilkin
  • 231
  • 3
  • 12