spotifywebapipython.models.audiobooksimplified

@export
class AudiobookSimplified:

Spotify Web API Simplified Audiobook object.

AudiobookSimplified(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 author(s) for the audiobook.

AvailableMarkets: list[str]

A list of the countries in which the audiobook can be played, identified by their ISO 3166-1 alpha-2 code.

Example: ["CA","BR","IT"]

The copyright statements of the audiobook.

Description: str

A description of the audiobook.

HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.

Edition: str

The edition of the audiobook.

Example: Unabridged

Explicit: bool

Whether or not the audiobook has explicit content (true = yes it does; false = no it does not OR unknown).

Known external URLs for the audiobook.

Href: str

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

Example: https://api.spotify.com/v1/audiobooks/7iHfbu1YPACw6oZPAFJtqe

HtmlDescription: str

A description of the audiobook. This field may contain HTML tags.

Id: str

The Spotify ID for the audiobook.

Example: 7iHfbu1YPACw6oZPAFJtqe

The cover art for the audiobook in various sizes, widest first.

ImageUrl: str

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

Languages: list[str]

A list of the languages used in the audiobook, identified by their ISO 639-1 code.

Example: [fr,en]

MediaType: str

The media type of the audiobook.

Example: audio

Name: str

The name of the audiobook.

The narrator(s) for the audiobook.

Publisher: str

The publisher of the audiobook.

TotalChapters: int

The number of chapters in the audiobook.

Type: str

The object type: audiobook.

Uri: str

The Spotify URI for the audiobook.

Example: spotify:audiobook:7iHfbu1YPACw6oZPAFJtqe

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.