This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Developers

Information for Developers.

This page is for developers looking to learn more about Navidrome. For information about contributing to Navidrome, see the Navidrome Contribution Guide.

1 - Development Environment

How to setup your local development environment

This is just a summary on how to get started. If you are stuck or have any questions, please join our Discord server and give us a shout on the #dev channel

Any IDE with good support for GoLang and JavaScript/Node can be used for Navidrome development. We suggest using Visual Studio Code, which has excellent support for both languages.

Using VSCode + Dev Container (Docker)

The project includes a VSCode Dev Container configuration for using with Docker. The Dev Container provides all dependencies out-of-the-box. If you prefer to install all dependencies yourself, or cannot/don’t want to install Docker for any reason, see the other sections below for step by step instructions for your OS.

Unix-based systems (Linux, macOS, BSD, …)

  1. Install GoLang 1.26+
  2. Install Node 24
  3. Clone the project from https://github.com/navidrome/navidrome
  4. Install development tools: make setup. This may take a while to complete
  5. Test installation: make build. This command should create a navidrome executable in the project’s folder
  6. Create a navidrome.toml config file in the project’s folder with (at least) the following options:
# Set your music folder, preferable a specific development music library with few songs,
# to make scan fast
MusicFolder = "/path/to/music/folder"

# Make logging more verbose
LogLevel = "debug"

# This option will always create an `admin` user with the specified password, so you don't
# have to create a user every time you delete your dev database
DevAutoCreateAdminPassword = "password"

# Move the data/DB folder out of the root. `./data` folder is ignored by git
DataFolder = "./data"

# If you are developing in macOS with its firewall enabled, uncomment the next line to avoid 
# having to accept incoming network connections every time the server restarts:
# Address = "localhost"

To start Navidrome in development mode, just run make dev. This will start both the backend and the frontend in “watch” mode, so any changes will automatically be reloaded. It will open Navidrome automatically in your browser, using the URL http://localhost:4533/

If it does not open a new window in your browser, check the output for any error messages.

For more useful make targets, run make help.

Building it locally

To build Navidrome locally, follow these steps:

  1. Make sure you have all the dependencies installed as mentioned in the previous sections.
  2. Open a terminal and navigate to the project’s folder.
  3. Run the command make build to build the whole project. This will create a navidrome binary in the project’s folder

Building with Docker

If you want to build Navidrome for a different platform than your own dev environment, use make docker-build and specify the OS/Platform as parameters. Example for Windows/386:

make docker-build PLATFORMS=windows/386

To get a list of all available platforms, run make docker-platforms.

If you want to build a Docker image with your local changes, use make docker-image. The built image will be tagged locally as navidrome/navidrome:develop. This can be overridden by setting the DOCKER_TAG variable. Use IMAGE_PLATFORMS to specify the platforms you want to build the image for. Example:

make docker-image IMAGE_PLATFORMS=linux/amd64,linux/arm64 DOCKER_TAG=mytag

Windows (using WSL)

Even though it is possible to setup a fully working Navidrome development environment in Windows, we currently don’t provide instructions for that (feel free to contribute to these docs if you successfully set it up).

The (arguably better) alternative is to set up the project using Visual Studio Code and WSL, which effectively lets you develop in a Linux environment while still using your Windows system.

Installing WSL

  1. Make sure your Windows 10 is updated.
  2. Go to Settings > Turn Windows feature on or off > Windows subsystem for Linux.
  3. Go to Microsoft Store and download and install any Linux distro you like. For maximum compatibility, we recommend Ubuntu.
  4. Open Downloaded Linux distro, add username and password and then update it using: sudo apt update && sudo apt upgrade -y.
  5. Install needed compilers for building Navidrome: sudo apt install gcc g++
  6. This will create an Linux terminal where you can execute any Linux commands.

Make sure you are using WSL 2.0

Configuring Visual Studio Code

  1. Click on Extensions (present on leftmost column), install Remote Development extension and reload VSCode.
  2. Press F1, execute Remote-WSL: New Window. This will connect your installed Linux distro to VSCode.
  3. Now you can open a VSCode terminal and you’ll be able to run any Linux command.

Common Issues

  1. Because of this WSL issue you need to use your network IP address to be able to login to Navidrome in development mode. Otherwise you will get an Error: Unauthorized when logging in. You can see your network IP address after running make dev.

Now that you have a working instance of Linux running on your machine, follow the steps above for Unix-based system in the VSCode terminal. For more information on working with VSCode+WSL, check their documentation.

Troubleshooting

System limit for number of file watchers reached

If you encounter the Error: ENOSPC: System limit for number of file watchers reached, watch while running make dev on Linux systems, then your system is maxing out the number of files that can be “watched” for changes at one time.

To increase this limit, you can run the command echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p, which adds the line fs.inotify.max_user_watches=524288 to /etc/sysctl.conf and reloads sysctl so the change takes effect. this allows inotify to watch more files and folders for changes at a time.

More information about this can be found here

2 - Creating New Themes

How to create and contribute with new themes

Themes in Navidrome are simple Material-UI themes. They are basic JS objects, that allow you to override almost every visual aspect of Navidrome’s UI.

Steps to create a new theme:

  1. Create a new JS file in the ui/src/themes folder that exports an object containing your theme. Create the theme based on the ReactAdmin/Material UI documentation below. See the existing themes for examples.
  2. Add a themeName property to your theme. This will be displayed in the theme selector
  3. Add your new theme to the ui/src/themes/index.js file
  4. Start the application, your new theme should now appear as an option in the theme selector

Including your theme in Navidrome

Share your theme in Discussions → Ideas first, with lots of screenshots and a link to the branch in your fork. Navidrome only accepts pull requests for approved issues, so please wait for the approval before you open one.

Before submitting the pull request, please test your theme thoroughly and format it by running npm run prettier in the ui folder.

Resources for Material-UI theming

3 - Translations

Learn how you can contribute with translations for the UI

Translations are currently managed in POEditor. If you want to contribute new translations or help reviewing/proofreading any of the existing ones, please join our Discord server, channel #translations, for translation efforts coordination and to get further instructions.

Please do not open a pull request for translations. Translations from POEditor are imported into Navidrome automatically.

Translation Status

Languages with at least 70% of the terms translated:

LanguageCodeProgressLast Updated
eu flag Basqueeu93.36%2026-11-01
bs flag Bosnianbs79.07%2025-07-29
bg flag Bulgarianbg90.03%2026-02-21
ca flag Catalanca90.03%2026-02-20
zh-Hans flag Chinese (simplified)zh-Hans93.36%2026-09-16
zh-Hant flag Chinese (traditional)zh-Hant100.00%2026-12-03
da flag Danishda91.53%2026-03-24
nl flag Dutchnl97.34%2026-10-28
en flag Englishen100.00%2026-11-24
Esperanto flag Esperantoeo81.73%2026-04-03
et flag Estonianet99.83%2026-10-21
fi flag Finnishfi100.00%2026-12-01
fr flag Frenchfr99.83%2026-11-15
gl flag Galiciangl99.17%2026-10-02
de flag Germande99.83%2026-10-28
el flag Greekel99.34%2026-10-13
hi flag Hindihi79.07%2025-07-28
hu flag Hungarianhu99.83%2026-10-19
id flag Indonesianid91.86%2026-06-08
it flag Italianit92.19%2026-07-25
ja flag Japaneseja93.19%2026-09-06
ko flag Koreanko78.90%2025-11-07
pl flag Polishpl93.02%2026-08-27
pt-br flag Portuguese (BR)pt-br100.00%2026-11-24
ru flag Russianru99.67%2026-11-25
sr flag Serbiansr91.86%2026-05-19
sk flag Slovaksk99.34%2026-10-17
sl flag Sloveniansl90.03%2026-02-19
es flag Spanishes91.86%2026-06-05
sv flag Swedishsv94.85%2026-09-20
th flag Thaith92.19%2026-07-21
tr flag Turkishtr99.83%2026-11-08
uk flag Ukrainianuk91.86%2026-08-12
vi flag Vietnamesevi82.06%2026-05-18

4 - Adding Client Apps to the Catalog

How to add or update an app in the Compatible Client Apps catalog

Want to list your app in the Compatible Client Apps catalog? This guide explains how to submit your app or update an existing entry.

Prerequisites

  • Your app must support the OpenSubsonic, Subsonic, or Navidrome API
  • Your app must meet one of these availability requirements (apps that do not meet either will not be accepted):
    • Open source: the repository must have at least 15 stars (GitHub, GitLab, Codeberg, or any Gitea/Forgejo host)
    • Closed source: the app must be publicly available on an app store (e.g. Google Play, Apple App Store)
  • Images must be in WebP format, max 1200px (PNG/JPEG needs to be converted)
  • You’ll need a GitHub account to submit a pull request

