spotifywebapipython.models.searchresultbase
Base class used to return basic search results common to all Spotify types.
This class is not part of the Spotify Web API specification.
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.
Known external URLs for this object.
The origin Spotify ID for the track.
The LinkedFrom.Id value is returned if present;
otherwise, the Id value is returned.
This is a helper property, and is not part of the Spotify Web API specification.
Images for the object.
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.
Returns the highest resolution order image from the Images list, if images
are defined; otherwise, null.
Whether or not the track is linked from another track.
If True, the LinkedFrom property contains track origin data;
If False, the LinkedFrom property is an empty dictionary.
This is a helper property, and is not part of the Spotify Web API specification.
Part of the response when Track Relinking is applied, and the requested track has been replaced with a different track. The track in the LinkedFrom object contains information about the originally requested track.
The origin Spotify URI for the track.
The LinkedFrom.Uri value is returned if present;
otherwise, the Uri value is returned.
This is a helper property, and is not part of the Spotify Web API specification.