spotifywebapipython.models.album

Spotify Web API Album object.

Album(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.

The copyright statements of the album.

Known external IDs for the album.

Genres: list[str]

A list of the genres the album is associated with. If not yet classified, the array is empty.

Example: ["Egg punk","Noise rock"]

Label: str

The label associated with the album.

Popularity: int

The popularity of the album.

The value will be between 0 and 100, with 100 being the most popular.

The tracks of the album.

This is a TrackPageSimplified object, meaning only 50 tracks max are listed per request.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.