pythonspotifyspotipy

How would I get the name of a member of Spotify using their User ID on Spotipy


I am trying to get the current listed name for a user on Spotify, by their User ID. I am using the spotipy library as my API. Does anyone know of any viable methods to get the name of the user by their User ID. I am running Python 3.11

I have looked through all of the user commands that I can see, however nothing visible is there for me to find this. I have probably just overlooked something but thought it was best to ask.


Solution

  • I think you want user(user). It's in the documentation spotipy docs

    where the user argument is the ID you reference.