UsersAPI¶
- class minim.api.deezer.UsersAPI(client: APIClient, /)[source]¶
Bases:
DeezerResourceAPIUsers API endpoints for the Deezer API.
Important
This class is managed by
DeezerAPIClientand should not be instantiated directly.- Parameters:
- clientminim.api._shared.APIClient
API client instance used to make HTTP requests.
Methods
Playlist > Tracks: Add tracks to a playlist.
User > Playlists: Create a playlist.
Playlist: Delete a playlist.
Track: Delete a user-uploaded track.
User > Artists: Favorite one or more artists.
User > Playlists: Favorite one or more playlists.
User > Podcasts: Favorite a podcast.
User > Followings: Follow a user.
User: Get Deezer profile information for a user.
User > Recommendations > Albums: Get Discogs catalog information for albums recommended for a user.
User > Recommendations > Artists: Get Discogs catalog information for artists recommended for a user.
Options: Get the entitlements for a user on Deezer.
User > Artists: Get Deezer catalog information for a user's favorite artists.
User > Podcasts: Get Deezer catalog information for a user's favorite podcasts.
User > Radios: Get Deezer catalog information for a user's favorite radios.
User > Followers: Get Deezer profile information for users following a specified user.
User > Followings: Get Deezer profile information for users followed by a specified user.
User > Flow: Get Deezer catalog information for the tracks in a user's Flow mix.
User > Permissions: Get the permissions granted to the Deezer API client by a user.
User > Recommendations > Playlists: Get Discogs catalog information for playlists recommended for a user.
User > Playlists: Get Deezer catalog information for a user's playlists.
User > Recommendations > Radios: Get Discogs catalog information for radios recommended for a user.
User > History: Get Deezer catalog information for the tracks recently played by a user on Deezer.
User > Recommendations > Releases: Get Discogs catalog information for new releases recommended for a user.
User > Albums: Get Deezer catalog information for a user's favorite albums.
User > Tracks: Get Deezer catalog information for a user's favorite tracks.
User > Charts > Albums: Get Deezer catalog information for a user's top albums on Deezer.
User > Charts > Artists: Get Deezer catalog information for a user's top artists on Deezer.
User > Charts > Playlists: Get Deezer catalog information for a user's top playlists.
User > Charts > Tracks: Get Deezer catalog information for a user's top tracks on Deezer.
User > Recommendations > Tracks: Get Discogs catalog information for tracks recommended for a user.
User > Personal Songs: Get Deezer catalog information for a user's uploaded tracks.
Episode > Bookmark: Remove a resume point for a podcast episode.
User > Albums: Unfavorite an album.
User > Radios: Unfavorite a radio.
User > Tracks: Unfavorite a track.
Playlist > Tracks: Reorder tracks in a playlist.
User > Albums: Favorite one or more albums.
User > Radios: Favorite a radio.
User > Tracks: Favorite one or more tracks.
User > Notification: Add a notification to a user's feed on Deezer.
Episode > Bookmark: Set a resume point for a podcast episode.
User > Artists: Unfavorite an artist.
User > Playlists: Unfavorite a playlist.
User > Podcasts: Unfavorite a podcast.
User > Followings: Unfollow a user.
Playlist: Update the details of a playlist.
Track: Update the metadata for a user-uploaded track.
- add_playlist_tracks(playlist_id: int | str, /, track_ids: int | str | Collection[int | str]) bool[source]¶
Playlist > Tracks: Add tracks to a playlist.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- playlist_idint or str; positional-only
Deezer ID of the playlist.
Examples:
13651021241,"1495242491".- track_idsint, str, or Collection[int | str]
Deezer IDs of the tracks.
Examples:
101602968,"3541756661","101602968,3541756661",[101602968, "3541756661"].
- Returns:
- successbool
Whether the tracks were added successfully.
- create_playlist(name: str, /, *, user_id: int | str = 'me') dict[str, int][source]¶
User > Playlists: Create a playlist.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- namestr
Playlist name.
Example:
"My New Playlist Title".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- playlist_iddict[str, int]
Deezer ID of the newly created playlist.
Sample response:
{"id": <int>}.
- delete_playlist(playlist_id: int | str, /) bool[source]¶
Playlist: Delete a playlist.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- playlist_idint or str; positional-only
Deezer ID of the playlist.
Examples:
13651021241,"1495242491".
- Returns:
- successbool
Whether the playlist was deleted successfully.
- delete_track(track_id: int | str, /) bool[source]¶
Track: Delete a user-uploaded track.
Permission
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- track_idint or str; positional-only
Deezer ID of the track.
Examples:
-3140371023,"-3140371043".
- Returns:
- successbool
Whether the track was deleted successfully.
- follow_artists(artist_ids: int | str | Collection[int | str], /, *, user_id: int | str = 'me') bool[source]¶
User > Artists: Favorite one or more artists.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- artist_idsint, str, or Collection[int | str]; positional-only
Deezer IDs of the artists.
Examples:
3265001,"330311461","3265001,330311461",[3265001, "330311461"].- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the artists were favorited successfully.
- follow_playlists(playlist_ids: int | str | Collection[int | str], /, *, user_id: int | str = 'me') bool[source]¶
User > Playlists: Favorite one or more playlists.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- playlist_idsint, str, or Collection[int | str]; positional-only
Deezer IDs of the playlists.
Examples:
13651021241,"1495242491","13651021241,1495242491",[13651021241, "1495242491"].- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the playlists were favorited successfully.
- follow_podcast(podcast_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Podcasts: Favorite a podcast.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- podcast_idint or str; positional-only
Deezer ID of the podcast.
Examples:
436862,"2740882".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the podcast was favorited successfully.
- follow_user(follow_user_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Followings: Follow a user.
Permission
manage_communitypermissionManage a user’s friends. Learn more.
- Parameters:
- follow_user_idint or str; positional-only
Deezer ID of the user to follow.
Example:
5395005364,"5395005364".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the user was followed successfully.
- get_user(user_id: int | str = 'me', /) dict[str, Any][source]¶
User: Get Deezer profile information for a user.
Permission and user authentication
- User authentication
Access the user’s basic information.
emailpermissionAccess the user’s email. Learn more.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- user_idint or str; positional-only; default:
- Returns:
- profiledict[str, Any]
Deezer metadata for the user’s profile.
Sample response
{ "birthday": <str>, "country": <str>, "email": <str>, "explicit_content_level": <str>, "explicit_content_levels_available": <list[str]>, "firstname": <str>, "gender": <str>, "id": <int>, "inscription_date": <str>, "is_kid": <bool>, "lang": <str>, "lastname": <str>, "link": <str>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "status": <int>, "tracklist": <str>, "type": "user" }
- get_user_album_recommendations(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Recommendations > Albums: Get Discogs catalog information for albums recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of albums to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first album to return. Use with limit to get the next batch of albums.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- albumsdict[str, Any]
Page of Deezer metadata for the recommended albums.
Sample response
{ "data": [ { "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "available": <bool>, "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "explicit_lyrics": <bool>, "id": <int>, "link": <str>, "md5_image": <str>, "nb_tracks": <int>, "record_type": <str>, "release_date": <str>, "timestamp": <int>, "title": <str>, "tracklist": <str>, "type": "album" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_artist_recommendations(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Recommendations > Artists: Get Discogs catalog information for artists recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of artists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first artist to return. Use with limit to get the next batch of artists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- artistsdict[str, Any]
Page of Deezer metadata for the recommended artists.
Sample response
{ "data": [ { "id": <int>, "link": <str>, "name": <str>, "nb_album": <int>, "nb_fan": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "radio": <bool>, "timestamp": <int>, "tracklist": <str>, "type": "artist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_entitlements(user_id: int | str = 'me', /) dict[str, Any][source]¶
Options: Get the entitlements for a user on Deezer.
Permission and user authentication
- User authentication
Access the user’s basic information.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- user_idint or str; positional-only; default:
- Returns:
- entitlements: dict[str, Any]
User’s entitlement.
Sample response
{ "ads_audio": <bool>, "ads_display": <bool>, "can_subscribe": <bool>, "hq": <bool>, "lossless": <bool>, "offline": <bool>, "preview": <bool>, "radio": <bool>, "radio_skips": <int>, "streaming": <bool>, "streaming_duration": <int>, "too_many_devices": <bool>, "type": "options" }
- get_user_followed_artists(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Artists: Get Deezer catalog information for a user’s favorite artists.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of artists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first artist to return. Use with limit to get the next batch of artists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- artistsdict[str, Any]
Page of Deezer metadata for the user’s favorite artists.
Sample response
{ "checksum": <str>, "data": [ { "id": <int>, "link": <str>, "name": <str>, "nb_album": <int>, "nb_fan": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "radio": <bool>, "time_add": <int>, "tracklist": <str>, "type": "artist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_followed_podcasts(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Podcasts: Get Deezer catalog information for a user’s favorite podcasts.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of podcasts to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first podcast to return. Use with limit to get the next batch of podcasts.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- podcastsdict[str, Any]
Page of Deezer metadata for the user’s favorite podcasts.
Sample response
{ "checksum": <str>, "data": [ { "available": <bool>, "description": <str>, "fans": <int>, "id": <int>, "link": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "share": <str>, "time_add": <int>, "title": <str>, "type": "podcast" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_followed_radios(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Radios: Get Deezer catalog information for a user’s favorite radios.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of radios to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first radio to return. Use with limit to get the next batch of radios.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- radiosdict[str, Any]
Page of Deezer metadata for the user’s favorite radios.
Sample response
{ "checksum": <str>, "data": [], "next": <str>, "prev": <str>, "total": <int> }
- get_user_followers(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Followers: Get Deezer profile information for users following a specified user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of users to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first user to return. Use with limit to get the next batch of users.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- usersdict[str, Any]
Page of Deezer profile information for the user’s followers.
Sample response
{ "data": [ { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "user" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_followings(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Followings: Get Deezer profile information for users followed by a specified user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of users to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first user to return. Use with limit to get the next batch of users.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- usersdict[str, Any]
Page of Deezer profile information for the followed users.
Sample response
{ "data": [ { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "user" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_mix_tracks(user_id: int | str = 'me', /) dict[str, Any][source]¶
User > Flow: Get Deezer catalog information for the tracks in a user’s Flow mix.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Deezer metadata for tracks in the user’s Flow mix.
Sample response
{ "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ] }
- get_user_permissions(user_id: int | str = 'me', /) dict[str, dict[str, bool]][source]¶
User > Permissions: Get the permissions granted to the Deezer API client by a user.
Permission and user authentication
- User authentication
Access the user’s basic information.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- user_idint or str; positional-only; default:
- Returns:
- permissions: dict[str, dict[str, bool]]
Permissions granted to the client by the user.
Sample response
{ "permissions": { "basic_access": true, "delete_library": true, "email": true, "listening_history": true, "manage_community": true, "manage_library": true, "offline_access": true } }
- get_user_playlist_recommendations(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Recommendations > Playlists: Get Discogs catalog information for playlists recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of playlists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first playlist to return. Use with limit to get the next batch of playlists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- playlistsdict[str, Any]
Page of Deezer metadata for the recommended playlists.
Sample response
{ "data": [ { "add_date": <str>, "checksum": <str>, "collaborative": <bool>, "creation_date": <str>, "creator": { "id": <int>, "name": <str>, "tracklist": <str>, "type": "user" }, "duration": <int>, "fans": <int>, "id": <int>, "is_loved_track": <bool>, "link": <str>, "md5_image": <str>, "mod_date": <str>, "nb_tracks": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_type": <str>, "picture_xl": <str>, "public": <bool>, "timestamp": <int>, "title": <str>, "tracklist": <str>, "type": "playlist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_playlists(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Playlists: Get Deezer catalog information for a user’s playlists.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of playlists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first playlist to return. Use with limit to get the next batch of playlists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- playlistsdict[str, Any]
Page of Deezer metadata for the user’s playlists.
Sample response
{ "data": [ { "add_date": <str>, "checksum": <str>, "collaborative": <bool>, "creation_date": <str>, "creator": { "id": <int>, "name": <str>, "tracklist": <str>, "type": "user" }, "duration": <int>, "fans": <int>, "id": <int>, "is_loved_track": <bool>, "link": <str>, "md5_image": <str>, "mod_date": <str>, "nb_tracks": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_type": <str>, "picture_xl": <str>, "public": <bool>, "time_add": <int>, "time_mod": <int>, "title": <str>, "tracklist": <str>, "type": "playlist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_radio_recommendations(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Recommendations > Radios: Get Discogs catalog information for radios recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of radios to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first radio to return. Use with limit to get the next batch of radios.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- radiosdict[str, Any]
Page of Deezer metadata for the recommended radios.
Sample response
{ "data": [ { "id": <int>, "md5_image": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "timestamp": <int>, "title": <str>, "tracklist": <str>, "type": "radio" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_recently_played(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > History: Get Deezer catalog information for the tracks recently played by a user on Deezer.
Permission
listening_historypermissionAccess the user’s listening history. Learn more.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of tracks to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first track to return. Use with limit to get the next batch of tracks.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Page of Deezer metadata for the user’s recently played tracks.
Sample response
{ "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_release_recommendations(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Recommendations > Releases: Get Discogs catalog information for new releases recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of releases to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first release to return. Use with limit to get the next batch of releases.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- releasesdict[str, Any]
Page of Deezer metadata for the recommended new releases.
Sample response
{ "data": [ { "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "available": <bool>, "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "explicit_lyrics": <bool>, "id": <int>, "link": <str>, "md5_image": <str>, "nb_tracks": <int>, "record_type": <str>, "release_date": <str>, "timestamp": <int>, "title": <str>, "tracklist": <str>, "type": "album" } ], "next": <str>, "prev": <str>, "total": <int>, }
- get_user_saved_albums(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Albums: Get Deezer catalog information for a user’s favorite albums.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of albums to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first album to return. Use with limit to get the next batch of albums.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- albumsdict[str, Any]
Page of Deezer metadata for the user’s favorite albums.
Sample response
{ "checksum": <str>, "data": [ { "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "available": <bool>, "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "explicit_lyrics": <bool>, "id": <int>, "link": <str>, "md5_image": <str>, "nb_tracks": <int>, "record_type": <str>, "release_date": <str>, "time_add": <int>, "title": <str>, "tracklist": <str>, "type": "album" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_saved_tracks(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Tracks: Get Deezer catalog information for a user’s favorite tracks.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of tracks to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first track to return. Use with limit to get the next batch of tracks.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Page of Deezer metadata for the user’s favorite tracks.
Sample response
{ "checksum": <str>, "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_top_albums(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Charts > Albums: Get Deezer catalog information for a user’s top albums on Deezer.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of albums to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first album to return. Use with limit to get the next batch of albums.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- albumsdict[str, Any]
Page of Deezer metadata for the user’s top albums.
Sample response
{ "checksum": <str>, "data": [ { "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "available": <bool>, "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "explicit_lyrics": <bool>, "id": <int>, "link": <str>, "md5_image": <str>, "nb_tracks": <int>, "record_type": <str>, "release_date": <str>, "title": <str>, "tracklist": <str>, "type": "album" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_top_artists(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Charts > Artists: Get Deezer catalog information for a user’s top artists on Deezer.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of artists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first artist to return. Use with limit to get the next batch of artists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- artistsdict[str, Any]
Page of Deezer metadata for the user’s top artists.
Sample response
{ "checksum": <str>, "data": [ { "id": <int>, "link": <str>, "name": <str>, "nb_album": <int>, "nb_fan": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "radio": <bool>, "tracklist": <str>, "type": "artist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_top_playlists(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Charts > Playlists: Get Deezer catalog information for a user’s top playlists.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of playlists to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first playlist to return. Use with limit to get the next batch of playlists.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- playlistsdict[str, Any]
Page of Deezer metadata for the user’s top playlists.
Sample response
{ "checksum": <str>, "data": [ { "add_date": <str>, "checksum": <str>, "collaborative": <bool>, "creation_date": <str>, "creator": { "id": <int>, "name": <str>, "tracklist": <str>, "type": "user" }, "duration": <int>, "fans": <int>, "id": <int>, "is_loved_track": <bool>, "link": <str>, "md5_image": <str>, "mod_date": <str>, "nb_tracks": <int>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_type": <str>, "picture_xl": <str>, "public": <bool>, "title": <str>, "tracklist": <str>, "type": "playlist" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_top_tracks(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Charts > Tracks: Get Deezer catalog information for a user’s top tracks on Deezer.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of tracks to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first track to return. Use with limit to get the next batch of tracks.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Page of Deezer metadata for the user’s top tracks.
Sample response
{ "checksum": <str>, "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_track_recommendations(user_id: int | str = 'me', /) dict[str, Any][source]¶
User > Recommendations > Tracks: Get Discogs catalog information for tracks recommended for a user.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of tracks to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first track to return. Use with limit to get the next batch of tracks.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Page of Deezer metadata for the recommended tracks.
Sample response
{ "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "timestamp": <int>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ], "next": <str>, "prev": <str>, "total": <int> }
- get_user_tracks(user_id: int | str = 'me', /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]¶
User > Personal Songs: Get Deezer catalog information for a user’s uploaded tracks.
User authentication
- User authentication
Access the user’s favorite items, playlists, and followed people.
- Parameters:
- user_idint or str; positional-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".- limitint; keyword-only; optional
Maximum number of tracks to return.
Minimum value:
1.- offsetint; keyword-only; optional
Index of the first track to return. Use with limit to get the next batch of tracks.
Minimum value:
0.API default:
0.
- user_idint or str; positional-only; default:
- Returns:
- tracksdict[str, Any]
Page of Deezer metadata for the user’s uploaded tracks.
Sample response
{ "data": [ { "album": { "cover": <str>, "cover_big": <str>, "cover_medium": <str>, "cover_small": <str>, "cover_xl": <str>, "id": <int>, "md5_image": <str>, "title": <str>, "tracklist": <str>, "type": "album" }, "artist": { "id": <int>, "name": <str>, "picture": <str>, "picture_big": <str>, "picture_medium": <str>, "picture_small": <str>, "picture_xl": <str>, "tracklist": <str>, "type": "artist" }, "duration": <int>, "explicit_content_cover": <int>, "explicit_content_lyrics": <int>, "explicit_lyrics": <bool>, "id": <int>, "md5_image": <str>, "preview": <str>, "rank": <int>, "readable": <bool>, "title": <str>, "title_short": <str>, "title_version": <str>, "type": "track" } ], "next": <str>, "prev": <str>, "total": <int> }
- remove_episode_resume_point(episode_id: int | str, /) dict[str, Any][source]¶
Episode > Bookmark: Remove a resume point for a podcast episode.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- episode_idint or str; positional-only
Deezer ID of the episode.
Example:
796445891,"822265072".
- Returns:
- statusdict[str, Any]
Whether the resume point was removed successfully.
Sample response:
{'error': [], 'results': True}.
- remove_saved_album(album_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Albums: Unfavorite an album.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- album_idint or str; positional-only
Deezer ID of the album.
Examples:
10546890,"816455081".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the album was unfavorited successfully.
- remove_saved_radio(radio_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Radios: Unfavorite a radio.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- radio_idint or str; positional-only
Deezer ID of the radio.
Examples:
31061,"37151".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the radio was unfavorited successfully.
- remove_saved_track(track_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Tracks: Unfavorite a track.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- track_idint or str; positional-only
Deezer ID of the track.
Examples:
101602968,"3541756661".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the track was unfavorited successfully.
- reorder_playlist_tracks(playlist_id: int | str, /, track_ids: int | str | Collection[int | str]) Any[source]¶
Playlist > Tracks: Reorder tracks in a playlist.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- playlist_idint or str; positional-only
Deezer ID of the playlist.
Examples:
13651021241,"1495242491".- track_idsint, str, or Collection[int | str]
Deezer IDs of the tracks in the desired order.
Examples:
101602968,"3541756661","101602968,3541756661",[101602968, "3541756661"].See also
get_playlist_tracks()– Get Deezer IDs of the tracks in the playlist.
- Returns:
- successbool
Whether the tracks were reordered successfully.
- save_albums(album_ids: int | str | Collection[int | str], /, *, user_id: int | str = 'me') bool[source]¶
User > Albums: Favorite one or more albums.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- album_idsint, str, or Collection[int | str]; positional-only
Deezer IDs of the albums.
Examples:
10546890,"816455081","10546890,816455081",[10546890, "816455081"].- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the albums were favorited successfully.
- save_radio(radio_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Radios: Favorite a radio.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- radio_idint or str; positional-only
Deezer ID of the radio.
Examples:
31061,"37151".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the radio was favorited successfully.
- save_tracks(track_ids: int | str | Collection[int | str], /, *, user_id: int | str = 'me') bool[source]¶
User > Tracks: Favorite one or more tracks.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- track_idsint, str, or Collection[int | str]; positional-only
Deezer IDs of the tracks.
Examples:
101602968,"3541756661","101602968,3541756661",[101602968, "3541756661"].- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the track was favorited successfully.
- send_user_notification(message: str, /, *, user_id: int | str = 'me') dict[str, bool][source]¶
User > Notification: Add a notification to a user’s feed on Deezer.
Permission and user authentication
- User authentication
Access the user’s basic information.
- Parameters:
- messagestr
Notification message.
- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- statusdict[str, bool]
Whether the notification was sent successfully.
Sample response:
{"success": True}.
- set_episode_resume_point(episode_id: int | str, /, position: int) dict[str, Any][source]¶
Episode > Bookmark: Set a resume point for a podcast episode.
Permission
manage_librarypermissionManage a user’s library. Learn more.
- Parameters:
- episode_idint or str; positional-only
Deezer ID of the episode.
Example:
796445891,"822265072".- positionint
Playback position within the episode as a percentage.
Valid range:
0to100.
- Returns:
- statusdict[str, Any]
Whether the resume point was set successfully.
Sample response:
{'error': [], 'results': True}.
- unfollow_artist(artist_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Artists: Unfavorite an artist.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- artist_idint or str; positional-only
Deezer ID of the artist.
Examples:
3265001,"330311461".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the artist was unfavorited successfully.
- unfollow_playlist(playlist_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Playlists: Unfavorite a playlist.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- playlist_idsint or str; positional-only
Deezer IDs of the playlists.
Examples:
13651021241,"1495242491","13651021241,1495242491",[13651021241, "1495242491"].- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the playlist was unfavorited successfully.
- unfollow_podcast(podcast_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Podcasts: Unfavorite a podcast.
Permissions
manage_librarypermissionManage a user’s library. Learn more.
delete_librarypermissionDelete items from a user’s library. Learn more.
- Parameters:
- podcast_idint or str; positional-only
Deezer ID of the podcast.
Examples:
436862,"2740882".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the podcast was unfavorited successfully.
- unfollow_user(unfollow_user_id: int | str, /, *, user_id: int | str = 'me') bool[source]¶
User > Followings: Unfollow a user.
Permission
manage_communitypermissionManage a user’s friends. Learn more.
- Parameters:
- unfollow_user_idint or str; positional-only
Deezer ID of the user to unfollow.
Example:
5395005364,"5395005364".- user_idint or str; keyword-only; default:
"me" Deezer ID of the user. If authenticated,
"me"can be used in lieu of a Deezer ID for the current user.Example:
5395005364,"5395005364","me".
- Returns:
- successbool
Whether the user was unfollowed successfully.
- update_playlist_details(playlist_id: int | str, /, *, name: str | None = None, description: str | None = None, public: bool | None = None, collaborative: bool | None = None) bool[source]¶
Playlist: Update the details of a playlist.
Permission
manage_librarypermissionManage a user’s library. Learn more.
Important
At least one of
name,description,public, orcollaborativemust be specified.- Parameters:
- playlist_idint or str; positional-only
Deezer ID of the playlist.
Examples:
13651021241,"1495242491".- namestr; keyword-only; optional
New playlist name.
- descriptionstr; keyword-only; optional
New playlist description.
- publicbool; keyword-only; optional
Whether the playlist is displayed on the current user’s profile.
- collaborativebool; keyword-only; optional
Whether other users can modify the playlist.
Note
collaborative=Truecan only be set on public playlists.
- Returns:
- successbool
Whether the playlist details were updated successfully.
- update_track_metadata(track_id: int | str, /, *, album: str | None = None, artist: str | None = None, title: str | None = None) bool[source]¶
Track: Update the metadata for a user-uploaded track.
Permission
manage_librarypermissionManage a user’s library. Learn more.
Important
At least one of
album,artist, ortitlemust be specified.- Parameters:
- track_idint or str; positional-only
Deezer ID of the track.
Examples:
-3140371023,"-3140371043".- albumstr; keyword-only; optional
Album name.
- artiststr; keyword-only; optional
Artist name.
- titlestr; keyword-only; optional
Track title.
- Returns:
- successbool
Whether the track metadata was updated successfully.