Load Tracks
Resolve audio tracks for use with player endpoints. Supports direct URLs, searches, and playlists.Query Parameters
The track identifier to load. Can be:
- Direct URL (YouTube, SoundCloud, etc.)
- Search query with prefix:
ytsearch:query,ytmsearch:query, orscsearch:query - Plugin-specific identifiers
Search Prefixes:
ytsearch:- Search YouTubeytmsearch:- Search YouTube Musicscsearch:- Search SoundCloud
Response
The type of result returned:
track- A single track was loadedplaylist- A playlist was loadedsearch- Search results were returnedempty- No matches founderror- Loading failed with an error
The result data. Structure varies based on
loadType.Load Result Types
Track Result
Returned when a single track is successfully loaded.Always
"track"The loaded track
Playlist Result
Returned when a playlist is successfully loaded.Always
"playlist"The loaded playlist
Search Result
Returned when using a search prefix.Always
"search"Array of track objects matching the search query
Empty Result
Returned when no matches are found for the identifier.Always
"empty"Empty object
Error Result
Returned when track loading fails with an error.Always
"error"The exception details
Decode Track
Decode a single base64 encoded track into its metadata.Query Parameters
The base64 encoded track data
Response
Returns a track object with decoded information.Decode Tracks (Batch)
Decode multiple base64 encoded tracks in a single request.Request Body
Array of base64 encoded track strings.Array of base64 encoded track data strings