spotifywebapipython.models.tracksimplified
@export
class
TrackSimplified:
Spotify Web API SimplifiedTrack object.
TrackSimplified(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.
Artists: list[spotifywebapipython.models.artistsimplified.ArtistSimplified]
A list of artists who performed the track.
AvailableMarkets: list[str]
A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code.
Explicit: bool
Whether or not the track has explicit lyrics (true = yes it does; false = no it does not OR unknown).
ExternalUrls: spotifywebapipython.models.externalurls.ExternalUrls
Known external URLs for the track.
ImageUrl: str
Always returns null, as tracks currently do not support images.
Added for compatibility with other objects.
IsPlayable: bool
Part of the response when Track Relinking is applied.
If true, the track is playable in the given market. Otherwise false.
PreviewUrl: str
A link to a 30 second preview (MP3 format) of the track. Can be null.
Important policy note:
- Spotify Audio preview clips can not be a standalone service.
Restrictions: spotifywebapipython.models.restrictions.Restrictions
Included in the response when a content restriction is applied.