Quick Start

  1. Fork the navidrome/website repository
  2. Create a folder for your app in assets/apps/ using kebab-case (e.g., my-awesome-app)
  3. Add an index.yaml file with your app’s metadata
  4. Add a thumbnail image and optional gallery screenshots
  5. Convert (or resize) images if needed:
    npm run convert:images my-awesome-app
    
  6. Validate your entry using the provided scripts:
    npm run validate:app my-awesome-app
    
  7. Submit a pull request

Folder Structure

Each app has its own folder under assets/apps/:

assets/apps/
  my-app/
    index.yaml        # App metadata (required)
    thumbnail.webp    # App thumbnail (required)
    screen1.webp      # Gallery screenshot (optional)
    screen2.webp      # Gallery screenshot (optional)

Creating index.yaml

Use the template at assets/apps/_template/index.yaml as a starting point.

Required Fields

FieldDescription
nameDisplay name of your app
urlOfficial app website or homepage
platformsAt least one platform (see below)
apiSupported API: OpenSubsonic, Subsonic, or Navidrome
descriptionBrief description (1-2 sentences)
screenshots.thumbnailFilename of thumbnail image (must NOT be a logo)
pricingPricing model: free, freemium, trial, or paid (see below)

Optional Fields

FieldDescription
repoUrlRepository URL (GitHub, GitLab) - used for release date tracking
isOpenSourceWhether the source code is publicly available (see below)
keywordsAdditional search terms (max 6) - not displayed on app card
screenshots.galleryArray of additional screenshot filenames
platforms.*.storePlatform-specific store URLs

Pricing

The pricing field controls the badge shown on the app card and the “Free Only” filter:

ValueMeaningBadge shown
freeNo cost at allnone
freemiumFree to download, has in-app purchasesIn-App Purchases
trialPurchase required, but a free trial is offeredFree Trial
paidPurchase requiredPaid

The “Free Only” filter matches free and freemium apps, since both can be used without paying. trial and paid apps are hidden, because they must be bought to keep using them.

Open Source vs Repository URL

The repoUrl field is used to fetch the app’s last release date. If your app has a GitHub or GitLab repository, include it for accurate “last updated” information.

The isOpenSource field controls whether the app displays an open source badge and appears in the “Open Source Only” filter:

  • If repoUrl is set and isOpenSource is omitted → app is treated as open source (default)
  • If repoUrl is set and isOpenSource is false → app is NOT treated as open source
  • If repoUrl is not set → app is NOT treated as open source (regardless of isOpenSource)

Use isOpenSource: false when your app has a GitHub/GitLab repository for releases or issue tracking, but the source code is not publicly available under an open source license.

Supported Platforms

  • android - Google Play Store
  • ios - Apple App Store
  • macos - macOS (optionally with Mac App Store link)
  • tvos - Apple TV (optionally with App Store link)
  • windows - Windows
  • linux - Linux
  • freebsd - FreeBSD
  • web - Web browser
  • docker - Docker container (optionally with Docker Hub link)
  • other - CLI tools, other platforms

An App Store link opens the iPhone version of the app, unless it selects a platform. Add ?platform=mac to the macos link and ?platform=tv to the tvos link, for example https://apps.apple.com/app/my-app/id123456789?platform=mac.

Example index.yaml

name: My Music App
url: https://example.com/my-app
repoUrl: https://github.com/example/my-app  # Optional - used for release tracking
# isOpenSource: false  # Uncomment if repo exists but source code is not public

platforms:
  android:
    store: https://play.google.com/store/apps/details?id=com.example.myapp
  ios:
    store: https://apps.apple.com/app/my-app/id123456789
  web: true
  linux: true

api: OpenSubsonic

description: A beautiful music player with offline support and gapless playback.

screenshots:
  # This is the image shown in the main catalog page. Must not be a logo or icon
  thumbnail: thumbnail.webp
  gallery:
    - screen1.webp
    - screen2.webp

keywords:
  - dlna
  - chromecast
  - carplay
  - android auto

Image Guidelines

Thumbnail (Required)

  • Max size: 1200×1200px
  • Aspect ratio: Square preferred
  • Format: WebP (PNG/JPEG needs to be converted)
  • Max size: 1200×1200px
  • Aspect ratio: Any
  • Format: WebP (PNG/JPEG needs to be converted)
  • File size: Keep under 500KB per image

Processing Images

If your images don’t meet the guidelines, run the conversion script:

npm run convert:images my-app

This automatically converts images to WebP format, resizes them to max 1200px, and optimizes file sizes.

Validating Your Entry

Before submitting, validate your app entry:

npm run validate:app my-app

The validation checks:

  • YAML syntax and structure
  • Required fields are present
  • APIs are correctly specified
  • The folder name is kebab-case
  • Image files exist and are WebP, max 1200px, and under 500KB
  • App Store links for macOS and Apple TV select the right platform
  • URLs are valid and reachable

Updating an Existing App

To update an existing app entry:

  1. Find the app folder in assets/apps/
  2. Modify the index.yaml or replace images as needed
  3. Run validation and submit a pull request

If you want to use “Navidrome” in your app’s name or show the Navidrome logo in your app, read the name and logo guidelines first.

Questions?

If you have questions about adding your app, please open an issue on GitHub.

5 - Navidrome API v1

Reference documentation for Navidrome’s own API

Navidrome API v1 is Navidrome’s own HTTP API. It is separate from the Subsonic API.

Open the Navidrome API v1 Reference

The reference is generated from the OpenAPI spec in the Navidrome repository, so it always matches the latest development version of Navidrome.

A running Navidrome server also publishes its own spec at /api/v1/openapi.json and /api/v1/openapi.yaml.

6 - Subsonic and OpenSubsonic API

Everything a client developer needs to know about the Subsonic and OpenSubsonic APIs in Navidrome

Navidrome implements the Subsonic API version 1.16.1 and the OpenSubsonic API, which extends it.

This page lists what Navidrome supports and where it behaves differently. It does not repeat the parameters and response formats of each endpoint. For those, follow the endpoint links to the OpenSubsonic documentation.

Quick reference

ItemValue
URLhttps://<server>/rest/<endpoint>. The .view suffix is optional
URL with a base pathhttps://<server>/<path>/rest/<endpoint>, when the server uses the BaseUrl option
Subsonic API version1.16.1
Response formatsXML (default), JSON (f=json), and JSONP (f=jsonp)
Request methodsGET, or POST with an application/x-www-form-urlencoded body of up to 10 MB
CORSAll origins are allowed. Scripts can read the X-Content-Duration and X-Total-Count response headers
Demo serverSee the demo page

Each response identifies the server. Use type to detect Navidrome, and serverVersion to know its version:

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "navidrome",
    "serverVersion": "0.65.0 (b2debbb3)",
    "openSubsonic": true
  }
}

To know what a server can do, call getOpenSubsonicExtensions instead of comparing versions. It needs no credentials, so you can call it before the user logs in.

Authentication

All endpoints except getOpenSubsonicExtensions require the v (API version) and c (client name) parameters. Navidrome accepts any value in v.

Navidrome supports these authentication methods:

MethodParametersNotes
API keyapiKeyRecommended. If you also send u, p, t, or s, Navidrome returns error 43
Token and saltu, t, st is md5(password + salt). It does not work with an API key in place of the password
Passwordu, pp is plain text, or hex-encoded with the enc: prefix
API key as passwordu, pp is the API key. This lets users log in with an API key in clients that have only a password field
Reverse proxySet by the proxyWith externalized authentication, the proxy identifies the user and Navidrome ignores the credentials in the request. This does not apply to JSONP requests, or to web clients on a different origin. These must send normal credentials

API keys

Users create and revoke their keys in the Navidrome web UI, in the user menu, under Players & API keys. A key has the nds_ prefix followed by 22 letters and digits. It does not expire.

Each key belongs to one player. To get the username that owns a key, call tokenInfo.

Failed logins

Navidrome limits failed logins. By default, after 5 failures in 20 seconds from the same IP address with the same username or API key, it rejects all attempts until the 20 seconds end. Correct credentials are rejected too, with the same error as wrong ones. Do not retry automatically after error 40 or 44.

Players

Navidrome registers each client as a player. Users can configure these settings for each of their players in the web UI:

  • The transcoding format and the maximum bit rate
  • Whether plays are sent to external services such as Last.fm and ListenBrainz
  • Whether the real file path is returned in path

With an API key, the player is the one that owns the key. With the other methods, Navidrome finds the player by the username, the c parameter, and the User-Agent header. If one of them changes, the user can get a new player and lose these settings:

  • Use the same c value in all requests, and do not put a version number in it.
  • Use the Name/version form in the User-Agent header, for example MyApp/1.2.3, and do not change the name. Navidrome compares only the name and the operating system, so a new version keeps the same player.

