Announcements

Topics with Label: Python

Labels

Forum Posts

Welcome to the Spotify for Developers board!

Welcome to the Spotify for Developers board! This forum is the place for conversations about Spotify's Web API, Web Playback SDK, Widgets, and other developer tools. Here you can ask questions about the Spotify platform, chat with other developers, a...

  • Spotify
  • Spotify
  • 18618 Views
  • 0 replies
  • 58 likes
  • Discussion
  • 18618 Views
  • 0 replies
  • 58 likes

Solved!! retrieving genre of track in metadata

My Question or IssueI'm writing a scritpt to try to retrieve the genre from a track using the metadata of that song. I am not well versed in the spotify API, so i do need some information .btw i am writing it in Python and I'm using spotipy to access...

  • Visitor
  • ...bsp; 😅 . btw i am writing it in Python and I'm using spotipy to access the API. My question would be: Is it even possible to retrieven the genre of a certian track? (bc it doesn't seem to work for me l...
  • Ximzend
  • Roadie
  • 266 Views
  • 4 replies
  • 2 likes
  • API Help
    genres
    Python
    python api
  • 266 Views
  • 4 replies
  • 2 likes

Inability to Getting Track Genre Information

(Windows 10 desktop) My Question or IssueIs there any way to get track genre information with Spotify API (python)?

  • Casual Listener
  •   (Windows 10 desktop)   My Question or Issue Is there any way to get track genre information with Spotify API (python)?
  • Ximzend
  • Roadie
  • 620 Views
  • 5 replies
  • 0 likes
  • Python
  • 620 Views
  • 5 replies
  • 0 likes

Get a permanent token for API calls

Hello, I wrote a Python script to update playlists (throught API calls). It works fine, but I have to generate a new token each hour from the Spotify Web API Console. Is there a way to get a permanent token in order to be able to use it in a schedule...

  • Casual Listener
  • Hello,   I wrote a Python script to update playlists (throught API calls). It works fine, but I have to generate a new token each hour from the Spotify Web API Console. Is there a way to get a...
  • Rémy-J
  • Casual Listener
  • 837 Views
  • 4 replies
  • 0 likes
  • api
    Python
    token
  • 837 Views
  • 4 replies
  • 0 likes

Redirect URI needed?

I just started working with Spotify's Web API and am using Python/Spotipy to retrieve data. If I want to retrieve data related specifically to my personal account (like recently played tracks or saved albums), do I need to set a redirect URI in my ap...

  • Casual Listener
  • I just started working with Spotify's Web API and am using Python/Spotipy to retrieve data. If I want to retrieve data related specifically to my personal account (like recently played tracks or s...
  • viniciusponde
  • Newbie
  • 27161 Views
  • 5 replies
  • 0 likes
  • Developer
    Python
    Uri
  • 27161 Views
  • 5 replies
  • 0 likes

Fetch redirect URI?

So, in the OAuth2 thing, the user gets a URL to the OAuth2 Confirmation page. They click accept/decline, and they get redirected to the Redirect URI. How do I fetch that URI?

  • Regular
  • So, in the OAuth2 thing, the user gets a URL to the OAuth2 Confirmation page. They click accept/decline, and they get redirected to the Redirect URI. How do I fetch that URI?
  • zoltan69
  • Casual Listener
  • 431 Views
  • 8 replies
  • 0 likes
  • api
    Help
    oAuth2
    Python
  • 431 Views
  • 8 replies
  • 0 likes

401 error when accessing user liked/saved songs

PlanPremiumCountryUnited KingdomDeviceWindows 10 Laptop My Question or IssueWhen trying to access users liked songs via the Spotify API, I can generate an access code, however when trying to use the access code to the"https://api.spotify.com/v1/me/tr...

  • Casual Listener
  • Plan Premium Country United Kingdom Device Windows 10 Laptop     My Question or Issue When trying to access users liked songs via the Spotify API, I can generate an access code, ho...
  • Ximzend
  • Roadie
  • 152 Views
  • 1 replies
  • 0 likes
  • 401
    Python
    saved songs
  • 152 Views
  • 1 replies
  • 0 likes

Amount of shares a song has received

Hey everyone,does someone now if it is currently possible to get the amount of shares a song has received on spotify through the use of the API?So basically what I would like to know is the exact amounf of times a song got shares through the internal...

  • Newbie
  • Hey everyone, does someone now if it is currently possible to get the amount of shares a song has received on spotify through the use of the API? So basically what I would like to know is the exact...
  • 144 Views
  • 0 replies
  • 0 likes
  • api
    Instagram
    Python
    sharing
    twitter
  • 144 Views
  • 0 replies
  • 0 likes

