APITrack
extends SimplifiedTrack
The structure containing the brief details of the Spotify Track.
Properties:
Name | Type | Description |
---|---|---|
album | SimplifiedAlbum | The album on which the track appears. |
artists | Artist[] | The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist. |
available_markets | string[] | A list of the countries in which the track can be played. OPTIONAL |
disc_number | number | The disc number (usually 1 unless the album consists of more than one disc). |
duration_ms | number | The track length in milliseconds. |
explicit | boolean | Whether or not the track has explicit lyrics ( true = yes it does; false = no it does not OR unknown). |
external_ids | ExternalID | Known external IDs for the track. |
external_urls | ExternalUrl | External URLs for this track. |
href | string | A link to the Web API endpoint providing full details of the track. |
id | string | The Spotify ID for the track. |
is_local | boolean | Whether or not the track is from a local file. |
is_playable | boolean | Part of the response when Track Relinking is applied. If true , the track is playable in the given market. Otherwise false. OPTIONAL |
linked_from | LinkedTrack | Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists. OPTIONAL |
name | string | The name of the track. |
popularity | number | The popularity of the track. The value will be between 0 and 100, with 100 being the most popular. |
preview_url | string | A URL to a 30 second preview (MP3 format) of the track. |
restrictions | Restriction[] | Included in the response when a content restriction is applied. |
track_number | number | The number of the track. If an album has several discs, the track number is the number on the specified disc. |
type | SpotifyType | The object type: “track”. |
uri | string | The Spotify URI for the track. |