Two devices with the same username, client, and user agent can share one player. Each player has only one entry in getNowPlaying, so use a different API key on each device to keep them separate.

Errors

API errors have the HTTP status 200 and an error element in the response. Navidrome uses these error codes:

CodeWhen
0Invalid parameter value, or an internal error. See the message
10A required parameter is missing. Some endpoints return 0 or 70 instead
40Wrong username, password, or token, or too many failed logins
43apiKey was sent together with other credentials
44Invalid or revoked API key, or too many failed logins
50The user does not have permission, the feature is disabled, or the playlist is read-only
70The item does not exist, or it is in a library that the user cannot access

Navidrome does not return the codes 20, 30, 41, 42, and 60, or the helpUrl field.

Some requests fail with an HTTP status instead. Most of these responses have no Subsonic response body, so check the HTTP status before you parse the response:

StatusWhen
400getTranscodeStream was called without a required parameter
404The endpoint does not exist, the song in getTranscodeStream does not exist, or no sonic similarity plugin is active
405getTranscodeDecision was not called with POST
410Navidrome will not implement the endpoint, or the transcodeParams in getTranscodeStream is no longer valid
429stream or download reached the transcoding limit of the server. Wait for the time in the Retry-After header, then try again
429getCoverArt received too many requests at the same time. This response has no Retry-After header. Send only a few image requests at the same time, for example 4
500getTranscodeStream could not start the stream. This includes the transcoding limit
501The endpoint is not implemented, or the feature is disabled in the server

How Navidrome behaves

IDs

All IDs are strings, except for the music folder IDs, which are integers. Do not convert the string IDs to integers, and do not assume a format or a length.

Music folders

Each music folder is a Navidrome library. Users only see content from the libraries that they can access.

You can send musicFolderId more than once to select many libraries. If the user cannot access one of the selected libraries, most endpoints return error 70.

Browsing

Navidrome organizes music by tags and does not support browsing by folder. getIndexes and getMusicDirectory simulate a directory tree with artists, albums, and songs. Prefer the ID3 endpoints: getArtists, getArtist, and getAlbum.

  • getIndexes and getArtists return only album artists. When there are none, for example on a new server, they return error 70 and not an empty list.
  • getArtist returns only the albums where the artist is an album artist. The server can also include the albums where the artist is a track artist, with the Subsonic.ArtistParticipations option.
  • The path of a song is simulated too, for example Artist/Album/01-02 - Song.mp3. To get the real path, the user must turn on Report Real Path in the player settings. The server can turn it on for new players with the Subsonic.DefaultReportRealPath option.

Cover art

  • Send the coverArt value to getCoverArt exactly as you received it. Do not build it from the item ID.
  • When coverArt is missing, the item has no artwork. You can skip the request and show your own placeholder.
  • The value can end with a hash of the image. In that case it changes when the image changes, so you can cache the image by its coverArt value.
  • The Cache-Control header tells you if you can cache the image. When the item has no artwork, getCoverArt can return a placeholder image with Cache-Control: no-store.
  • Songs in an album with disc numbers can return the artwork of the disc. Each entry in discTitles also has its own coverArt.
  • The URLs in artistImageUrl and in the getArtistInfo and getAlbumInfo responses need no authentication.

Play counts and scrobbling

stream and download never count as a play. Navidrome counts a play, and sends it to external services, in one of these ways:

  • With scrobble: when you call it with submission=true, which is the default. Your client decides when a song counts as played. To submit offline plays, send the original time of each one.
  • With reportPlayback: when you report the stopped state with a positionMs of at least 50% of the song or 4 minutes, whichever comes first. Also send stopped when a song plays to the end, with the final position. If you do not send stopped, the play does not count.

If you use both for the same play, it counts twice. To combine them, send ignoreScrobble=true in reportPlayback and submit the play with scrobble. This is the recommended pattern for clients that also play offline. reportPlayback shows what the user is playing now, and scrobble submits online and offline plays in the same way.

Navidrome has no minimum song length, so do not skip short songs. Last.fm does not accept songs of 30 seconds or less, and by default Navidrome does not send them to Last.fm.

scrobble returns ok even if the song does not exist.

Without new reports, a playing song leaves getNowPlaying a few seconds after its expected end, and a paused song leaves after 30 minutes.

Streaming

stream uses the first rule in this table that matches the request. The player settings can force a different format or a lower bit rate.

RequestResult
No format and no maxBitRateThe original file
format=rawThe original file. This ignores maxBitRate and the player settings
Only maxBitRate, lower than the originalTranscoded to the format in the DefaultDownsamplingFormat option (default opus)
Only maxBitRate, equal to or above the originalThe original file
format equal to the format of the originalThe original file, unless its bit rate is above maxBitRate
format=flac with maxBitRateCan be transcoded to DefaultDownsamplingFormat, because FLAC cannot have a maximum bit rate
Any other format that the server can transcode toTranscoded to that format. By default, the server has mp3, opus, aac, and flac
format that the server does not haveTranscoded to DefaultDownsamplingFormat

Always check the Content-Type header of the response, because the format can be different from the one you requested.

  • Seeking. Check the Accept-Ranges header of the response. If it is bytes, send Range requests. If it is none, the song is being transcoded and the response has no Content-Length. To seek, send a new request with timeOffset, in seconds.

  • Check if timeOffset was applied. Navidrome ignores timeOffset when it sends the original file. There is no error, and the file starts at the beginning. To find out what you received:

    • Accept-Ranges: none: the song is being transcoded, and timeOffset was applied.
    • Accept-Ranges: bytes, and Content-Length is equal to the size of the song: this is the original file, and timeOffset was ignored. Seek with a Range request.
    • Accept-Ranges: bytes, and Content-Length is different from size: this is a transcoded song from the server cache, and timeOffset was applied.

    To know this before you request the stream, use transcoding decisions.

  • Length. With estimateContentLength=true, a transcoded response has an estimated Content-Length. The real size can be different. The X-Content-Duration header has the duration of the full song, in seconds.

Transcoding decisions

With the transcoding extension, your client describes what it can play, and the server decides between the original file and a transcoded stream:

  1. Call getTranscodeDecision with POST. Put the normal parameters in the URL and the client capabilities in a JSON body. Set the Content-Type header to application/json. If the body is sent as a form, Navidrome cannot read it and returns error 0.
  2. Check canDirectPlay and canTranscode in the response. If both are false, the server cannot send the song in a format that your client can play. The response has the reason in errorReason, and has no transcodeParams. Do not continue.
  3. Call getTranscodeStream with the transcodeParams from the response. To seek in a transcoded stream, send offset, in seconds.
  4. If getTranscodeStream returns the HTTP status 410, get a new decision. A decision is valid for 48 hours, and only while the file does not change.

The current limits are:

  • mediaType must be song.
  • The only streaming protocol is http. Navidrome accepts hls in a profile, but never selects it.
  • Navidrome ignores the transcoding profiles with the AAC codec. This is intentional, because AAC transcoding is not reliable in some players. Include at least one profile with another codec, such as mp3 or opus. This limit does not apply to stream with format=aac.
  • The transcoding format and the maximum bit rate in the player settings also apply to the decision.

Server options that change responses

The administrator of the server can change these options:

OptionDefaultEffect on the API
AutoTranscodeDownloadfalseWhen true, download without format uses the transcoding format in the player settings, if there is one
EnableDownloadstrueWhen false, download returns error 50 and downloadRole is false
EnableSharingtrueWhen false, the sharing endpoints return the HTTP status 501 and shareRole is false
Jukebox.EnabledfalseWhen false, jukeboxControl returns the HTTP status 501 and jukeboxRole is false
PreferSortTagsfalseWhen true, sortName has the value of the sort tags in the files, if they exist. This also changes the order of artists and albums in lists, and the index letter of each artist in getArtists and getIndexes
Subsonic.AppendSubtitletrueAdds the subtitle to the song title, for example Song (Live)
Subsonic.AppendAlbumVersiontrueAdds the version to the album name, for example Album (Deluxe Edition)
Subsonic.ArtistParticipationsfalseAdds the albums where the artist is a track artist to getArtist and getMusicDirectory
Subsonic.DefaultReportRealPathfalseWhen true, new players receive the real file path in path
Subsonic.EnableAverageRatingtrueWhen false, averageRating is not returned
Subsonic.LegacyClients"DSub"Clients (the c parameter) that do not receive the OpenSubsonic fields
Subsonic.MinimalClients"SubMusic"Clients (the c parameter) that receive only the basic fields of songs and playlists
Transcoding.MaxConcurrent and Transcoding.MaxConcurrentPerUser0When set, Navidrome limits how many transcodes can run at the same time

