Search Api
Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string. It is possible to have 0 results and no exception thrown with these methods. Check the size of items returned.
Constructors
SearchApi
Link copied to clipboard
Types
SearchType
Link copied to clipboard
Functions
search
Link copied to clipboard
suspend fun search(query: String, vararg searchTypes: SearchApi.SearchType, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null, includeExternal: Boolean? = null): SpotifySearchResult
Content copied to clipboard
searchAlbum
Link copied to clipboard
suspend fun searchAlbum(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimpleAlbum>
Content copied to clipboard
searchAllTypes
Link copied to clipboard
suspend fun searchAllTypes(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): SpotifySearchResult
Content copied to clipboard
searchArtist
Link copied to clipboard
suspend fun searchArtist(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<Artist>
Content copied to clipboard
searchPlaylist
Link copied to clipboard
suspend fun searchPlaylist(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<SimplePlaylist>
Content copied to clipboard
searchTrack
Link copied to clipboard
suspend fun searchTrack(query: String, limit: Int? = api.spotifyApiOptions.defaultLimit, offset: Int? = null, market: Market? = null): PagingObject<Track>
Content copied to clipboard
Properties
Inheritors
ClientSearchApi
Link copied to clipboard
Sources
(source)
Link copied to clipboard