SpotifyTrack
Represents a Spotify track with complete metadata.Unique Spotify identifier for the track
The name of the track
The object type, always set to ‘track’
Array of artists who performed the track
The album on which the track appears
List of country codes where the track is available
The disc number of the track (usually 1)
The track length in milliseconds
Whether the track is an episode (podcast)
Whether the track has explicit content
Full Spotify API URL for the track
Whether the track is from a local file
URL to a 30-second preview of the track, or null if not available
Whether the item is a track
The track number on the album
Spotify URI for the track (spotify:track:…)
Whether the track can be played in the current market
SpotifyArtist
Represents a Spotify artist.Unique Spotify identifier for the artist
The name of the artist
The object type, always set to ‘artist’
Array of artist images in various sizes
SpotifyAlbum
Represents a Spotify album.Unique Spotify identifier for the album
The name of the album
The object type, always set to ‘album’
Array of album cover art in various sizes
SpotifyPlaylist
Represents a Spotify playlist.Unique Spotify identifier for the playlist
The name of the playlist
The object type, always set to ‘playlist’
Array of playlist cover images in various sizes
SpotifyImage
Represents an image resource from Spotify.The source URL of the image
The image height in pixels
The image width in pixels
SpotifyItem
Union type representing any Spotify item that can appear in search results or the queue.type field ('track', 'artist', 'album', or 'playlist') that allows for type narrowing.