Introduction
Playlist tracks represent individual video entries within a playlist. Each track references a specific anime theme entry and video, and maintains links to the previous and next tracks in the playlist’s playback order.Track Structure
A playlist track contains:- track_id - Unique identifier for the track
- playlist_id - ID of the parent playlist
- entry_id - Reference to an anime theme entry
- video_id - Reference to a specific video
- previous_id - Link to the previous track (null for first track)
- next_id - Link to the next track (null for last track)
Endpoints
List Tracks
{playlist}- Playlist hashid
Get Track
{playlist}- Playlist hashid{track}- Track hashid
Add Track
entry_id(required) - Anime theme entry IDvideo_id(required) - Video IDprevious(optional) - Hashid of the track to insert afternext(optional) - Hashid of the track to insert before
- If
nextis provided (andpreviousis not), the track is inserted before that track - If
previousis provided (andnextis not), the track is inserted after that track - If neither is provided, the track is appended to the end of the playlist
- Cannot specify both
previousandnextsimultaneously
Update Track
entry_id(optional) - Update the anime theme entry referencevideo_id(optional) - Update the video referenceprevious(optional) - Move track after this tracknext(optional) - Move track before this track
Xp9Qm2Vk.
Example - Change Video:
Delete Track
Track Navigation
Forward from Track
Backward from Track
Including Related Data
Track endpoints support including related resources:video- The video resourcevideo.audio- The audio track associated with the videoanimethemeentry- The anime theme entryanimethemeentry.animetheme- The anime themeanimethemeentry.animetheme.anime- The animeanimethemeentry.animetheme.anime.images- Anime cover imagesanimethemeentry.animetheme.song- The songanimethemeentry.animetheme.song.artists- Song artistsplaylist- The parent playlistprevious- The previous track in ordernext- The next track in order
Authentication & Authorization
All track modification endpoints (POST, PUT/PATCH, DELETE) require:- Valid authentication token
- Ownership of the parent playlist
AllowPlaylistManagementfeature enabled- Playlist must not exceed track limit (checked for POST operations)
Limits
- Maximum tracks per playlist is enforced by the
PlaylistExceedsTrackLimitmiddleware - Track operations are locked at the playlist level to prevent race conditions during reordering
Related Resources
- Playlist Overview - Understanding playlist structure
- Playlist Management - Creating and managing playlists