TrackApi

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

Api Reference

Constructors

Link copied to clipboard
constructor(api: GenericSpotifyApi)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Get a detailed audio analysis for a single track identified by its unique Spotify ID.

Link copied to clipboard
suspend fun getAudioFeatures(vararg tracks: String): List<AudioFeatures?>

Get audio features for multiple tracks based on their Spotify IDs.

Get audio feature information for a single track identified by its unique Spotify ID.

Link copied to clipboard
suspend fun getTrack(track: String, market: Market? = null): Track?

Get Spotify catalog information for a single track identified by its unique Spotify ID.

Link copied to clipboard
suspend fun getTracks(vararg tracks: String, market: Market? = null): List<Track?>

Get Spotify catalog information for multiple tracks based on their Spotify IDs.