Get list of all tracks in all playlists.
Query-parameters schema → GetTracksRequestPayload
Request
- Base URL: https://musicfun.it-incubator.app/api/1.0
- URL: https://musicfun.it-incubator.app/api/1.0/playlists/tracks
- Auth: API key in header api-key
Query parameters
Page number for pagination (starting from 1)
Page size for pagination (between 0 and 20)
Search term for filtering playlists by name
Field by which to sort tracks
Sort direction (ascending or descending)
Filter by tag IDs (multiple values allowed)
Filter by artist IDs (multiple values allowed)
Filter by user ID (track creator's ID)
If true, include unpublished tracks (drafts) of current user if userId === currentUserId
If true, return only tracks liked by the current authenticated user
Pagination type: "offset" for page-number pagination; "cursor" for keyset/seek-based pagination.
Base64-encoded cursor for keyset pagination. Used only if paginationType is "cursor".
Response
OK: Paginated list of tracks
Example response
{
"data": [
{
"type": "tracks",
"attributes": {
"attachments": [
{
"url": "https://cdn.example.com/uploads/track123/cover.jpg",
"contentType": "image/jpeg",
"originalName": "cover.jpg",
"fileSize": 34872
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.