TrackApi

class TrackApi(api: GenericSpotifyApi) : SpotifyEndpoint

Endpoints for retrieving information about one or more tracks from the Spotify catalog.

Api Reference

Constructors

TrackApi
Link copied to clipboard
common
fun TrackApi(api: GenericSpotifyApi)

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getAudioAnalysis
Link copied to clipboard
common
suspend fun getAudioAnalysis(track: String): AudioAnalysis
Get a detailed audio analysis for a single track identified by its unique Spotify ID.
getAudioFeatures
Link copied to clipboard
common
suspend fun getAudioFeatures(vararg tracks: String): List<AudioFeatures?>
Get audio features for multiple tracks based on their Spotify IDs.
suspend fun getAudioFeatures(track: String): AudioFeatures
Get audio feature information for a single track identified by its unique Spotify ID.
getTrack
Link copied to clipboard
common
suspend fun getTrack(track: String, market: Market? = null): Track?
Get Spotify catalog information for a single track identified by its unique Spotify ID.
getTracks
Link copied to clipboard
common
suspend fun getTracks(vararg tracks: String, market: Market? = null): List<Track?>
Get Spotify catalog information for multiple tracks based on their Spotify IDs.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

api
Link copied to clipboard
common
val api: GenericSpotifyApi
cache
Link copied to clipboard
common
val cache: SpotifyCache

Sources

(source)
Link copied to clipboard