Get the contributer of a track within a collaborative playlist.

Hello Spotify-friends,I am trying to match the tracks within a playlist to their contributer. Is there any way to do this within the API?I am using the "spotipy" module in Python, so maybe it isn't implemented there yet.Thank you for your time!Greets...

  • Casual Listener
  • Hello Spotify-friends, I am trying to match the tracks within a playlist to their contributer. Is there any way to do this within the API? I am using the "spotipy" module in Python, so maybe it i...
  • 123 Views
  • 0 replies
  • 0 likes
  • Collaborative playlist private public
    contributer
    Feature Request
    Python
  • 123 Views
  • 0 replies
  • 0 likes

Spotify Search API doesn't return results for certain songs

PlanPremiumCountryUnited KingdomDeviceAPIOperating SystemWindows 10My Question or IssueHi, I've seen similar issues reported, but with no follow up answers so I was wondering if anyone could help with my query. I am writing a little program that sear...

  • Casual Listener
  • ...ssue where I found a certain song results in no results being returned from spotify, however on their sandbox web test [ found here ] It works just fine! Please see the results from python h...
  • tomjaimz
  • Music Fan
  • 793 Views
  • 3 replies
  • 0 likes
  • api
    Possible Bug
    Python
    Search API
    Search Track
  • 793 Views
  • 3 replies
  • 0 likes

KeyError ['total']

I am creating a user dashboard using plotly and flask to display the top tracks and top artists preferred by a user. My code has been working fine but suddenly I got this error. Also, in the same application, I was able to create a new playlist on sp...

bleh.png
  • Newbie
  • I am creating a user dashboard using plotly and flask to display the top tracks and top artists preferred by a user. My code has been working fine but suddenly I got this error. Also, in the same app...
  • 534 Views
  • 0 replies
  • 0 likes
  • flask
    Python
    Spotify
  • 534 Views
  • 0 replies
  • 0 likes

Solved!!Superuser Contribution Invalid username - cant get devices

HiI'm trying get Spotify devices (and eventually set active device) via the web API. I can retrieve track info, but as soon I try to access device or play/pause I get the "Invalid User" reply.I can see the necesary scopes in the Auth token reply, but...

  • Visitor
  • Hi I'm trying get Spotify devices (and eventually set active device) via the web API. I can retrieve track info, but as soon I try to access device or play/pause I get the "Invalid User" reply....
  • spotifyjosh
  • Spotify
  • 2444 Views
  • 1 replies
  • 0 likes
  • api
    devices
    Python
  • 2444 Views
  • 1 replies
  • 0 likes

Get Typical Distributions for Audio Features

I am doing a data analysis of my Spotify listening data for 2020. I got the audio features for each track (acousticness, danceability, etc...) and plot the distribution for each feature using seaborn.I would like to compare these distribution plots t...

  • Visitor
  • I am doing a data analysis of my Spotify listening data for 2020. I got the audio features for each track (acousticness, danceability, etc...) and plot the distribution for each feature using seaborn...
  • geef
  • Newbie
  • 1237 Views
  • 1 replies
  • 0 likes
  • api
    Python
  • 1237 Views
  • 1 replies
  • 0 likes

Spotipy Web Application, how to retrieve OAuth code?

Hello all,I am branching out into trying to setup a Web Application for the first time, and I'm trying to make something with Spotify since I use it very often. I have a URL setup with my registered app on Heroku and I've got some barebones Python wr...

  • Visitor
  • ...egistered app on Heroku and I've got some barebones Python written using the Spotipy library.   I have created several Twitter apps using OAuth before, so I have a rough idea of how it works c...
  • PMental
  • Regular
  • 856 Views
  • 1 replies
  • 0 likes
  • OAuth
    Python
    Spotipy
    web
    webapp
  • 856 Views
  • 1 replies
  • 0 likes

Solved!! Discover Weekly URI

I had a simple question, I am using the Spotify API to get my discover weekly playlist every Monday and save it to a new playlist. I have a problem though, I don't know if the discover weekly playlist URI changes every Monday or not, can someone conf...

  • Visitor
  • I had a simple question, I am using the Spotify API to get my discover weekly playlist every Monday and save it to a new playlist.   I have a problem though, I don't know if the discover weekl...
  • Hubo
  • Community Legend
  • 1998 Views
  • 1 replies
  • 1 likes
  • api
    Python
  • 1998 Views
  • 1 replies
  • 1 likes