spotifywebapipython.models.playlistsimplified

@export
class PlaylistSimplified:

Spotify Web API PlaylistSimplified object.

PlaylistSimplified(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
Collaborative: bool

True if the owner allows other users to modify the playlist.

Description: str

The playlist description.

Only returned for modified, verified playlists; otherwise null.

Known external URLs for this playlist.

Href: str

A link to the Web API endpoint providing full details of the playlist.

Id: str

The Spotify user ID for the playlist.

Example: 5v5ETK9WFXAnGQ3MRubKuE

Images for the playlist.

The array may be empty or contain up to three images.
The images are returned by size in descending order.
Note: If returned, the source URL for the image (url) is temporary and will expire in less than a day.

ImageUrl: str

Gets the first image url in the Images list, if images are defined; otherwise, null.

Name: str

The name of the playlist.

The user who owns the playlist.

Public: bool

The playlist's public/private status:

  • true: the playlist is public.
  • false: the playlist is private.
  • null: the playlist status is not relevant.
SnapshotId: str

The version identifier for the current playlist.

Can be supplied in other requests to target a specific playlist version.

The tracks summary of the playlist.

Type: str

The object type: playlist.

Uri: str

The Spotify URI for the playlist.

Example: spotify:playlist:5v5ETK9WFXAnGQ3MRubKuE

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self, includeTitle: bool = True) -> str:

Returns a displayable string representation of the class.

Arguments:
  • includeTitle (str): True to include the class name title prefix.