ClientSearchApi

class ClientSearchApi(api: GenericSpotifyApi) : SearchApi

Get Spotify catalog information about artists, albums, tracks, playlists, episodes, or shows that match a keyword string.

Api Reference

Constructors

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

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
search
Link copied to clipboard
common
suspend fun search(query: String, vararg searchTypes: SearchApi.SearchType, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null, includeExternal: Boolean? = null): SpotifySearchResult
Get Spotify Catalog information about artists, albums, tracks and/or playlists that match a keyword string.
searchAlbum
Link copied to clipboard
common
suspend fun searchAlbum(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimpleAlbum>
Get Spotify Catalog information about albums that match the keyword string.
searchArtist
Link copied to clipboard
common
suspend fun searchArtist(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<Artist>
Get Spotify Catalog information about artists that match the keyword string.
searchEpisode
Link copied to clipboard
common
suspend fun searchEpisode(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimpleEpisode>
Get Spotify Catalog information about episodes that match the keyword string.
searchPlaylist
Link copied to clipboard
common
suspend fun searchPlaylist(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimplePlaylist>
Get Spotify Catalog information about playlists that match the keyword string.
searchShow
Link copied to clipboard
common
suspend fun searchShow(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimpleShow>
Get Spotify Catalog information about shows that match the keyword string.
searchTrack
Link copied to clipboard
common
suspend fun searchTrack(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<Track>
Get Spotify Catalog information about tracks that match the keyword string.
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