RadiosAPI

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

Bases: DeezerResourceAPI

Radios 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

get_radio

Radio: Get Deezer catalog information for a radio.

get_radio_groups

Radio > Genres: Get Deezer catalog information for radios, grouped by their genre IDs.

get_radio_tracks

Radio > Tracks: Get Deezer catalog information for the tracks in a radio.

get_radios

Radio > Lists: Get Deezer catalog information for all genres' radios.

get_top_radios

Radio > Top: Get Deezer catalog information for the top radios on Deezer.

get_user_followed_radios

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

get_user_radio_recommendations

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

remove_saved_radio

User > Radios: Unfavorite a radio.

save_radio

User > Radios: Favorite a radio.

get_radio(radio_id: int | str, /) dict[str, Any][source]

Radio: Get Deezer catalog information for a radio.

Parameters:
radio_idint or str; positional-only

Deezer ID of the radio.

Examples: 31061, "37151".

Returns:
radiodict[str, Any]

Deezer metadata for the radio.

get_radio_groups() dict[str, Any][source]

Radio > Genres: Get Deezer catalog information for radios, grouped by their genre IDs.

Returns:
radiosdict[str, Any]

Deezer metadata for the grouped radios.

get_radio_tracks(radio_id: int | str, /, *, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Radio > Tracks: Get Deezer catalog information for the tracks in a radio.

Parameters:
radio_idint or str; positional-only

Deezer ID of the radio.

Examples: 31061, "37151".

limitint; keyword-only; optional

Maximum number of tracks to return.

Minimum value: 1.

API default: 40.

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 radio’s tracks.

get_radios(*, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Radio > Lists: Get Deezer catalog information for all genres’ radios.

Parameters:
limitint; keyword-only; optional

Maximum number of radios to return.

Minimum value: 1.

API default: 25.

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 all genres’ radios.

get_top_radios(*, limit: int | None = None, offset: int | None = None) dict[str, Any][source]

Radio > Top: Get Deezer catalog information for the top radios on Deezer.

Parameters:
limitint; keyword-only; optional

Maximum number of radios to return.

Minimum value: 1.

API default: 25.

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 top radios.

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

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.

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.