SpotifyApiSpotify LogoJS

Track track.d.ts#L57

extends SimplifiedTrack

The structure containing the brief details of the Spotify Track.

https://developer.spotify.com/documentation/web-api/reference/#object-trackobject

Properties:

NameTypeDescription
albumSimplifiedAlbumThe album on which the track appears.
artistsArtist[]The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist.
available_marketsstring[]A list of the countries in which the track can be played.
OPTIONAL
disc_numbernumberThe disc number (usually 1 unless the album consists of more than one disc).
duration_msnumberThe track length in milliseconds.
explicitbooleanWhether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown).
external_idsExternalIDKnown external IDs for the track.
external_urlsExternalUrlExternal URLs for this track.
hrefstringA link to the Web API endpoint providing full details of the track.
idstringThe Spotify ID for the track.
is_localbooleanWhether or not the track is from a local file.
is_playablebooleanPart of the response when Track Relinking is applied. If true , the track is playable in the given market. Otherwise false.
OPTIONAL
linked_fromLinkedTrackPart of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists.
OPTIONAL
namestringThe name of the track.
popularitynumberThe popularity of the track. The value will be between 0 and 100, with 100 being the most popular.
preview_urlstringA URL to a 30 second preview (MP3 format) of the track.
restrictionsRestriction[]Included in the response when a content restriction is applied.
track_numbernumberThe number of the track. If an album has several discs, the track number is the number on the specified disc.
typeSpotifyTypeThe object type: “track”.
uristringThe Spotify URI for the track.