---
title: "🛡️ Query music tracks."
method: GET
path: "/api/v1/music/tracks"
tags: ["Music"]
---

# 🛡️ Query music tracks.

`GET /api/v1/music/tracks`

<h3>🛡️ Requires Capabilities: <code>MusicTracks.Read</code></h3>

## Query parameters

- `metadata` boolean
- `release` boolean
- `artists` boolean
- `libraries` string[]
- `playCount` boolean
- `rating` boolean
- `releasedSince` string
- `favorites` boolean
- `hot` boolean
- `orderBy` 'createdAt' | 'title' | 'trackNumber' | 'discNumber' | 'duration' | 'bitrate' | 'playCount' | 'rating' | 'favoritedAt' | 'hotPlays'
- `take` number
- `skip` number
- `order` 'ASC' | 'DESC'

## Response `200`

## Other responses

- `401` — Possible reasons: The authorization token is invalid.
- `403` — Possible reasons: The user does not have sufficent capabilities.

## Changes

- **2026-08-02** `dea1e28b2160` — 2 info
  - added the new optional `query` request parameter `hot`
  - added the new enum value `hotPlays` to the `query` request parameter `orderBy`
- **2026-07-31** `4fb41c4e6a3d` — 2 info
  - added the new optional `query` request parameter `favorites`
  - added the new enum value `favoritedAt` to the `query` request parameter `orderBy`
- **2026-07-31** `2a174f35c7d2` — 1 info
  - added the new optional `query` request parameter `releasedSince`
- **2026-07-25** `2adb8814cbb2` — 2 info
  - added the new optional `query` request parameter `playCount`
  - added the new optional `query` request parameter `rating`
- **2026-04-12** `2a857a76a65d` — 1 info
  - added the new enum value `rating` to the `query` request parameter `orderBy`

[Full history](https://skmtc.dev/cardinalapps/apis/cardinal-media-server-api/changes/api/v1/music/tracks/get.md)

---

[API](https://skmtc.dev/cardinalapps/apis/cardinal-media-server-api.md) · [All operations](https://skmtc.dev/cardinalapps/apis/cardinal-media-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cardinalapps/cardinal-media-server-api/revisions/7b5e4555e84f/schema)
