[GH-ISSUE #782] Get user ID of the current logged in user #483

Closed
opened 2026-02-27 23:22:52 +03:00 by kerem · 0 comments
Owner

Originally created by @NicoCaldo on GitHub (Feb 16, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/782

For some reason, I can't find a way to retrieve the user id for the user logged in. I need it to list his/her/its playlist with user_playlists()

I've checked this example but the user is passed manually.

I manage the user authentication with spotify = spotipy.Spotify(oauth_manager=sp_auth)

Originally created by @NicoCaldo on GitHub (Feb 16, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/782 For some reason, I can't find a way to retrieve the user id for the user logged in. I need it to list his/her/its playlist with `user_playlists()` I've checked [this example](https://github.com/plamere/spotipy/blob/master/examples/user_public_playlists.py) but the user is passed manually. I manage the user authentication with `spotify = spotipy.Spotify(oauth_manager=sp_auth)`
kerem 2026-02-27 23:22:52 +03:00
  • closed this issue
  • added the
    question
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#483
No description provided.