Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

artists

artists: Collection<string, SimplifiedArtist>

The artists who performed the track. Each artist object includes a link in href to more detailed information about the artist

availableMarkets

availableMarkets: string[]

A list of the countries in which the track can be played, identified by their ISO 3166-1 alpha-2 code

client

client: Client

The client that instantiated this class

discNumber

discNumber: number

The disc number (usually 1 unless the album consists of more than one disc)

duration

duration: number

The track length in milliseconds

explicit

explicit: boolean

Whether or not the track has explicit lyrics (true=yes it does, false=no it does not or unknown)

externalUrls

externalUrls: ExternalUrl

Known external URLs for this track

href

href: string

A link to the Web API endpoint providing full details of the track

id

id: string

The Spotify ID of the structure

isLocal

isLocal: boolean

Whether or not the track is from a local file

isPlayable

isPlayable: null | boolean

Part of the response when Track Relinking is applied. If true, the track is playable in the given market. Otherwise false

linkedFrom

linkedFrom: null | LinkedTrack

Part of the response when Track Relinking is applied and is only part of the response if the track linking, in fact, exists. The requested track has been replaced with a different track. The track in the linkedFrom object contains information about the originally requested track

name

name: string

The name of the track

previewUrl

previewUrl: null | string

A URL to a 30 second preview (MP3 format) of the track.

rawObjectType

rawObjectType: string

The raw object type returned by the api: album

restrictions

restrictions: null | TrackRestriction

Details about restrictions if any on the track

trackNumber

trackNumber: number

The number of the track. If an album has several discs, the track number is the number on the specified disc

uri

uri: string

The Spotify URI for the track

Methods

Private _patchArtists

fetchAudioFeatures

Legend

  • Constructor
  • Property
  • Method
  • Constructor
  • Property
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private property
  • Private method

Generated using TypeDoc