OpenSubsonic support

Extensions

getOpenSubsonicExtensions returns these extensions:

ExtensionVersionsAddsNotes
apiKeyAuthentication1apiKey parameter, tokenInfoSee Authentication
formPost1Parameters in a POST bodyUse it for long lists of IDs
indexBasedQueue1getPlayQueueByIndex, savePlayQueueByIndexSupports a queue that has the same song more than once
playbackReport1reportPlayback, more fields in getNowPlayingOnly for songs. See Play counts and scrobbling
songLyrics1, 2getLyricsBySongIdVersion 2 adds word timing and translations with enhanced=true. line.end is not returned
sonicSimilarity1getSonicSimilarTracks, findSonicPathOnly when a plugin that provides it is active, such as AudioMuse-AI
topSongsByArtistId1id parameter in getTopSongs
transcodeOffset1timeOffset parameter in streamSee Streaming
transcoding1getTranscodeDecision, getTranscodeStreamSee Transcoding decisions

Navidrome does not support the getPodcastEpisode extension.

Response fields

Navidrome returns these OpenSubsonic fields:

ResponseFieldsNot returned
Child (song)albumArtists, artists, bitDepth, bpm, channelCount, comment, contributors, displayAlbumArtist, displayArtist, displayComposer, explicitStatus, genres, groupings, isrc, mediaType, moods, movements, musicBrainzId, played, replayGain, samplingRate, sortName, worksbaseGain and fallbackGain in replayGain
AlbumID3artists, discTitles, displayArtist, explicitStatus, genres, isCompilation, moods, musicBrainzId, originalReleaseDate, played, recordLabels, releaseDate, releaseTypes, sortName, userRating, version
ArtistID3musicBrainzId, roles, sortNamedisambiguation
NowPlayingEntryplaybackRate, positionMs, state
playlistreadonly, validUntil
internetRadioStationcoverArt

In JSON, most of these fields are always present. When the library has no data for a field, its value is empty: "", 0, [], or {}. In XML, empty fields are omitted. played and validUntil are present only when they have a value.

The original Subsonic fields are different. In JSON, they are omitted when they are empty, and this includes lists. For example, a search without results returns "searchResult3": {}, and an empty playlist has no entry.

These are the main fields that Navidrome returns and that are not in the OpenSubsonic specification:

ResponseFields
AlbumID3averageRating
ArtistID3averageRating, userRating. Also, roles can have the value maincredit, for an artist that is an album artist or a track artist
scanStatuslastScan (date of the last scan), folderCount, scanType, elapsedTime (in nanoseconds), and error (message from the last scan, if it failed)

Endpoints

The notes show only the differences from the specification and the extra features. If an endpoint has no notes, it works as the OpenSubsonic documentation describes.

System

EndpointNotes
ping
getLicenseThe license is always valid
getOpenSubsonicExtensionsNeeds no credentials
tokenInfoWorks with all authentication methods

Browsing endpoints

EndpointNotes
getMusicFoldersReturns the libraries that the user can access
getIndexesDoes not return shortcut or child elements. See Browsing
getMusicDirectoryid is the ID of an artist or an album. See Browsing
getGenres
getArtistsSee Browsing
getArtistSee Browsing
getAlbum
getSong
getArtistInfo, getArtistInfo2The data comes from external services. With includeNotPresent=true, similar artists that are not in the library have the ID -1
getAlbumInfo, getAlbumInfo2The data comes from external services. The two endpoints return the same response
getSimilarSongs, getSimilarSongs2Accept the ID of a song, album, artist, or playlist. When external services do not return enough songs, Navidrome adds songs from the library. count is at most 500
getTopSongsWithout results from external services, it returns the songs of the artist that the user starred or rated with 5 stars, sorted by play count
getSonicSimilarTracksOnly when the sonicSimilarity extension is available
findSonicPathOnly when the sonicSimilarity extension is available

Album and song lists

EndpointNotes
getAlbumList, getAlbumList2Support all type values. size is at most 500. The X-Total-Count response header has the total number of albums in the list
getRandomSongssize is at most 500
getSongsByGenrecount is at most 500
getNowPlayingReturns what all users are playing, but only songs from the libraries that the user can access
getStarred, getStarred2Do not return starred playlists

Searching

EndpointNotes
search2, search3See the rules below
  • An empty query returns everything. Use search3 with an empty query, songCount, and songOffset to sync the full library. The artists in the results include composers and other contributors. To find the album artists, check roles.
  • Navidrome searches for words that start with the text in query. Lucene syntax is not supported.
  • A query with a single letter or digit returns no results.
  • Chinese, Japanese, and Korean text matches any part of a name, not only the start of a word.
  • If query is a MusicBrainz ID, Navidrome returns the items that have that ID.
  • There is no maximum for artistCount, albumCount, and songCount. To skip one type of result, set its count to 0.

Playlists

EndpointNotes
getPlaylistsReturns the playlists of the user and the public playlists of other users. Administrators get all playlists. Ignores username
getPlaylistA smart playlist is read-only. Navidrome updates its songs when its owner calls this endpoint after validUntil
createPlaylistWith playlistId, replaces all songs and ignores name. Without songId, the playlist keeps its songs. To empty a playlist, use updatePlaylist. Accepts up to 50,000 songs
updatePlaylistRemoves songs before it adds new ones. songIndexToRemove starts at 0 and refers to the list that getPlaylist returns. Accepts up to 50,000 new songs
deletePlaylist

Only the owner and administrators can change a playlist. readonly is true when the user is not the owner, or when the songs cannot be changed.

Media retrieval

EndpointNotes
streamSee Streaming
downloadAccepts the ID of a song, album, artist, or playlist. Albums, artists, and playlists are sent as a ZIP file. To transcode, send format and, optionally, bitrate. maxBitRate is ignored, and so is bitrate without format. Without format, the server sends the original files, unless AutoTranscodeDownload is true and the player has a transcoding format
getTranscodeDecisionSee Transcoding decisions
getTranscodeStreamSee Transcoding decisions
getCoverArtWith square=true, returns a square image. See Cover art
getLyricstitle must be the title in the file tags, without the subtitle that Navidrome adds to the song title. Prefer getLyricsBySongId
getLyricsBySongIdReturns lyrics from the file tags, from files such as .lrc and .ttml, and from plugins
getAvatarReturns a placeholder image. If Gravatar is enabled in the server, it redirects to the Gravatar of the authenticated user, and returns error 50 for other users

Media annotation

EndpointNotes
star, unstarid accepts the ID of a song, album, artist, or playlist. IDs that do not exist are ignored
setRatingAccepts the ID of a song, album, artist, or playlist
scrobbleWith submission=false, you can send the current position, in seconds. See Play counts and scrobbling
reportPlaybackSee Play counts and scrobbling

Bookmarks and play queue

EndpointNotes
getBookmarks
createBookmarkOnly for songs. The bookmarkPosition field of the song has the same value that you send in position, in milliseconds
deleteBookmark
getPlayQueuecurrent is a string ID, not an integer. When the queue is empty, changed is 0001-01-01T00:00:00Z
savePlayQueueCall it without id to clear the queue
getPlayQueueByIndex
savePlayQueueByIndexCall it without id to clear the queue

Each user has one play queue. All clients of the user share it, and the two pairs of endpoints read and write the same queue.

Sharing

These endpoints are available when EnableSharing is true.

EndpointNotes
getSharesReturns the shares of the user. Administrators get all shares
createShareAccepts the IDs of songs, albums, artists, or playlists, but all IDs must be of the same type. Without expires, the share expires after the time in DefaultShareExpiration (default one year). To allow downloads, send downloadable=true
updateShareAlso accepts downloadable. Parameters that you do not send keep their values. expires=0 does not remove the expiration date
deleteShare

Internet radio

EndpointNotes
getInternetRadioStations
createInternetRadioStationOnly for administrators
updateInternetRadioStationOnly for administrators
deleteInternetRadioStationOnly for administrators

Jukebox

EndpointNotes
jukeboxControlAvailable when Jukebox mode is enabled. By default, only administrators can use it. Check jukeboxRole in getUser

User management

EndpointNotes
getUserusername must be the authenticated user. Other users return error 50, even for administrators
getUsersOnly for administrators. Returns only the authenticated user

Use only these roles to show or hide features: adminRole, coverArtRole, downloadRole, jukeboxRole, shareRole, and streamRole. The other roles are always false, even when the feature works. For example, all users can create playlists, but playlistRole is false.

Library scanning

