BrowseApi

class BrowseApi(api: GenericSpotifyApi) : SpotifyEndpoint

Endpoints for getting playlists and new album releases featured on Spotify’s Browse tab.

Api Reference

Constructors

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

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getAvailableGenreSeeds
Link copied to clipboard
common
suspend fun getAvailableGenreSeeds(): List<String>
Retrieve a list of available genres seed parameter values for recommendations.
getCategory
Link copied to clipboard
common
suspend fun getCategory(categoryId: String, market: Market? = null, locale: Locale? = null): SpotifyCategory
Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
getCategoryList
Link copied to clipboard
common
suspend fun getCategoryList(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, locale: Locale? = null, market: Market? = null): PagingObject<SpotifyCategory>
Get a list of categories used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
getFeaturedPlaylists
Link copied to clipboard
common
suspend fun getFeaturedPlaylists(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, locale: Locale? = null, market: Market? = null, timestamp: Long? = null): FeaturedPlaylists
Get a list of Spotify featured playlists (shown, for example, on a Spotify player’s ‘Browse’ tab).
getNewReleases
Link copied to clipboard
common
suspend fun getNewReleases(limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimpleAlbum>
Get a list of new album releases featured in Spotify (shown, for example, on a Spotify player’s “Browse” tab).
getPlaylistsForCategory
Link copied to clipboard
common
suspend fun getPlaylistsForCategory(categoryId: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimplePlaylist>
Get a list of Spotify playlists tagged with a particular category.
getTrackRecommendations
Link copied to clipboard
common
suspend fun getTrackRecommendations(seedArtists: List<String>? = null, seedGenres: List<String>? = null, seedTracks: List<String>? = null, limit: Int? = api.spotifyApiOptions.defaultLimit, market: Market? = null, targetAttributes: List<TrackAttribute<*>> = listOf(), minAttributes: List<TrackAttribute<*>> = listOf(), maxAttributes: List<TrackAttribute<*>> = listOf()): RecommendationResponse
Create a playlist-style listening experience based on seed artists, tracks and genres.
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