mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #390] How to get all tracks of playlist without user id #231
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maltejur on GitHub (Jul 18, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/390
Is there a alternative function to
user_playlist_tracks(user, playlist_id)where you just have the playlist id? The new spotify playlist-links aren't giving the user-id anymore.@ritiek commented on GitHub (Jul 23, 2019):
Passing
userasNoneseems to work:@mw1213 commented on GitHub (Sep 2, 2019):
If you want to get another users'
playlist, servers won't let you do that, giving you TheHTTP 403 Forbiddenerror.Function code (
playlistargument is uri to playlist):@ritiek commented on GitHub (Sep 2, 2019):
@mw1213 Are you trying to fetch user's starred playlist? That is what it seems like to me from the screenshot. I think Spotify removed starred playlists quite a while ago so I don't know if those are still a thing.
Anyway, I can confirm that passing
user=Nonefor usual Spotify playlists works fine. For example, you could pick any spotify playlist from r/spotify and pass the playlist ID tosp.user_playlistorsp.user_playlist_tracksand it works fine. Such as this playlist:https://open.spotify.com/playlist/3REbQZU8WKDD0h4riXklug?si=ZXm1M-_wSJyyQYKSlufU6Q could be fetched as: