TracksApis

class TracksApis(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Track domain API for Spotify Web API.

Covers track metadata, audio features/analysis, recommendations, and saved tracks.

Constructors

Link copied to clipboard
constructor(client: HttpClient = HttpClient(CIO) { install(ContentNegotiation) { json() } })

Functions

Link copied to clipboard

Checks whether tracks are saved in the current user's Your Library.

Link copied to clipboard
suspend fun getRecommendations(seeds: RecommendationSeeds, market: CountryCode? = null, limit: Int? = null, tunable: RecommendationTunableAttributes = RecommendationTunableAttributes()): SpotifyApiResponse<Recommendations>

Gets track recommendations from Spotify based on seeds and tuning parameters.

Link copied to clipboard
suspend fun getSeveralTracks(ids: List<String>, market: CountryCode? = null): SpotifyApiResponse<Tracks>

Gets multiple Spotify tracks by their IDs.

Link copied to clipboard

Gets audio features for multiple Spotify tracks.

Link copied to clipboard
suspend fun getTrack(id: String, market: CountryCode? = null): SpotifyApiResponse<Track>

Gets a Spotify track by track ID.

Link copied to clipboard

Gets full audio analysis for a Spotify track.

Link copied to clipboard

Gets audio features for a Spotify track.

Link copied to clipboard
suspend fun getUsersSavedTracks(market: CountryCode? = null, pagingOptions: PagingOptions = PagingOptions()): SpotifyApiResponse<UsersSavedTrack>

Gets the current user's saved tracks from Your Library.

Link copied to clipboard

Removes tracks from the current user's Your Library.

Link copied to clipboard

Saves tracks to the current user's Your Library.