UsersAPI

class minim.api.deezer.UsersAPI(client: APIClient, /)[source]

Bases: DeezerResourceAPI

Users API endpoints for the Deezer API.

Important

This class is managed by DeezerAPIClient and should not be instantiated directly.

Parameters:
clientminim.api._shared.APIClient

API client instance used to make HTTP requests.

Methods

add_playlist_tracks

Playlist > Tracks: Add tracks to a playlist.

create_playlist

User > Playlists: Create a playlist.

delete_playlist

Playlist: Delete a playlist.

delete_track

Track: Delete a user-uploaded track.

follow_artists

User > Artists: Favorite one or more artists.

follow_playlists

User > Playlists: Favorite one or more playlists.

follow_podcast

User > Podcasts: Favorite a podcast.

follow_user

User > Followings: Follow a user.

get_user

User: Get Deezer profile information for a user.

get_user_album_recommendations

User > Recommendations > Albums: Get Discogs catalog information for albums recommended for a user.

get_user_artist_recommendations

User > Recommendations > Artists: Get Discogs catalog information for artists recommended for a user.

get_user_entitlements

Options: Get the entitlements for a user on Deezer.

get_user_followed_artists

User > Artists: Get Deezer catalog information for a user's favorite artists.

get_user_followed_podcasts

User > Podcasts: Get Deezer catalog information for a user's favorite podcasts.

get_user_followed_radios

User > Radios: Get Deezer catalog information for a user's favorite radios.

get_user_followers

User > Followers: Get Deezer profile information for users following a specified user.

get_user_followings

User > Followings: Get Deezer profile information for users followed by a specified user.

get_user_mix_tracks

User > Flow: Get Deezer catalog information for the tracks in a user's Flow mix.

get_user_permissions

User > Permissions: Get the permissions granted to the Deezer API client by a user.

get_user_playlist_recommendations

User > Recommendations > Playlists: Get Discogs catalog information for playlists recommended for a user.

get_user_playlists

User > Playlists: Get Deezer catalog information for a user's playlists.

get_user_radio_recommendations

User > Recommendations > Radios: Get Discogs catalog information for radios recommended for a user.

get_user_recently_played

User > History: Get Deezer catalog information for the tracks recently played by a user on Deezer.

get_user_release_recommendations

User > Recommendations > Releases: Get Discogs catalog information for new releases recommended for a user.

get_user_saved_albums

User > Albums: Get Deezer catalog information for a user's favorite albums.

get_user_saved_tracks

User > Tracks: Get Deezer catalog information for a user's favorite tracks.

get_user_top_albums

User > Charts > Albums: Get Deezer catalog information for a user's top albums on Deezer.

get_user_top_artists

User > Charts > Artists: Get Deezer catalog information for a user's top artists on Deezer.

get_user_top_playlists

User > Charts > Playlists: Get Deezer catalog information for a user's top playlists.

get_user_top_tracks

User > Charts > Tracks: Get Deezer catalog information for a user's top tracks on Deezer.

get_user_track_recommendations

User > Recommendations > Tracks: Get Discogs catalog information for tracks recommended for a user.

get_user_tracks

User > Personal Songs: Get Deezer catalog information for a user's uploaded tracks.

remove_episode_resume_point

Episode > Bookmark: Remove a resume point for a podcast episode.

remove_saved_album

User > Albums: Unfavorite an album.

remove_saved_radio

User > Radios: Unfavorite a radio.

remove_saved_track

User > Tracks: Unfavorite a track.

reorder_playlist_tracks

Playlist > Tracks: Reorder tracks in a playlist.

save_albums

User > Albums: Favorite one or more albums.

save_radio

User > Radios: Favorite a radio.

save_tracks

User > Tracks: Favorite one or more tracks.

send_user_notification

User > Notification: Add a notification to a user's feed on Deezer.

set_episode_resume_point

Episode > Bookmark: Set a resume point for a podcast episode.

unfollow_artist

User > Artists: Unfavorite an artist.

unfollow_playlist

User > Playlists: Unfavorite a playlist.

unfollow_podcast

User > Podcasts: Unfavorite a podcast.

unfollow_user

User > Followings: Unfollow a user.

update_playlist_details

Playlist: Update the details of a playlist.

update_track_metadata

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_library permission

Manage 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_library permission

Manage 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Delete 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_library permission

Manage 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_library permission

Manage 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_library permission

Manage 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_community permission

Manage 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.

email permission

Access 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".

Returns:
profiledict[str, Any]

Deezer metadata for the user’s profile.

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.

Returns:
albumsdict[str, Any]

Page of Deezer metadata for the recommended albums.

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.

Returns:
artistsdict[str, Any]

Page of Deezer metadata for the recommended artists.

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".

Returns:
entitlements: dict[str, Any]

User’s entitlement.

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.

Returns:
artistsdict[str, Any]

Page of Deezer metadata for the user’s favorite artists.

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.

Returns:
podcastsdict[str, Any]

Page of Deezer metadata for the user’s favorite podcasts.

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.

Returns:
radiosdict[str, Any]

Page of Deezer metadata for the user’s favorite radios.

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.

Returns:
usersdict[str, Any]

Page of Deezer profile information for the user’s followers.

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.

Returns:
usersdict[str, Any]

Page of Deezer profile information for the followed users.

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".

Returns:
tracksdict[str, Any]

Deezer metadata for tracks in the user’s Flow mix.

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".

Returns:
permissions: dict[str, dict[str, bool]]

Permissions granted to the client by the user.

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.

Returns:
playlistsdict[str, Any]

Page of Deezer metadata for the recommended playlists.

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.

Returns:
playlistsdict[str, Any]

Page of Deezer metadata for the user’s playlists.

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.

Returns:
radiosdict[str, Any]

Page of Deezer metadata for the recommended radios.

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_history permission

Access 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.

Returns:
tracksdict[str, Any]

Page of Deezer metadata for the user’s recently played tracks.

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.

Returns:
releasesdict[str, Any]

Page of Deezer metadata for the recommended new releases.

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.

Returns:
albumsdict[str, Any]

Page of Deezer metadata for the user’s favorite albums.

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.

Returns:
tracksdict[str, Any]

Page of Deezer metadata for the user’s favorite tracks.

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.

Returns:
albumsdict[str, Any]

Page of Deezer metadata for the user’s top albums.

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.

Returns:
artistsdict[str, Any]

Page of Deezer metadata for the user’s top artists.

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.

Returns:
playlistsdict[str, Any]

Page of Deezer metadata for the user’s top playlists.

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.

Returns:
tracksdict[str, Any]

Page of Deezer metadata for the user’s top tracks.

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.

Returns:
tracksdict[str, Any]

Page of Deezer metadata for the recommended tracks.

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.

Returns:
tracksdict[str, Any]

Page of Deezer metadata for the user’s uploaded tracks.

remove_episode_resume_point(episode_id: int | str, /) dict[str, Any][source]

Episode > Bookmark: Remove a resume point for a podcast episode.

Permission

manage_library permission

Manage 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Manage 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_library permission

Manage 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_library permission

Manage 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_library permission

Manage 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_library permission

Manage 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: 0 to 100.

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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_library permission

Manage a user’s library. Learn more.

delete_library permission

Delete 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_community permission

Manage 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_library permission

Manage a user’s library. Learn more.

Important

At least one of name, description, public, or collaborative must 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=True can 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_library permission

Manage a user’s library. Learn more.

Important

At least one of album, artist, or title must 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.