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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Spotify access token only works once for added users

I have an Android app that uses Spotify API to get the top tracks of the users. App works fine with my account which is also used to create the app on Spotify dashboard. I have added another user to ...
jane's user avatar
  • 102
0 votes
0 answers
18 views

Is it possible to use the Spotify API in a mobile app without having the Spotify app installed?

From my understanding the API is only controlling the playback of the main Spotify application on the device. Is it possible to use the API in an iOS or Android app in a complete new session? The app ...
dlrrh's user avatar
  • 1
-1 votes
0 answers
6 views

Spotify authentication via API for mobile WebApp, allowing users to skip login if already logged in on the Spotify app?

I’m trying to reconfigure the Spotify Authentication process on a WebApp I have designed to be used on mobile so that the user does not need to login to Spotify if they are already logged in on the ...
cse's user avatar
  • 1
0 votes
0 answers
22 views

Token refresh mechanism javascript

My application relies completely on API calls to Spotify. Since it is client-side only it would not be safe for me to use the refresh token logic that Spotify suggests and therefore I am trying to ...
sofia's user avatar
  • 1
0 votes
1 answer
13 views

SpotDL on Django

I am trying to create a Django project on SpotDL. Here's my files: --urls.py urlpatterns = [ path('admins/', admin.site.urls), path('spdl/', views.spdl), ] --views.py def spdl(request): import spotdl ...
Vijay Prajapati's user avatar
-2 votes
1 answer
27 views

fetch(...) not stopping to fetch with spotify api [closed]