EndpointNotes
getScanStatusReturns extra fields
startScanOnly for administrators. fullScan=true starts a full scan. To scan only some folders, send one or more target parameters with the format <library ID>:<folder path>. The path is relative to the library, for example target=1:Artist/Album

Not implemented

Navidrome is a music server, so it will not implement the video endpoints.

EndpointsHTTP statusStatus
getPodcasts, getNewestPodcasts, refreshPodcasts, createPodcastChannel, deletePodcastChannel, deletePodcastEpisode, downloadPodcastEpisode501May be added later
createUser, updateUser, deleteUser, changePassword501May be added later
getPodcastEpisode404Not supported
search (use search3)410Will not be added
getVideos, getVideoInfo, getCaptions, hls410Will not be added
getChatMessages, addChatMessage410Will not be added

Get help

  • To follow the OpenSubsonic work in Navidrome, see the tracking issue. It can include features that are not in a release yet.
  • To report a compatibility problem, open an issue.
  • To list your client on this site, see Adding apps.

7 - Jellyfin API (Experimental)

Everything a client developer needs to know about the Jellyfin API in Navidrome

Navidrome implements the part of the Jellyfin API that a music client needs. A client made for Jellyfin can log in, browse, search, play, and manage playlists and favorites, without a Jellyfin server.

This page lists what Navidrome supports and where it behaves differently. It does not repeat the parameters and response formats of each endpoint. For those, follow the endpoint links to the Jellyfin documentation.

To turn on the API and connect a client as a user, see Jellyfin clients.

Quick reference

ItemValue
AvailabilityOff by default. The administrator turns it on with the Jellyfin.Enabled option
URLhttps://<server>/jellyfin/<endpoint>
URL with a base pathhttps://<server>/<path>/jellyfin/<endpoint>, when the server uses the BaseUrl option
Jellyfin version reported12.1.0, in the Version field of GET /System/Info/Public
Response formatJSON, with field names in PascalCase
CaseEndpoint paths, query parameter names, and IDs are not case-sensitive. The /jellyfin prefix, the values in Filters, and the field names in the authorization header are
Lists in the querySeparated by commas (Ids=a,b) or repeated (Ids=a&Ids=b)
Times and positionsIn ticks. One second is 10,000,000 ticks
Bit ratesIn bits per second
CORSAll origins are allowed. Scripts cannot read the Accept-Ranges, Content-Range, and Retry-After response headers

Version is the version of the Jellyfin API, not the version of Navidrome. ProductName is always Jellyfin Server. ServerName has the name and version of Navidrome, but the administrator can change it.

Navidrome returns the HTTP status 404 with the body {} for each endpoint that it does not have. Treat this response as “feature not available”, and do not stop or retry. See the list of supported endpoints.

Example

These commands log in, find a song, and play it:

BASE=http://localhost:4533/jellyfin
CLIENT='Client="MyApp", Device="Laptop", DeviceId="a1b2c3", Version="1.0.0"'

# Log in and keep the token
TOKEN=$(curl -s "$BASE/Users/AuthenticateByName" \
  -H "Authorization: MediaBrowser $CLIENT" \
  -H 'Content-Type: application/json' \
  -d '{"Username":"admin","Pw":"password"}' | jq -r .AccessToken)
AUTH="Authorization: MediaBrowser $CLIENT, Token=\"$TOKEN\""

# List the libraries of the user
curl -s -H "$AUTH" "$BASE/UserViews" | jq '.Items[] | {Name, Id}'

# Get the first song, in alphabetical order
SONG=$(curl -s -H "$AUTH" \
  "$BASE/Items?IncludeItemTypes=Audio&Recursive=true&SortBy=SortName&Limit=1" | jq -r '.Items[0].Id')

# Download the song as a 192 kbps MP3
curl -s -H "$AUTH" -o song.mp3 "$BASE/Audio/$SONG/stream.mp3?audioBitRate=192000"

Authentication

Call POST /Users/AuthenticateByName with the Navidrome username and password, or use Quick Connect. Both return an AccessToken. Send it in all other requests, in one of these ways:

MethodExampleNotes
Authorization headerMediaBrowser Client="MyApp", Device="Pixel 8", DeviceId="a1b2c3", Version="1.0.0", Token="<token>"Recommended, because it also identifies the player. Put all values in double quotes. The Emby scheme works too
X-Emby-Authorization headerSame value as the Authorization headerUse it when a proxy needs the Authorization header
X-Emby-Token or X-MediaBrowser-Token header<token>Does not identify the player
api_key or ApiKey query parameter?api_key=<token>For media players and WebSockets that cannot send headers. Does not identify the player, unless you also send the header

These endpoints need no token:

These rules also apply:

  • The token does not expire. It stops working when the password or the username changes, or when the user is deleted. There is no logout endpoint. To log out, delete the token from the device.
  • The token selects the user. Navidrome ignores the userId in the path and in the query, and uses the user of the token. There are two exceptions. The rating and UserData endpoints return 403 when you try to change the data of another user. POST /QuickConnect/Authorize lets an administrator approve a code for another user.
  • Navidrome API keys do not work here. An API key with the nds_ prefix is only for the Subsonic API.
  • Externalized authentication does not work here. Navidrome ignores the user header of a reverse proxy. The client must log in with a Navidrome password or with Quick Connect.

Login limit

Navidrome limits login requests. By default, it accepts 5 requests in 20 seconds from the same IP address, and successful logins and Quick Connect requests count too. After that, it returns 429. Wait for the number of seconds in the Retry-After header, then try again.

Quick Connect

With Quick Connect, the user approves a 6-digit code on another device, and does not type the password on the new one:

  1. Call GET /QuickConnect/Enabled. If it returns false, do not show the option.
  2. Call POST /QuickConnect/Initiate. The authorization header must have Client, Device, DeviceId, and Version. Show the Code from the response to the user, and keep the Secret.
  3. Call GET /QuickConnect/Connect with the secret until Authenticated is true. This call does not count in the login limit, so you can repeat it every second.
  4. Call POST /Users/AuthenticateWithQuickConnect with the body {"Secret": "<secret>"}. The response is the same as in a login with a password.

A code expires 10 minutes after it is created, or when Navidrome restarts. Then GET /QuickConnect/Connect returns 404, and you must start again. Each secret works for one login only.

To let a user approve the code of another device in your client, call POST /QuickConnect/Authorize. Navidrome returns 404 for an unknown code, and 409 for a code that is already approved. This endpoint has its own limit, with the same values as the login limit.

Players

Navidrome registers each client as a player. Users can configure these settings for each of their players in the web UI, in the user menu, under Players & API keys:

  • The transcoding format and the maximum bit rate
  • Whether plays are sent to external services such as Last.fm and ListenBrainz

Navidrome finds the player by the user and by the Client and Device values in the authorization header:

  • Send the same Client and Device values in all requests. If one of them changes, the user gets a new player and loses these settings. DeviceId and Version do not change the player.
  • Two devices with the same Client and Device values share one player, even when DeviceId is different. If the user can give a name to the device, send that name in Device.
  • When a request has no Client and no DeviceId, there is no player. The stream ignores the settings of the player. Plays count in Navidrome, but they are not sent to external services.

Errors

Error responses use the HTTP status. Most of them have a plain text body, not JSON.

StatusWhen
400The JSON body is missing or not valid, a value is not valid, or the image is too large
401The token is missing or no longer valid, the username or password is wrong, or Quick Connect is turned off
403The user cannot change the playlist or the data of another user, or cannot upload images
404 with the body {}Navidrome does not have this endpoint, or does not accept this method
404 with another bodyThe item does not exist, the ID is not valid, or the user cannot access the item
409The Quick Connect code is already approved
413The request has too many songs for a playlist, or the JSON body is too large
429Too many login requests, or too many image or list requests at the same time. Only the login and Quick Connect limits send the Retry-After header
500Internal error. Navidrome also returns 500 when it reaches its transcoding limit, so you can try again later
501You tried to change the image of an item that is not a playlist

Navidrome sends long lists while it reads them from the database. If an error occurs in the middle, the status is still 200, but the JSON is incomplete. Discard a response that you cannot parse. Do not use it to remove songs from a local copy of the library.

How Navidrome behaves

IDs

Item IDs are GUIDs with 32 lowercase hexadecimal digits and no dashes. Navidrome also accepts them with dashes or in uppercase.

The ID of an item in this API is different from its ID in the Subsonic API.

Libraries

Each Navidrome library that the user can access is a CollectionFolder with the CollectionType music. GET /UserViews returns them. To get the content of one library, send its ID in ParentId. Without ParentId, you get the content of all the libraries of the user.

Navidrome returns 404 for an item in a library that the user cannot access. Do not send the ID of such a library in ParentId. A list of only albums or only songs is then empty, but the other lists ignore ParentId and return the content of all the libraries of the user.

