SimpleAlbum

constructor(albumTypeString: String, availableMarketsString: List<String> = listOf(), externalUrlsString: Map<String, String>, href: String, id: String, uri: SpotifyUri, artists: List<SimpleArtist>, images: List<SpotifyImage>? = null, name: String, type: String, restrictions: Restrictions? = null, releaseDateString: String? = null, releaseDatePrecisionString: String? = null, totalTracks: Int? = null, albumGroupString: String? = null)(source)

Parameters

href

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

id

The Spotify ID for the album. are “album”, “single”, “compilation”, “appears_on”. Compare to album_type this field represents relationship between the artist and the album.

artists

The artists of the album. Each artist object includes a link in href to more detailed information about the artist. that an album is considered available in a market when at least 1 of its tracks is available in that market.

images

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

name

The name of the album. In case of an album takedown, the value may be an empty string.

type

The object type: “album” it might be shown as 1981-12 or 1981-12-15.

releaseDatePrecisionString

The precision with which release_date value is known: year , month , or day.

restrictions

Part of the response when Track Relinking is applied, the original track is not available in the given market, and Spotify did not have any tracks to relink it with. The track response will still contain metadata for the original track, and a restrictions object containing the reason why the track is not available: "restrictions" : {"reason" : "market"}