Logo

Docs

Search

Search Responses

Response wrappers returned by bucketed and typed search endpoints.

SearchTopResponse

type SearchTopResponse = {
  data: {
    top?: (
      | Song
      | BaseSong
      | Album
      | BaseAlbum
      | Artist
      | BaseArtist
      | Playlist
      | BasePlaylist
      | Station
      | BaseStation
    )[];
    songs?: (Song | BaseSong)[];
    albums?: (Album | BaseAlbum)[];
    artists?: (Artist | BaseArtist)[];
    playlists?: (Playlist | BasePlaylist)[];
    stations?: (Station | BaseStation)[];
  };
};

SearchSongsResponse

type SearchSongsResponse = SongListResponse;

SearchAlbumsResponse

type SearchAlbumsResponse = AlbumListResponse;

SearchArtistsResponse

type SearchArtistsResponse = ArtistListResponse;

SearchPlaylistsResponse

type SearchPlaylistsResponse = PlaylistListResponse;

On this page