spotifywebapipython.models.artistsimplified

@export
class ArtistSimplified:

Spotify Web API SimplifiedArtist object.

ArtistSimplified(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.
ExternalUrls: list

Known external URLs for this artist.

Href: str

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

Id: str

The Spotify ID for the artist.

Name: str

The name of the artist.

Type: str

The object type: artist.

Uri: str

The Spotify URI for the artist.

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.