> ## Documentation Index
> Fetch the complete documentation index at: https://rockboxzig.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a track by id



## OpenAPI

````yaml /api-reference/openapi.json get /tracks/{id}
openapi: 3.1.0
info:
  title: Rockbox HTTP API
  version: 1.0.0
  summary: >-
    HTTP REST API for rockboxd — playback, library, playlists, devices,
    settings.
  description: >-
    Rockbox Daemon exposes its full feature surface over HTTP REST on port 6063
    (configurable via `ROCKBOX_TCP_PORT`). It complements the GraphQL API on
    :6062 and the gRPC API on :6061 — all three speak to the same in-process
    state.


    All handlers are defined in `crates/server/src/handlers/` and registered in
    `crates/server/src/lib.rs:run_http_server()`.
  contact:
    name: Rockbox Daemon
    url: https://github.com/tsirysndr/rockboxd
  license:
    name: GPL-2.0
    url: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
servers:
  - url: http://localhost:6063
    description: Default local rockboxd
security: []
tags:
  - name: Albums
  - name: Artists
  - name: Tracks
  - name: Search
  - name: Browse
  - name: Player
  - name: Playlist (queue)
  - name: Saved playlists
  - name: Smart playlists
  - name: Track stats
  - name: Devices
  - name: Settings
  - name: System
  - name: Bluetooth
paths:
  /tracks/{id}:
    get:
      tags:
        - Tracks
      summary: Get a track by id
      operationId: getTrack
      parameters:
        - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Track
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Track'
              example:
                album: Birds In The Trap Sing McKnight
                album_art: 89cb92505e4bbe0560bbcda6280a202a.jpg
                album_artist: Travis Scott
                album_id: cm5zvhb22009lwg6dnvablpbc
                artist: Travis Scott
                artist_id: cm5zvhb21008ewg6dvgqsa9rx
                bitrate: 320
                composer: >-
                  Mike Dean, Matthew Samuels, Tyler Williams, Jacques Webster,
                  Abel "The Weeknd" Tesfaye
                created_at: 1737064715
                disc_number: 1
                filesize: 8680548
                frequency: 44100
                genre_id: ''
                id: cm5zvhcnd02olwg6dxlapwu92
                is_remote: false
                length: 216991
                md5: 961b2782d0910101aa5d6c90b49f077e
                path: >-
                  /home/tsiry/Music/Travis Scott/[E]  Birds In The Trap Sing
                  McKnight [64819399] [2016]/14 - Travis Scott -
                  wonderful(Explicit).m4a
                title: wonderful
                track_number: 14
                updated_at: 1737064715
                year: 2016
                year_string: '2016-09-03'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    Track:
      type: object
      properties:
        id:
          type: string
        path:
          type: string
        title:
          type: string
        artist:
          type: string
        album:
          type: string
        album_artist:
          type: string
        composer:
          type: string
        genre:
          type: string
          nullable: true
        year:
          type: integer
          format: int64
          nullable: true
        year_string:
          type: string
          nullable: true
        track_number:
          type: integer
          format: int64
          nullable: true
        disc_number:
          type: integer
          format: int64
        length:
          type: integer
          format: int64
          description: Duration in milliseconds
        filesize:
          type: integer
          format: int64
        bitrate:
          type: integer
          format: int64
        frequency:
          type: integer
          format: int64
        album_id:
          type: string
        artist_id:
          type: string
        genre_id:
          type: string
        album_art:
          type: string
          nullable: true
        md5:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  responses:
    NotFound:
      description: Not found

````