This function - to get access to what the current listener is listening to via the spotify API is contantly fetching: const getCurrentSong = () => { fetch('/spotify/current-song').then((...
ss123's user avatar
  • 3
1 vote
0 answers
22 views

Problem with authorizing my requests to Spotify API via postman

I'm building a Spring Boot service using Spotify Web API and wanted to test my controller methods. Using a browser, I could check the GET request and everything worked fine - I received the expected ...
Mikołaj Kawczyński's user avatar
0 votes
0 answers
39 views

Spotify API - Cannot get recently played songs

I want to get my recently played songs using Python. I created an APP on the Spotify Developers website. I have the Client ID and the Client Secret. I managed to use these to use the search function ...
Physics_Student's user avatar
0 votes
0 answers
27 views

How do I access parameters returned in a redirect uri?

I'm using the requests library in python to follow this guide and it mentions accessing a code from the redirected uri. The problem is, after spotify asks for permission and redirects, I can't access ...
yipjones2's user avatar
0 votes
1 answer
23 views

What value does the spotify api accept in the "state" parameter when making authorisation requests?

I understand that adding state is crucial for preventing things like cross-site request forgery, according to Spotify Documentation, but I can't find anything that says what to actually put in the ...
ben's user avatar
  • 11
0 votes
0 answers
15 views

how do i send spotify song lyrics over the serial port in javaScript [closed]

hello i am trying to make a cool display that comunicates via serial with my computer.The program i need is going to: Get the current lyrics from spotify send them over the serial port to the display(...
Kacpe876's user avatar
0 votes
0 answers
27 views

How do I find the elements inside this "document"? Spotify API

I'm following the Spotify API Web App Profile beginner guide: https://developer.spotify.com/documentation/web-api/howtos/web-app-profile I've done everything in the tutorial just fine, but I'm ...
106462910's user avatar
0 votes
1 answer
31 views

Get audio stream in React.js app from expressjs server

Greetings SO Community, I had created backend in expressjs that have an endpoint that serve stream of requested audio/mp3 file within its bytes ranges. Say No To Progressive Download As I researched ...
m-naeem66622's user avatar
0 votes
1 answer
47 views

Supabase Spotify API request

I'm trying to create a Django app that uses Supabase to authenticate and log into spotify. i do so using the view: def spotify_auth(request): # Redirect the user to Supabase's OAuth ...
KevinL's user avatar
  • 11
0 votes
1 answer
25 views

iOS Swift Spotify SDK Auth unknown error occured

I really have no idea more. I read Spotify guide, I read various articles, I watched videos on YouTube, I even launched other people’s projects - authorization fails everywhere. Spotify opens, shows &...
Koder 228's user avatar
  • 200
1 vote
0 answers
27 views

How to extract data from a URL fragment Django

Hi I'm trying to learn development by creating a web app that displays users top Spotify stats and so I'm trying to use supabase to login to Spotify however the redirect gives a URL in the form of: ...
KevinL's user avatar
  • 11
0 votes
0 answers
20 views

Get Access Token from Spotify API using OpenFeign (Spring Boot Java)

I am building a project that involves authentication with the Spotify API. I managed to get to the first part and receive the access code from the Spotify API. My problem is when I try to make a POST ...
Pascal Edouard's user avatar
-1 votes
1 answer
20 views

Selnium/spotify API - Bulk like list of songs

I have a csv list of 3000+ songs, name and artist, I want to "like" all the songs that appear on the list in my spotify account. I looked for a solution inside spotify API but couldn't find ...
Noam Shamgar's user avatar
0 votes
0 answers
26 views

Trouble with Spotify API hosting on Vercel

My app currently has no problem retrieving data using Spotipy when on Local host however when I host the website using Vercel it doesn't work, authentication fails def spotify_auth(request): ...
KL02's user avatar
  • 1
0 votes
0 answers
24 views

Spotify NextAuth.js Not working INVALID_CLIENT: Invalid redirect URI

Hi Im using nextjs and nextauth for authentication I have google facebook and instagram all working and its very simple. Spotify does not want to work. When I click it to sign in I get INVALID_CLIENT: ...
rlima003's user avatar
0 votes
0 answers
26 views

is there a way to keep the embedded spotify song playing while switching pages?

Using Daisy UI's toast (notification at the bottom right of your screen) thing, I wanted to embed a song, but I wanted to know if there was a way to keep it playing while switching pages (like if I ...
skylar kim's user avatar
0 votes
0 answers
38 views

JSONDecodeError error when trying to pull playlists from spotify using spotipy

I'm using the default instructions provided by docs in spotipy, I setup my app in the spotify dev dashboard, and checked my credentials, but am still getting this error code: JSONDecodeError: ...
dko512's user avatar
  • 411
0 votes
1 answer
47 views

Error 400 while trying to get my Spotify token refreshed

I am trying to refresh my Spotify Access Token by using the refresh token, i followed the spotify documentation and tried finding my answers here but i couldn't find anything that solved my problem. ...
BGMine 13's user avatar
0 votes
0 answers
30 views

SPOTIFY API authorization using REACT.JS

I'm trying to connect a Spotify API, everything is working, playlist are being gathered etc.. My main problem is how can I get the authorization from the SPOTIFY login. the code below is my login code....
Thiago Marvin's user avatar
1 vote
1 answer
39 views

How can I securely store/use Spotify access tokens in the case where multiple user's login and use my website at once?

I am working on a side project as a learning experience. I'm trying to create a web app where any user can login and authenticate with Spotify so I can make API calls and display some data. I've read ...
jtlearndev's user avatar
0 votes
0 answers
26 views

Getting final URL with a URL that redirects using Python

The Spotify API sends you back a URL when authenticating. This URL, redirects you to a previously specified redirect URI (in my case http://localhost:5000) with some parameters that I am after. But so ...
kenpino's user avatar
  • 63
0 votes
2 answers
64 views

Python - Spotify API - No Authorization Code received with <Response [200]>

I have looked at several posts here about issues very close to this one including one that is exactly the same but no one gave an answer so I am going to give it a go. I am very new to Python. My ...
kenpino's user avatar
  • 63
0 votes
0 answers
17 views

Spotify Vite App works on my computer but not on others

I created an app where I fetch data from the Spotify API and use it to make a playlist. The app works perfectly on my computer but on other devices I have a problem. When other people have to log into ...
shimmyshimmyya7347's user avatar
0 votes
0 answers
13 views

How to Spotify recognizes oEmbed as a device?

I'm using iframe to embed Spotify to my web app. But Spotify doesn't recognize it as a device, so I can't use Spotify API to play/pause, seek or skip track!!!
Thuong Vu's user avatar
0 votes
1 answer
21 views

Axios error 403: ERR_BAD_REQUEST using Spotify API for Javascript (React)

I am currently making (attempting to make) a react app with the function of getting the users top tracks, but when I send the request, it returns Request failed with status code 403 AxiosError: ...
Kevin W's user avatar
  • 19
0 votes
0 answers
47 views

android media controller in jetpack compose

I am trying to create a section in my android launcher that should directly control audio playback(like songs on spotify ,audible, wink ,etc.) but creating it is harder than it seems. after searching ...
Dhruv Bansal's user avatar
0 votes
1 answer
35 views

Getting Song Stream Counts from Streaming Services to Auto-Update in Excel Sheet

This is a bit of a bigger idea question, but I'm working on a project in which it would be really helpful to have a few columns in an Excel sheet that auto-update daily with the number of streams that ...
ppbb's user avatar
  • 1
0 votes
1 answer
33 views

Spotify 404 Error when trying to add songs to queue using Spotify API

I have an array of Spotify URIs in the format: spotify:track:3OF9rTCYjLEplmYMynYvHG I am trying to use the API to add each value in the array to the queue. My code is as follows: for (const ...
Lara-Codes's user avatar
1 vote
0 answers
93 views

I had previously installed Spicetify but now while reinstalling it, I'm having this Error

iwr : Unable to connect to the remote server At line:1 char:1 iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-cli/m ... + CategoryInfo : InvalidOperation: (System.Net....
Aakash Joshi's user avatar
0 votes
0 answers
43 views

Is it possible to get notified if the currently playing song on Spotify changes

I need to update a screen in my app if the playing song changes, but I don't want to send http requests to the Spotify API every x amount of seconds. I looked into Websockets and Long Polling but ...
Elia Driesner's user avatar
0 votes
0 answers
27 views

The Spotify API show fetch returns an array full of null when I search for a podcast

When I search for a podcast like "Nerdcast" using the URL https://api.spotify.com/v1/search?q=nerdcast&type=show, the request is successful, but it returns an array of [null, null, null, ...
Gabriel Ayres's user avatar
1 vote
1 answer
61 views

How can i solve the white background bug at spotify embed code?

<iframe src="https://open.spotify.com/embed/track/6wsqVwoiVH2kde4k4KKAFU?utm_source=generator" width="500" height="100" allow="autoplay; clipboard-write; ...
co-flow's user avatar
  • 13
0 votes
1 answer
36 views

Not expected response from Spotify API in React code

I am making app in React using Spotify API. First, I obtain access token using my clientID and clientSecret. Then, I am trying to use this token to obtain userID. Documentation says that one needs to ...
Vladyslav's user avatar
0 votes
2 answers
44 views

Is there a way to access individual header parameters from the body of a response in Java?

I am new to coding with APIs and am not very experienced otherwise so I apologize if I get any terminology wrong. I was wondering if there is a way to access only the value for a header without having ...
ant's user avatar
  • 1
0 votes
0 answers
37 views

Having trouble storing Spotify API authentication token

I'm creating a social media web app using Django REST Framework with react on the frontend and postgreSQL and I'm having trouble thinking of a way to store the user's Spotify authentication token. The ...
Greg Sack's user avatar
0 votes
1 answer
75 views

React Native Redirect Url Error ( Config error: redirectUrl must be a string ) Spotify App

I hope you're all doing well. I'm currently working on building a music app, and I'm facing a bit of a challenge with the login functionality. When I click on the login button, the idea is that it ...
Jayesh Gadhok's user avatar
0 votes
0 answers
29 views

Spotify's car mode on iOS devices

This is not programming question per se but something that I'm trying to figure out. How can Spotify know that I'm connected to my car's Bluetooth? Since Spotify doesn't request any Bluetooth ...
Keselme's user avatar
  • 3,819
0 votes
0 answers
24 views

I'm getting 401 error when I'm trying to get data from spotify API in svelte

<script> import { onMount } from 'svelte'; import axios from 'axios'; export let access_token; let displayName = ''; let errors = []; const requestAPI = async () => { try { ...
Mark Chad's user avatar
0 votes
0 answers
16 views

Calling Spotify API Endpoint for "/search" returns 502 HTTP Status

I have a Java Springboot app with a controller class that has a method that gets invoked when it accepts incoming HTTP POST request to path "/api". I am able to generate access-token on ...
user19417266's user avatar
0 votes
0 answers
46 views

Can't obtain user's currently playing track, GET https://api.spotify.com/v1/me/player/currently-playing 400

I am trying to learn how to use the Spotify API to experiment and hopefully make a full project with. I was able to obtain the access token from user login. However, I am not sure how I am supposed to ...
nabidkabir's user avatar
0 votes
1 answer
25 views

quotes turn into backslashes with Deno.Command

await new Deno.Command('cmd', { args: [ '/c', 'start', `https://accounts.spotify.com/authorize?${new URLSearchParams({ client_id, response_type: '...
ahsan-a's user avatar
  • 204
0 votes
1 answer
77 views

I am getting this error blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource in mern

I am currently working on a project where I am implementing Spotify authentication using React for the frontend and Node.js for the backend. Everything is working fine on the backend, but I am facing ...
rawan arafat's user avatar
0 votes
0 answers
22 views

How to delay js from continuing execution until local storage is updated?

I'm writing a react web app to display spotify user data. I'm using the authorization with PKCE, which means that I need to obtain an access token from the API, which I then use to make API calls for ...
brendanshaw14's user avatar
1 vote
2 answers
54 views

Vite + React: My post route is hitting multiple times within a useEffect

I am implementing the spotify api into my app however as shown in the picture below the post route gets hit 2-4 times and consstantly overwrites all the data leading to errors. Repo(in case you need ...
sullivanstresser's user avatar
0 votes
0 answers
39 views

Displaying Spotify API recommendation results in a Vaadin Grid

I'm working on a Vaadin Spring Boot web application and using the Spotify API in my app. I am creating a page that a user can use to access the Recommendations endpoint of the Spotify API. The page ...
Gyro's user avatar
  • 13

1
2 3 4 5
80