SearchApi

internal interface SearchApi(source)

Search API interface provides methods using which one can search for data from the Spotify API.

Each API returns ApiResponse.

Functions

Link copied to clipboard
abstract suspend fun searchAlbum(query: String, market: String?, limit: Int, offset: Int): ApiResponse<SearchAlbumResponse, ErrorBody>

Search album API searches for the albums.

Link copied to clipboard
abstract suspend fun searchArtist(query: String, market: String?, limit: Int, offset: Int): ApiResponse<SearchArtistResponse, ErrorBody>

Search artist API searches for the artists.

Link copied to clipboard
abstract suspend fun searchPlaylist(query: String, market: String?, limit: Int, offset: Int): ApiResponse<SearchPlaylistResponse, ErrorBody>

Search playlist API searches for the playlists.

Link copied to clipboard
abstract suspend fun searchTrack(query: String, market: String?, limit: Int, offset: Int): ApiResponse<SearchTrackResponse, ErrorBody>

Search track API searches for the tracks.