Playlists are not in a library. GET /UserViews does not return a folder for them. To list the playlists, call GET /Items with IncludeItemTypes=Playlist.

Browsing

Use GET /Items for most lists:

To getSend
AlbumsIncludeItemTypes=MusicAlbum and Recursive=true
SongsIncludeItemTypes=Audio and Recursive=true
Album artistsIncludeItemTypes=MusicArtist, or call GET /Artists/AlbumArtists
All track artistsCall GET /Artists
GenresIncludeItemTypes=MusicGenre, or call GET /Genres
PlaylistsIncludeItemTypes=Playlist
The albums of an artistParentId=<artist>, or AlbumArtistIds=<artist> with IncludeItemTypes=MusicAlbum
The albums where an artist is only a guestContributingArtistIds=<artist> and IncludeItemTypes=MusicAlbum
The songs of an artistArtistIds=<artist>, IncludeItemTypes=Audio, and Recursive=true
The songs of an album, in disc and track orderParentId=<album>
The songs of a playlistParentId=<playlist>, or call GET /Playlists/{playlistId}/Items
Items by IDIds=<id>,<id>. The order is the same as in the request. Navidrome skips the IDs that it does not find, and ignores StartIndex and Limit

Without IncludeItemTypes, the result depends on ParentId: the songs of an album or a playlist, or the albums of an artist or a library. Without any parameters, Navidrome returns the libraries. When ParentId is a library, songs are returned only with Recursive=true.

With more than one type in IncludeItemTypes, Navidrome sorts each type on its own. With Limit, it takes one item of each type in turn. Without Limit, it returns all items of the first type, then all items of the next.

ParentId has these limits:

  • With more than one type, it works only with the ID of a library. Navidrome ignores the ID of an album or an artist, and returns items from all the libraries of the user.
  • With IncludeItemTypes=Audio, the ID of an artist gives an empty list. Use ArtistIds.
  • With the ID of a playlist, Navidrome ignores filters and SortBy, and always returns the songs in the order of the playlist.

Filters

GET /Items supports these filters:

ParameterApplies to
AlbumArtistIds, ArtistIdsAlbums and songs. For songs, both find the track artists and the album artists
ContributingArtistIdsAlbums and songs. For songs, it is the same as ArtistIds
AlbumIdsSongs
GenreIdsAlbums, songs, and artists
StudioIdsAlbums and songs. A studio is a record label. GET /Studios lists them
YearsAlbums and songs
Filters with IsFavorite, IsFavoriteOrLikes, IsPlayed, or IsUnplayedAlbums, songs, artists, and playlists
IsFavorite, IsPlayedAlbums, songs, artists, and playlists
SearchTermAlbums, songs, and artists. See Search

Navidrome ignores all other filters, and returns the items as if you did not send them. For example, NameStartsWith, Genres (by name), Artists (by name), Tags, ExcludeItemIds, and MinDateLastSaved have no effect. There is no way to get only the items that changed after a date.

If you send more than one of the artist filters, Navidrome uses only one: AlbumArtistIds, then ArtistIds, then ContributingArtistIds.

If an ID in a filter is not a valid GUID, Navidrome returns 404.

Sorting

SortBy accepts a list of keys, and SortOrder accepts one direction for each key. Navidrome supports these keys:

TypeSortBy keys
MusicAlbumSortName, Name, Album, Artist, AlbumArtist, DateCreated, DatePlayed, PlayCount, CommunityRating, PremiereDate, ProductionYear, Runtime, Random
AudioThe same keys, IndexNumber, and ParentIndexNumber
MusicArtistSortName, Name, DateCreated, DatePlayed, PlayCount, CommunityRating, AlbumCount, SongCount, Random
PlaylistSortName, Name, DateCreated, Random
MusicGenreSortName, Name, Random
  • Navidrome ignores the keys that it does not support.
  • CommunityRating sorts by the rating that the user gave.
  • IndexNumber and ParentIndexNumber both sort by album, disc, and track.
  • Always send SortBy when you load a list in pages. The default order of albums and songs is not alphabetical.

Pages and full sync

Without Limit, Navidrome returns all the items, except in a search. To sync a library, you can read it in a single request, because Navidrome sends the list while it reads it. Navidrome limits how many of these lists it sends at the same time, and the other requests wait. Read the responses without pauses, and do not send many list requests in parallel.

Navidrome always returns TotalRecordCount, even with EnableTotalRecordCount=false.

Send SearchTerm to GET /Items, GET /Artists, or GET /Artists/AlbumArtists:

  • Without IncludeItemTypes, the results have only albums.
  • A SearchTerm with a single letter or digit returns no results.
  • Without Limit, Navidrome returns up to 100 items. The maximum is 2,000.
  • TotalRecordCount is not the number of matches. If there are more matches after the current page, it is the number of items so far plus 1.
  • Navidrome ignores Filters, IsFavorite, and IsPlayed in a search.
  • Artist results include all artists, such as composers. Navidrome ignores GenreIds in an artist search.
  • Playlist and genre lists ignore SearchTerm, and return all playlists and genres.

Item fields

Navidrome returns most fields in all responses. It returns these fields only when you ask for them in Fields:

FieldNotes
MediaSourcesOnly for songs. Has the file size, the bit rate, and the audio streams
SortNameUse it to build an alphabetical index. It matches the order of SortBy=SortName
StudiosOnly for albums. Has the record labels
PrimaryImageAspectRatioOnly when Navidrome knows the size of the image
Genres, TagsWith these values in Fields, the lists are present even when they are empty. Tags is always empty

GET /Items/{itemId} follows the same rule. It does not return MediaSources if you do not ask for it.

Navidrome never returns People, ProviderIds, Overview, Etag, or DateLastMediaAdded. This means that MusicBrainz IDs and artist biographies are not available in this API.

These fields can be different from what you expect:

  • AlbumArtists in songs and albums has only one artist. Artists and ArtistItems in songs have all the track artists.
  • Codec in MediaStreams can be missing or in uppercase, for example MP3. Use Container to know the file type.
  • HasLyrics in lists is true only for lyrics in the file tags. See Lyrics.
  • NormalizationGain is the ReplayGain track gain in songs, and the album gain in albums. Songs also have the album gain in AlbumNormalizationGain. The values are in dB.
  • PremiereDate is always a full date. If the file has only the year, the date is January 1.
  • DateCreated depends on the RecentlyAddedBy option.
  • UserData.PlaybackPositionTicks is always 0, because Navidrome does not save the position in a song.

Images

  • Find the image. Use ImageTags.Primary and the ID of the item. If a song has no ImageTags.Primary, use AlbumPrimaryImageTag and AlbumId. If both are missing, the item has no artwork, and you can show your own placeholder.
  • Cache the image. Send the image tag in the tag parameter. When it matches the current image, the response can be cached for one year. The tag changes when the image changes.
  • Missing artwork. GET /Items/{itemId}/Images/{imageType} returns a placeholder image with the status 200 and the header Cache-Control: no-store.
  • Size. width, height, maxWidth, maxHeight, fillWidth, and fillHeight set the maximum size. Navidrome keeps the aspect ratio, and does not make small images larger.
  • Ignored parameters. The image type and the image index in the path, format, and quality have no effect. Each item has one image.
  • Parallel requests. Send only a few image requests at the same time, for example 4. Navidrome returns 429 when too many requests wait.

ImageBlurHashes is missing until Navidrome processes the image for the first time.

Streaming

EndpointUse it to
GET /Items/{itemId}/File, GET /Items/{itemId}/DownloadGet the original file. The player settings have no effect
GET /Audio/{itemId}/universalTell Navidrome which formats your client can play, and let it decide
GET /Audio/{itemId}/stream, GET /Audio/{itemId}/stream.{container}Get a specific format
GET /Audio/{itemId}/main.m3u8Get a transcoded song in an HLS playlist

The player settings can force a different format or a lower bit rate in the last three, when the request has the full authorization header. To always get the original file from universal and stream, send static=true.

POST /Items/{itemId}/PlaybackInfo does not decide how to play a song. Navidrome ignores the DeviceProfile in the request, always returns one media source, and always sets SupportsDirectPlay to true. The TranscodingUrl in the response is the URL of the original file, with the token in it. It starts with /Audio, so add it to the end of the base URL, after /jellyfin.

Universal

Send the formats that your client can play in Container, and the format that you want for the other songs in TranscodingContainer and AudioCodec. For example, Container=flac,mp3,ogg|opus&TranscodingContainer=mp3&AudioCodec=mp3&MaxStreamingBitrate=320000.

