Skip to main content
Version: v2.8.5

Typedefs : Search : searchResult

searchResult object​

Parameter Type Description Optional
loadTypeLoadTypeThe load type of the result.
tracksTrack[]The array of tracks from the result
playlistPlaylistData{}The playlist info if the load type is 'playlist'.

playlistData object​

Parameter Type Description Optional
namestringThe playlist name
requesterUser | ClientUserRequester of playlist
playlistInfoPlaylistInfoData{}[]More playlist information.
durationnumberThe length of the playlist.
tracksTrack[]The songs of the playlist.

playlistInfoData object​

Parameter Type Description Optional
urlstringUrl to playlist
typestringType is always plaaylist in that case
artworkUrlstringArtworkUrl of playlist
totalTracksnumberNumber of total tracks in playlist
authorstringAuthor of playlist