Tracks Apis
Track domain API for Spotify Web API.
Covers track metadata, audio features/analysis, recommendations, and saved tracks.
Constructors
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
suspend fun getSeveralTracksAudioFeatures(ids: List<String>): SpotifyApiResponse<TracksAudioFeatures>
Gets audio features for multiple Spotify tracks.
Link copied to clipboard
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
suspend fun saveTracksForCurrentUser(body: SaveTracksForCurrentUserRequest): SpotifyApiResponse<Boolean>
Saves tracks to the current user's Your Library.