SongResult
In a format from Container, and not above MaxStreamingBitrateThe original file
Any other songTranscoded to AudioCodec, or to TranscodingContainer when there is no AudioCodec
Any other song, when Navidrome cannot transcode it to that formatThe original file, even if your client cannot play it, or if it is above MaxStreamingBitrate

Navidrome cannot transcode the song in these cases:

  • The server does not have the format.
  • AudioCodec is a list. Send only one value.
  • The format is flac, and the original is in a lossy format such as MP3, or MaxStreamingBitrate is too low for FLAC.

To be safe, use mp3, aac, or opus.

Navidrome ignores TranscodingProtocol. It never returns HLS here.

Stream

The format is the first of these values that you send: the container parameter, the extension in the path, or audioCodec. The bit rate is audioBitRate or maxStreamingBitrate. Navidrome uses the first rule in this table that matches the request:

RequestResult
static=trueThe original file
No format and no bit rateThe original file
Only a bit rate, lower than the originalTranscoded to the format in the DefaultDownsamplingFormat option (default opus)
Only a bit rate, equal to or above the originalThe original file
The format of the original, and no bit rate or one that is not lower than the originalThe original file
flac, with a bit rateTranscoded to DefaultDownsamplingFormat
Any other request with a format that the server hasTranscoded to that format. By default, the server has mp3, opus, aac, and flac
A format that the server does not have, or a list of formatsTranscoded to DefaultDownsamplingFormat

Always check the Content-Type header of the response, because the format can be different from the one you requested.

Seeking

Navidrome ignores startTimeTicks, so a stream always starts at the beginning of the song. To seek, send a Range request. This works when the response has the Accept-Ranges: bytes header:

  • Original files always accept Range requests.
  • A song that is being transcoded does not. It has the Accept-Ranges: none header and no Content-Length.
  • A transcoded song accepts Range requests when it is complete in the server cache.

A HEAD request tells you what to expect. It does not start a transcode. For a transcoded song, the HEAD response always has Accept-Ranges: none, even when the song is in the cache.

A script in a web page from another origin cannot read Accept-Ranges. Send the Range request and look at the status instead. 206 means that the response starts at the position you asked for. 200 means that it starts at the beginning of the song.

HLS

GET /Audio/{itemId}/main.m3u8 returns a playlist with a single segment, which is the full transcoded song. Use audioCodec=mp3 or audioCodec=aac. With any other codec, Navidrome uses AAC. audioBitRate sets the bit rate. The segment URL has the token in it, so the media player does not need to send headers.

The player settings have these effects on HLS:

  • A forced format replaces audioCodec, even if HLS players cannot play it, such as opus.
  • The maximum bit rate applies only when the request for the segment also has the full authorization header.

Play counts and scrobbling

Streams and downloads never count as a play. Your client must report playback:

  1. When a song starts, call POST /Sessions/Playing with ItemId.
  2. While it plays, call POST /Sessions/Playing/Progress with ItemId, PositionTicks, and IsPaused. Also call it when the user pauses, continues, or seeks.
  3. When it ends, or when the user skips it, call POST /Sessions/Playing/Stopped with ItemId and the final PositionTicks.

Navidrome counts a play, and sends it to external services, when the Stopped report has a PositionTicks of at least 50% of the song or 4 minutes, whichever comes first. The Playing and Progress reports only show what the user is playing now.

  • Without PositionTicks in the Stopped report, the play does not count.
  • Each Stopped report that passes the limit counts as one play. Do not send it twice.
  • The time of the play is the time of the report. There is no way to send offline plays with their original time.
  • These endpoints always return 204, even if the song does not exist.
  • Send the full authorization header in these requests. Without Client and DeviceId, the play is not sent to external services.

You cannot mark a song as played or unplayed. The UserPlayedItems endpoints do not exist, and Navidrome ignores Played and PlayCount in POST /UserItems/{itemId}/UserData.

Favorites and ratings

Songs, albums, artists, and playlists can have a favorite mark and a rating.

Navidrome stores ratings from 1 to 5 stars. Jellyfin ratings go from 0 to 10, so Navidrome divides them by 2 and rounds the result:

You sendNavidrome storesRating in the response
likes=true5 stars10
likes=false1 star2
Rating: 74 stars8
Rating: 0, or DELETE /UserItems/{itemId}/RatingNo ratingNot present

Likes in the response is true when the rating is 4 or 5 stars.

POST /UserItems/{itemId}/Rating also accepts a rating parameter, from 0 to 10. Without likes or rating, it returns 400. POST /UserItems/{itemId}/UserData changes only Rating, Likes, and IsFavorite. It keeps the values that you do not send.

Playlists

The user can see their own playlists and the public playlists of other users. Administrators can see and change all playlists. Other users can change only their own playlists.

  • Add songs. Ids accepts the IDs of songs, albums, artists, and playlists. Navidrome replaces each album, artist, or playlist with its songs. Send position to insert the songs at an index that starts at 0. One request accepts up to 50,000 songs.
  • Remove or move songs. Use the PlaylistItemId that GET /Playlists/{playlistId}/Items returns for each song. The song ID does not work, and returns 404.
  • Read the list again after each change. PlaylistItemId is the position of the song in the playlist. When you add, remove, or move a song, the IDs of the other songs change. To remove many songs, send all their EntryIds in one request.
  • Update. POST /Playlists/{playlistId} keeps the values that you do not send. If you send Ids, it replaces all the songs. An empty Ids list removes all the songs.
  • Create. Send the values in a JSON body. Navidrome does not read them from the query.
  • Delete. Call DELETE /Items/{itemId}. It returns 404 for items that are not playlists.
  • Change the cover. Call POST /Items/{itemId}/Images/{imageType} with a JPEG, PNG, WebP, or GIF image. The body can be the file or its Base64 text. The administrator can limit this with the EnableArtworkUpload and MaxImageUploadSize options.
  • Read-only songs. You cannot change the songs of a smart playlist, or of a playlist that Navidrome keeps in sync with a file, such as an .m3u file. The response is 403. You can change the name.

CanEdit in GET /Playlists/{playlistId}/Users is false for these playlists. It can be true for a playlist of another user, and then a change returns 403 or 404, or 500 when you change the cover.

Lyrics

GET /Audio/{itemId}/Lyrics returns lyrics from the file tags, from files such as .lrc, and from plugins. Lines have Start only when the lyrics are synced. They can also have Cues, with the time of each word. If there are no lyrics, the response is 404.

To know if a song has lyrics, call POST /Items/{itemId}/PlaybackInfo and look for a stream with the type Lyric in MediaStreams. This finds more lyrics than HasLyrics, but it can miss lyrics from a slow plugin. To be sure, request the lyrics.

Similar items and Instant Mix

The results come from external services and plugins, and have only items that are in the library.

  • An Instant Mix of a song starts with that song.
  • Limit is 20 by default. The maximum is 100 for similar items and 500 for an Instant Mix.
  • Navidrome waits up to 10 seconds for the external services. After that, it returns an empty list, or only the first song of the mix. The results can be ready if you try again later, so do not cache an empty list for a long time.
  • If the services find nothing, an Instant Mix of an album, artist, playlist, or genre has random songs from that item. The other lists can be empty. It is not an error.
  • Navidrome ignores Fields here, so the items never have MediaSources or SortName. To get these fields, send the IDs to GET /Items in Ids.

Internet radio

GET /LiveTv/Channels returns the internet radio stations as items with the type TvChannel and the ChannelType Radio. To play a station:

  1. Call POST /Items/{itemId}/PlaybackInfo with the ID of the station.
  2. Play the URL in MediaSources[0].Path. It is the address of the station, not of Navidrome, so do not send the token to it.

The stream endpoints return 404 for a station. Navidrome ignores playback reports for stations.

Sonic similarity

Navidrome has endpoints that are compatible with the AudioMuse-AI plugin for Jellyfin. They work when a sonic similarity plugin is active in Navidrome, such as AudioMuse-AI.

Call GET /AudioMuseAI/info first. If AvailableEndpoints is empty, there is no active plugin, and the other endpoints return 404.

EndpointParametersNotes
GET /AudioMuseAI/infoVersion is the version of Navidrome
GET /AudioMuseAI/healthReturns 200 with an empty body when a plugin is active
GET /AudioMuseAI/similar_tracksitem_id, n, eliminate_duplicatesn is 10 by default, and at most 100. eliminate_duplicates is true by default, and returns only one song of each artist. distance has the similarity value from the plugin, so keep the order of the response and do not sort by it
GET /AudioMuseAI/find_pathstart_song_id, end_song_id, max_stepsmax_steps is 25 by default, and at most 100. Songs have tempo when the file has the BPM. They do not have energy, key, mood_vector, scale, or other_features

WebSocket

