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.
3,616
questions
-2
votes
0
answers
21
views
How to build a Spotify Music Taste Analysis app?
I want to make a simple music taste analyzer app, like a pet project, kind of like this website here. I am quite a beginner so you'll have to take it slow with me here (I appreciate that).
Spotify API ...
-1
votes
0
answers
17
views
How do you reassign a variable with a property value from a JSON post response? [duplicate]
I'm working on a project using the Spotify API, and I'm getting this error:
ERROR: BAD HTTP REQUEST
I'm assuming this is because the access_token isn't being reassigned to to the global variable, so ...
0
votes
0
answers
14
views
Getting the size of a playlist - SpotifyAPI
Currently, Spotify has a limit to how many tracks you can get from a playlist in one api request. (That limit being 100 songs). I read a similar article on here about instead calculating how many ...
0
votes
0
answers
13
views
Is it possible to stack NFC HAT and Adafruit Matrix HAT on Raspberry Pi
I currently have a Raspberry Pi with a Waveshare PN532 NFC HAT, on top of that I have also stacked an Adafruit RGB Matrix Bonnet. I have two seperate python scripts, one using the NFC HAT which allows ...
0
votes
0
answers
15
views
How to get Refresh Token for Spotify Web API?
I am working on a project using the Spotify Web JS API. I am able to successfully get the AccessToken, but I am coming across the issue of the token expiring and have found that I need to get a ...
0
votes
0
answers
24
views
How to allow multiple users access to Spotipy app that creates playlists?
I have made a Flask app that gets users to sign in with their Spotify account and then makes them a playlist. This works fine for my Spotify account. However, when using another person's Spotify ...
0
votes
1
answer
55
views
Exception thrown even though I'm catching it
I'm trying to enumerate a collection URLs to get corresponding spotify tracks using Spotipy.
When a track ID does not exist, the program throws an error, even though I'm catching the exact error ...
0
votes
0
answers
32
views
how to skip download for spotdl
I was trying to fetch a spotify playlist and track inside it. I want to find all the youtube version of these tracks. But I don't want the mp3 or anything really. I only want links to youtube or a raw ...
0
votes
0
answers
17
views
How can I get fix that my methods always recommend the same song
I am looking to recommend a song based on the spotify audio features, I do this by using an excel database and a spotify playlist. I take the audio features out of the playlist, then I calculate the ...
0
votes
1
answer
20
views
Unable to add Spotify App Remote SDK library to Android Studio Chipmunk
EDIT: Added link to instructions
https://developer.spotify.com/documentation/android/quick-start/. I am at the section "Add the App Remote SDK".
I am following the step-by-step instructions ...
0
votes
1
answer
17
views
Unable to get user image from Spotify API session
I am trying to build a clone to Spotify App using their API and I only seem to be getting name , email and username from the API. Is there a way to get profile picture details?
Appreciate the ...
0
votes
1
answer
38
views
Is a Spotify Connect Speaker able to be controlled by Spotipy?
Okay, so this is kind of a stupid question but I tried to understand it myself and I just got even more confused. I am using the Spotipy library to play music (controlled by my raspberry pi) on my ...
0
votes
0
answers
23
views
Spotipy: How to get audio feature for more than 100 tracks?
Is there any way to get audio features for more than 100 tracks as I need to get features for 1000's and put them in a dataframe. This is what I have so far:
track_features = sp.audio_features(...
-1
votes
0
answers
10
views
Spotify API: how to discard podcasts and "non-music" elements
I am using the Spotify API to compute statistics about muy music listening habtis.
However, I happen to listen to a lot of podcasts via Spotify.
Is there a way to discard anything that is not music ...
-1
votes
0
answers
74
views
How do I stop Tekore asking me to paste my redirect URL into the terminal?
I'm using Tekore to create an application to check a spotify users most played songs. After authenticating it redirects me to http://127.0.0.1:5000/?code=***** and the terminal asks for me to paste ...
0
votes
1
answer
22
views
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/...
0
votes
0
answers
24
views
Spotipy Accessing Track Data No Longer Works
I have been working on an AI project using Spotipy and the Spotify Web API. I have been getting a list of preview_url's to do some analysis on and I have successfully gotten many, but I ran into ...
0
votes
1
answer
54
views
remove duplicate data from Spotify API in Reactjs
so I am getting data Spotify API in JSON but the data I am receiving is duplicated and I want to remove the duplicate data...
so what does the following function do: it fetches the data from Spotify ...
0
votes
2
answers
36
views
How to have code toggle between on and off states depending on current state?
Apologies for the title I am not really sure exactly what the name of what I am looking for is.
I have an NFC reader that accesses Spoti py and the Spotify Web API. I wish to use the same NFC card to ...
2
votes
1
answer
39
views
How Make Request Body for Put Request in Swift
How would I turn this request body below into a put request call with Alamofire?
{
"context_uri": "spotify:album:5ht7ItJgpBH7W6vJ5BqpPr",
"offset": {
"...
0
votes
0
answers
43
views
Spotify API fetching data slowly on first time
Hi every one I have an html file which is used to fetch data from spotify which render songs of about 30 seconds and play it. The issue is on first time searching the data displays slowly but ...
0
votes
0
answers
17
views
How to access Spotify Api from background service
I have an issue that I'm not sure how to tackle. I'm creating a React Native app (initially used Expo but I'm open to bare as well) that will allow users to login intoo their Spotify accounts and then ...
0
votes
0
answers
37
views
How do you make a spotify api get request within nodejs
I'm trying to make a get request to the spotify API with my access token in the header however i keep getting error 400 as my response
const Headers = {
auth: "MyAccessToken",
};
https.get(&...
0
votes
0
answers
25
views
Radio button or checkboxes on Spotify Backstage templates
I am using backstage templates, using enum drop down comes but I want radio buttons or checkbox, what to use for that?
1
vote
0
answers
12
views
Illegal redirect_uri trying to authenticate with spotify api
var request = require('request'); // "Request" library
var client_id = 'id'; // Your client id
var client_secret = 'secret'; // Your secret
var redirect_uri = 'http://localhost:8888/...
0
votes
1
answer
27
views
How to get Spotify image from URI
I have a URI like this:
spotify:image:ab67616d0000b2737005885df706891a3c182a57
I want to know how to get the image from this URI? I'm currently using the Web API. I imagine I might need to convert ...
0
votes
0
answers
35
views
Spotify player undefined in react useState
Hi I'm trying to make an Spotify player using react, actually everything ok but I want when I go back that stop sound from playin
export default function WebPlayback(props) {
const [player,...
0
votes
0
answers
11
views
How do it get id of a series of tracks in Spotifyr?
I am trying to get ids of tracks, but couldn't find a function.
Thanks for your help.
0
votes
0
answers
21
views
Spotify Playback / Web player API
I'm trying to make an app that play audio using spotify API
window.onSpotifyWebPlaybackSDKReady = () => {
const token = 'MY_TOKEN';
const player = new Spotify.Player({
...
0
votes
2
answers
53
views
How to speed up Spotify API calls?
I am retrieving track data from spotify api for a total of 10 tracks, but it takes around 2-3 seconds to run. Is there any way to speed it up by using some python libraries like multiprocessing or ...
0
votes
0
answers
114
views
Spotify embed <iframe> toggle play and pause button
I can't seem to toggle the play button of spotify's iframe programmatically through javascript.
I am currently following this link here but no luck. Though I am very new to javascript and I was only ...
0
votes
0
answers
11
views
Downloaded audio from Spotify cdn goes silent after 10 sec
I'm trying to fetch spotify audio from spotify cdn link:
https://audio-fa.scdn.co/audio/cb1fb87a228...
but downloaded audio is not more than 10 sec
in network tab of browser saw spotify fetch music ...
0
votes
1
answer
33
views
How do I trigger a new login window for Spotify API
I am developing an app that uses the Spotify API through spotipy (Python).
I have a working setup which I have used succesfully over the past few days. However today, I switched to another machine for ...
0
votes
1
answer
26
views
Copy URL from Spotify Playlist
I'm trying to make a GUI that takes your Spotify playlist, analyzes it and guesses your age. I'm looking thru their API tutorial and the only way to get the user's playlist is to have them connect ...
0
votes
1
answer
34
views
Spotify refresh token in Python 3
I am attempting to get a refresh token and use it to request a new access token when the temporary access token expires.
Spotify's documentation states the response body should contain the following ...
2
votes
1
answer
35
views
xmonad doesnt recognize the Spotify Window
my ManageHook doesn't recognize the Spotify Window, so i can't automatically move it to the Workspace I want it to be opened in. It works fine with every other Window, except Spotify.
Heres my ...
0
votes
0
answers
31
views
Spotify playlist ID
Spotify uses a 22 character unique ID for each playlist. Does anyone know what the digits mean?
For example, I noticed that the first 7 characters of Spotify owned/curated playlists is 37i9dQZ
Then ...
0
votes
2
answers
43
views
Edit a Spotify playlist's metadata with web API in Python 3
I am trying to update metadata for an existing playlist using web API's. In the code, below using: requests.put returns [400] as a response suggesting a bad request. I have also tried requests.post ...
0
votes
0
answers
28
views
Redirect_uri issues with spotify api on flutter
I need your help. I'm trying to get a token from the spotify api.
String url = "https://accounts.spotify.com/authorize?client_id=MyClientId&response_type=code&redirect_uri=http://127.0.0....
0
votes
0
answers
9
views
Retrieving Musical Meta-Genres of Sub-Genres
I'm querying artist info using Spotify API and indexing into their genres. Some of the genres returned are rather niche and the returned values don’t contain larger genres. For example, Quiet Company ...
0
votes
0
answers
45
views
Spotify web api connection failed on ESP8266
I found a code for ESP, which should track in real time what I'm currently listening to in spotify and display information about the song currently playing. In order for this code to work, I need ...
0
votes
0
answers
19
views
Lib Spotipy no responde
i'm trying to use the lib Spotipy for Spotify.
When i execute the code below, nothing happen.
I have a springboot app who receives the token generated, when i try to check him in the console's spotify ...
0
votes
0
answers
39
views
Spotify API get track_uri or track_id from own spotify data
[enter image description here][1]I have a dataframe that included my own data I've requested from Spotify (https://www.spotify.com/de/account/privacy/) Now, I have .json data, that I've converted to ....
0
votes
1
answer
29
views
Getting a 400 Response Spotify API Python
I am trying to use requests.get with the Spotify API and I can't figure out why I keep getting a 400 response. I am working in an .ipynb file in Jupyter Lab running locally. I read these documentation ...
0
votes
0
answers
11
views
Extension or Workaround to Shuffle ALL songs/albums in Spotify
I've long been looking for an extension or some kind of way to shuffle all songs from my library in Spotify, not just the "Liked Songs." When you like an album, it adds to your library but ...
0
votes
0
answers
33
views
Spotify Authentication
This is my first time working with an API needing auth. I've went through all the different nuget packages available. I would like to build a console app where I can parse the JSON results like I do ...
0
votes
0
answers
32
views
How to manage pagination and filter by popularity with Spotify API in Nodejs?
I am working with React.js and Node.js and making the calls to the Spotify API(with axios) from the back. In the front I pass an artist name, and the back responses the Albums of the first artists it ...
1
vote
1
answer
50
views
list index out of range while trying to search for uri in search results from spotipy
I made this program to convert a google sheets to a spotify playlist in python using spotipy.
But i have this error when trying to search for the uri in the search results (line 55), when this happens ...
0
votes
1
answer
35
views
Spotify OAuth 2.0 callback python
I'm following the spotify documentation to authenticate through the WEB API .... with the code below I can get the access authorization
import requests
endpoint_auth = 'https://accounts.spotify.com/...
-1
votes
1
answer
128
views
Scrape Spotify using Python
Im getting the AttributeError: 'NoneType' object has no attribute 'find' error. Before posting here with some research, possible problem could be that Cloudflare is blocking my access to Spotify. ...