GET /socket accepts WebSocket connections. Send the token in api_key. Navidrome sends ForceKeepAlive when the connection opens, and answers each KeepAlive message. Send KeepAlive every 60 seconds. Navidrome closes the connection when it receives no message for 90 seconds.

Navidrome does not send events, such as library changes, and does not support remote control.

Server discovery

When the administrator turns on Jellyfin.AutoDiscovery, Navidrome answers the Jellyfin discovery message (who is JellyfinServer?) on UDP port 7359. Address in the answer has the full URL, with the /jellyfin path:

{
  "Address": "http://192.168.1.10:4533/jellyfin",
  "Id": "ed2f719f6b294c7e9205ec53247cf704",
  "Name": "Navidrome 0.65.0 (b2debbb3)",
  "EndpointAddress": null
}

If the user types the address, do not remove the path from it. The API works only with the /jellyfin path.

Server options that change responses

The administrator of the server can change these options:

OptionDefaultEffect on the API
Jellyfin.EnabledfalseWhen false, the API does not exist
Jellyfin.ServerName"Navidrome <version>"The value of ServerName
Jellyfin.ExposedPublicUsersEmptyThe users that GET /Users/Public returns
Jellyfin.QuickConnecttrueWhen false, GET /QuickConnect/Enabled returns false, and the other Quick Connect endpoints return 401
Jellyfin.AutoDiscoveryfalseTurns on server discovery
Jellyfin.MaxConcurrentStreamsHalf the database connections, at least 2How many lists Navidrome sends at the same time
AuthRequestLimit and AuthWindowLength5 and 20sThe login limit
DefaultDownsamplingFormat"opus"The default transcoding format. See Stream
PreferSortTagsfalseWhen true, SortName and the order of lists use the sort tags in the files, if they exist
RecentlyAddedBy"scan"The date in DateCreated
Transcoding.MaxConcurrent and Transcoding.MaxConcurrentPerUser0When set, Navidrome limits how many transcodes can run at the same time. Above the limit, a stream returns 500

EnableDownloads has no effect on this API. GET /Items/{itemId}/Download always works, and EnableContentDownloading in the user policy is always true.

Endpoints

The notes show only the differences from Jellyfin and the extra features. An endpoint that is not in these tables does not exist in Navidrome.

Some clients use older paths that start with /Users/{userId}. Navidrome accepts them for the endpoints in the last table.

System

EndpointNotes
GET /System/Info/PublicNeeds no token. LocalAddress is the URL that the client used, with the /jellyfin path
GET /System/Info
GET /System/Ping, POST /System/PingNeed no token. Return the server name as plain text
GET /System/Endpoint
GET /socketSee WebSocket

Login and users

EndpointNotes
POST /Users/AuthenticateByNameSee Authentication
POST /Users/AuthenticateWithQuickConnectSee Quick Connect
GET /QuickConnect/EnabledNeeds no token
POST /QuickConnect/InitiateNeeds no token. See Quick Connect
GET /QuickConnect/ConnectNeeds no token. See Quick Connect
POST /QuickConnect/AuthorizeOnly administrators can send the userId of another user
GET /Users/PublicNeeds no token. Returns only the users that the administrator selected. The default is an empty list
GET /Users/Me, GET /Users/{userId}Always return the user of the token. In Policy, only IsAdministrator depends on the user
GET /UserViewsSee Libraries

Browsing endpoints

EndpointNotes
GET /ItemsSee Browsing and Search
GET /Items/{itemId}Returns libraries, albums, artists, songs, playlists, genres, and radio stations. See Item fields
DELETE /Items/{itemId}Only for playlists
GET /Items/LatestAlways returns albums, and ignores IncludeItemTypes and GroupItems. ParentId can be a library or an artist
GET /Items/FiltersReturns genres and years. Tags and OfficialRatings are always empty
GET /ArtistsReturns the track artists. Supports ParentId (a library), GenreIds, SearchTerm, Filters, IsFavorite, IsPlayed, and sorting
GET /Artists/AlbumArtistsReturns the album artists. Supports the same parameters as GET /Artists
GET /Genres, GET /MusicGenresReturn the same list, with the genres of all the libraries that the user can access. Support only StartIndex and Limit
GET /StudiosReturns the record labels. Supports only ParentId (a library), StartIndex, and Limit
GET /LiveTv/ChannelsReturns the internet radio stations, sorted by name. Type=TV returns an empty list

Similar items and mixes

See Similar items and Instant Mix.

EndpointNotes
GET /Items/{itemId}/SimilarReturns items of the same type: songs, albums, or artists
GET /Albums/{itemId}/Similar, GET /Artists/{itemId}/Similar
GET /Items/{itemId}/InstantMixAccepts the ID of a song, album, artist, playlist, or genre
GET /Songs/{itemId}/InstantMix, GET /Albums/{itemId}/InstantMix, GET /Artists/{itemId}/InstantMix, GET /Playlists/{itemId}/InstantMixSame as GET /Items/{itemId}/InstantMix
GET /MusicGenres/InstantMix, GET /Artists/InstantMixSend the ID in the id parameter. GET /MusicGenres/{name}/InstantMix does not exist
GET /AudioMuseAI/info, GET /AudioMuseAI/health, GET /AudioMuseAI/similar_tracks, GET /AudioMuseAI/find_pathSee Sonic similarity

Playback

EndpointNotes
GET /Items/{itemId}/PlaybackInfo, POST /Items/{itemId}/PlaybackInfoIgnore the device profile. See Streaming
GET /Audio/{itemId}/universalAlso accepts HEAD. See Universal
GET /Audio/{itemId}/stream, GET /Audio/{itemId}/stream.{container}Also accept HEAD. See Stream
GET /Audio/{itemId}/main.m3u8See HLS
GET /Items/{itemId}/File, GET /Items/{itemId}/DownloadAlso accept HEAD. Only for songs
GET /Audio/{itemId}/LyricsSee Lyrics
POST /Sessions/Playing, POST /Sessions/Playing/Progress, POST /Sessions/Playing/StoppedSee Play counts and scrobbling
POST /Sessions/Playing/Ping, POST /Sessions/Capabilities, POST /Sessions/Capabilities/FullReturn 204 and do nothing

Images, favorites, and ratings

EndpointNotes
GET /Items/{itemId}/Images/{imageType}, GET /Items/{itemId}/Images/{imageType}/{imageIndex}Need no token. Also accept HEAD. See Images
POST /Items/{itemId}/Images/{imageType}, DELETE /Items/{itemId}/Images/{imageType}Only for playlists. Other items return 501
POST /UserFavoriteItems/{itemId}, DELETE /UserFavoriteItems/{itemId}
POST /UserItems/{itemId}/Rating, DELETE /UserItems/{itemId}/RatingSee Favorites and ratings
GET /UserItems/{itemId}/UserData, POST /UserItems/{itemId}/UserDataSee Favorites and ratings

Playlist endpoints

See Playlists.

EndpointNotes
POST /PlaylistsReads only Name, Ids, and IsPublic
GET /Playlists/{playlistId}OpenAccess is true when the playlist is public. Shares is always empty
POST /Playlists/{playlistId}Reads only Name, Ids, and IsPublic
GET /Playlists/{playlistId}/ItemsSupports StartIndex, Limit, and Fields
POST /Playlists/{playlistId}/ItemsSend ids and position in the query
DELETE /Playlists/{playlistId}/ItemsSend the PlaylistItemId values in entryIds, in the query
POST /Playlists/{playlistId}/Items/{itemId}/Move/{newIndex}itemId is the PlaylistItemId. newIndex starts at 0
GET /Playlists/{playlistId}/Users, GET /Playlists/{playlistId}/Users/{userId}Return only the permission of the current user

Older paths

Older pathSame as
GET /Users/{userId}/ViewsGET /UserViews
GET /Users/{userId}/ItemsGET /Items
GET /Users/{userId}/Items/LatestGET /Items/Latest
GET /Users/{userId}/Items/{itemId}GET /Items/{itemId}
POST and DELETE /Users/{userId}/FavoriteItems/{itemId}POST /UserFavoriteItems/{itemId} and DELETE /UserFavoriteItems/{itemId}
POST and DELETE /Users/{userId}/Items/{itemId}/RatingPOST /UserItems/{itemId}/Rating and DELETE /UserItems/{itemId}/Rating
GET and POST /Users/{userId}/Items/{itemId}/UserDataGET /UserItems/{itemId}/UserData and POST /UserItems/{itemId}/UserData

Get help

  • To see which unsupported endpoints your client calls, set LogLevel = "debug" in the server and look for Jellyfin API: unhandled route in the log. Each line has the method and the path.
  • To report a compatibility problem or ask for an endpoint, open an issue.