Jellyfin API (Experimental)
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.
This API can still change. Video, live TV (except internet radio), and the Jellyfin administration endpoints are not part of it.
Quick reference
| Item | Value |
|---|---|
| Availability | Off by default. The administrator turns it on with the Jellyfin.Enabled option |
| URL | https://<server>/jellyfin/<endpoint> |
| URL with a base path | https://<server>/<path>/jellyfin/<endpoint>, when the server uses the BaseUrl option |
| Jellyfin version reported | 12.1.0, in the Version field of GET /System/Info/Public |
| Response format | JSON, with field names in PascalCase |
| Case | Endpoint 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 query | Separated by commas (Ids=a,b) or repeated (Ids=a&Ids=b) |
| Times and positions | In ticks. One second is 10,000,000 ticks |
| Bit rates | In bits per second |
| CORS | All 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:
| Method | Example | Notes |
|---|---|---|
Authorization header | MediaBrowser 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 header | Same value as the Authorization header | Use 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:
GET /System/Info/PublicandGET /System/PingGET /Users/Public- The login endpoints, and all Quick Connect endpoints except
POST /QuickConnect/Authorize - The
GETandHEADimage endpoints
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
userIdin the path and in the query, and uses the user of the token. There are two exceptions. The rating andUserDataendpoints return403when you try to change the data of another user.POST /QuickConnect/Authorizelets 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:
- Call
GET /QuickConnect/Enabled. If it returnsfalse, do not show the option. - Call
POST /QuickConnect/Initiate. The authorization header must haveClient,Device,DeviceId, andVersion. Show theCodefrom the response to the user, and keep theSecret. - Call
GET /QuickConnect/Connectwith thesecretuntilAuthenticatedistrue. This call does not count in the login limit, so you can repeat it every second. - Call
POST /Users/AuthenticateWithQuickConnectwith 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
ClientandDevicevalues in all requests. If one of them changes, the user gets a new player and loses these settings.DeviceIdandVersiondo not change the player. - Two devices with the same
ClientandDevicevalues share one player, even whenDeviceIdis different. If the user can give a name to the device, send that name inDevice. - When a request has no
Clientand noDeviceId, 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.
| Status | When |
|---|---|
400 | The JSON body is missing or not valid, a value is not valid, or the image is too large |
401 | The token is missing or no longer valid, the username or password is wrong, or Quick Connect is turned off |
403 | The 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 body | The item does not exist, the ID is not valid, or the user cannot access the item |
409 | The Quick Connect code is already approved |
413 | The request has too many songs for a playlist, or the JSON body is too large |
429 | Too 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 |
500 | Internal error. Navidrome also returns 500 when it reaches its transcoding limit, so you can try again later |
501 | You 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 get | Send |
|---|---|
| Albums | IncludeItemTypes=MusicAlbum and Recursive=true |
| Songs | IncludeItemTypes=Audio and Recursive=true |
| Album artists | IncludeItemTypes=MusicArtist, or call GET /Artists/AlbumArtists |
| All track artists | Call GET /Artists |
| Genres | IncludeItemTypes=MusicGenre, or call GET /Genres |
| Playlists | IncludeItemTypes=Playlist |
| The albums of an artist | ParentId=<artist>, or AlbumArtistIds=<artist> with IncludeItemTypes=MusicAlbum |
| The albums where an artist is only a guest | ContributingArtistIds=<artist> and IncludeItemTypes=MusicAlbum |
| The songs of an artist | ArtistIds=<artist>, IncludeItemTypes=Audio, and Recursive=true |
| The songs of an album, in disc and track order | ParentId=<album> |
| The songs of a playlist | ParentId=<playlist>, or call GET /Playlists/{playlistId}/Items |
| Items by ID | Ids=<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. UseArtistIds. - 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:
| Parameter | Applies to |
|---|---|
AlbumArtistIds, ArtistIds | Albums and songs. For songs, both find the track artists and the album artists |
ContributingArtistIds | Albums and songs. For songs, it is the same as ArtistIds |
AlbumIds | Songs |
GenreIds | Albums, songs, and artists |
StudioIds | Albums and songs. A studio is a record label. GET /Studios lists them |
Years | Albums and songs |
Filters with IsFavorite, IsFavoriteOrLikes, IsPlayed, or IsUnplayed | Albums, songs, artists, and playlists |
IsFavorite, IsPlayed | Albums, songs, artists, and playlists |
SearchTerm | Albums, 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:
| Type | SortBy keys |
|---|---|
MusicAlbum | SortName, Name, Album, Artist, AlbumArtist, DateCreated, DatePlayed, PlayCount, CommunityRating, PremiereDate, ProductionYear, Runtime, Random |
Audio | The same keys, IndexNumber, and ParentIndexNumber |
MusicArtist | SortName, Name, DateCreated, DatePlayed, PlayCount, CommunityRating, AlbumCount, SongCount, Random |
Playlist | SortName, Name, DateCreated, Random |
MusicGenre | SortName, Name, Random |
- Navidrome ignores the keys that it does not support.
CommunityRatingsorts by the rating that the user gave.IndexNumberandParentIndexNumberboth sort by album, disc, and track.- Always send
SortBywhen 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.
Search
Send SearchTerm to GET /Items, GET /Artists, or GET /Artists/AlbumArtists:
- Without
IncludeItemTypes, the results have only albums. - A
SearchTermwith a single letter or digit returns no results. - Without
Limit, Navidrome returns up to 100 items. The maximum is 2,000. TotalRecordCountis 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, andIsPlayedin a search. - Artist results include all artists, such as composers. Navidrome ignores
GenreIdsin 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:
| Field | Notes |
|---|---|
MediaSources | Only for songs. Has the file size, the bit rate, and the audio streams |
SortName | Use it to build an alphabetical index. It matches the order of SortBy=SortName |
Studios | Only for albums. Has the record labels |
PrimaryImageAspectRatio | Only when Navidrome knows the size of the image |
Genres, Tags | With 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:
AlbumArtistsin songs and albums has only one artist.ArtistsandArtistItemsin songs have all the track artists.CodecinMediaStreamscan be missing or in uppercase, for exampleMP3. UseContainerto know the file type.HasLyricsin lists istrueonly for lyrics in the file tags. See Lyrics.NormalizationGainis the ReplayGain track gain in songs, and the album gain in albums. Songs also have the album gain inAlbumNormalizationGain. The values are in dB.PremiereDateis always a full date. If the file has only the year, the date is January 1.DateCreateddepends on theRecentlyAddedByoption.UserData.PlaybackPositionTicksis always0, because Navidrome does not save the position in a song.
Images
- Find the image. Use
ImageTags.Primaryand the ID of the item. If a song has noImageTags.Primary, useAlbumPrimaryImageTagandAlbumId. 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
tagparameter. 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 status200and the headerCache-Control: no-store. - Size.
width,height,maxWidth,maxHeight,fillWidth, andfillHeightset 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, andqualityhave no effect. Each item has one image. - Parallel requests. Send only a few image requests at the same time, for example 4. Navidrome returns
429when too many requests wait.
ImageBlurHashes is missing until Navidrome processes the image for the first time.
Streaming
| Endpoint | Use it to |
|---|---|
GET /Items/{itemId}/File, GET /Items/{itemId}/Download | Get the original file. The player settings have no effect |
GET /Audio/{itemId}/universal | Tell 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.m3u8 | Get 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.
| Song | Result |
|---|---|
In a format from Container, and not above MaxStreamingBitrate | The original file |
| Any other song | Transcoded to AudioCodec, or to TranscodingContainer when there is no AudioCodec |
| Any other song, when Navidrome cannot transcode it to that format | The 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.
AudioCodecis a list. Send only one value.- The format is
flac, and the original is in a lossy format such as MP3, orMaxStreamingBitrateis 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:
| Request | Result |
|---|---|
static=true | The original file |
| No format and no bit rate | The original file |
| Only a bit rate, lower than the original | Transcoded to the format in the DefaultDownsamplingFormat option (default opus) |
| Only a bit rate, equal to or above the original | The original file |
| The format of the original, and no bit rate or one that is not lower than the original | The original file |
flac, with a bit rate | Transcoded to DefaultDownsamplingFormat |
| Any other request with a format that the server has | Transcoded 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 formats | Transcoded 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
Rangerequests. - A song that is being transcoded does not. It has the
Accept-Ranges: noneheader and noContent-Length. - A transcoded song accepts
Rangerequests 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 asopus. - 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:
- When a song starts, call
POST /Sessions/PlayingwithItemId. - While it plays, call
POST /Sessions/Playing/ProgresswithItemId,PositionTicks, andIsPaused. Also call it when the user pauses, continues, or seeks. - When it ends, or when the user skips it, call
POST /Sessions/Playing/StoppedwithItemIdand the finalPositionTicks.
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
PositionTicksin theStoppedreport, the play does not count. - Each
Stoppedreport 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
ClientandDeviceId, 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 send | Navidrome stores | Rating in the response |
|---|---|---|
likes=true | 5 stars | 10 |
likes=false | 1 star | 2 |
Rating: 7 | 4 stars | 8 |
Rating: 0, or DELETE /UserItems/{itemId}/Rating | No rating | Not 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.
Idsaccepts the IDs of songs, albums, artists, and playlists. Navidrome replaces each album, artist, or playlist with its songs. Sendpositionto insert the songs at an index that starts at0. One request accepts up to 50,000 songs. - Remove or move songs. Use the
PlaylistItemIdthatGET /Playlists/{playlistId}/Itemsreturns for each song. The song ID does not work, and returns404. - Read the list again after each change.
PlaylistItemIdis 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 theirEntryIdsin one request. - Update.
POST /Playlists/{playlistId}keeps the values that you do not send. If you sendIds, it replaces all the songs. An emptyIdslist 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 returns404for 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 theEnableArtworkUploadandMaxImageUploadSizeoptions. - 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
.m3ufile. The response is403. 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.
Limitis 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
Fieldshere, so the items never haveMediaSourcesorSortName. To get these fields, send the IDs toGET /ItemsinIds.
Internet radio
GET /LiveTv/Channels returns the internet radio stations as items with the type TvChannel and the ChannelType
Radio. To play a station:
- Call
POST /Items/{itemId}/PlaybackInfowith the ID of the station. - 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.
| Endpoint | Parameters | Notes |
|---|---|---|
GET /AudioMuseAI/info | Version is the version of Navidrome | |
GET /AudioMuseAI/health | Returns 200 with an empty body when a plugin is active | |
GET /AudioMuseAI/similar_tracks | item_id, n, eliminate_duplicates | n 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_path | start_song_id, end_song_id, max_steps | max_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:
| Option | Default | Effect on the API |
|---|---|---|
Jellyfin.Enabled | false | When false, the API does not exist |
Jellyfin.ServerName | "Navidrome <version>" | The value of ServerName |
Jellyfin.ExposedPublicUsers | Empty | The users that GET /Users/Public returns |
Jellyfin.QuickConnect | true | When false, GET /QuickConnect/Enabled returns false, and the other Quick Connect endpoints return 401 |
Jellyfin.AutoDiscovery | false | Turns on server discovery |
Jellyfin.MaxConcurrentStreams | Half the database connections, at least 2 | How many lists Navidrome sends at the same time |
AuthRequestLimit and AuthWindowLength | 5 and 20s | The login limit |
DefaultDownsamplingFormat | "opus" | The default transcoding format. See Stream |
PreferSortTags | false | When 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.MaxConcurrentPerUser | 0 | When 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
| Endpoint | Notes |
|---|---|
GET /System/Info/Public | Needs no token. LocalAddress is the URL that the client used, with the /jellyfin path |
GET /System/Info | |
GET /System/Ping, POST /System/Ping | Need no token. Return the server name as plain text |
GET /System/Endpoint | |
GET /socket | See WebSocket |
Login and users
| Endpoint | Notes |
|---|---|
POST /Users/AuthenticateByName | See Authentication |
POST /Users/AuthenticateWithQuickConnect | See Quick Connect |
GET /QuickConnect/Enabled | Needs no token |
POST /QuickConnect/Initiate | Needs no token. See Quick Connect |
GET /QuickConnect/Connect | Needs no token. See Quick Connect |
POST /QuickConnect/Authorize | Only administrators can send the userId of another user |
GET /Users/Public | Needs 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 /UserViews | See Libraries |
Browsing endpoints
| Endpoint | Notes |
|---|---|
GET /Items | See 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/Latest | Always returns albums, and ignores IncludeItemTypes and GroupItems. ParentId can be a library or an artist |
GET /Items/Filters | Returns genres and years. Tags and OfficialRatings are always empty |
GET /Artists | Returns the track artists. Supports ParentId (a library), GenreIds, SearchTerm, Filters, IsFavorite, IsPlayed, and sorting |
GET /Artists/AlbumArtists | Returns the album artists. Supports the same parameters as GET /Artists |
GET /Genres, GET /MusicGenres | Return the same list, with the genres of all the libraries that the user can access. Support only StartIndex and Limit |
GET /Studios | Returns the record labels. Supports only ParentId (a library), StartIndex, and Limit |
GET /LiveTv/Channels | Returns the internet radio stations, sorted by name. Type=TV returns an empty list |
Similar items and mixes
See Similar items and Instant Mix.
| Endpoint | Notes |
|---|---|
GET /Items/{itemId}/Similar | Returns items of the same type: songs, albums, or artists |
GET /Albums/{itemId}/Similar, GET /Artists/{itemId}/Similar | |
GET /Items/{itemId}/InstantMix | Accepts 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}/InstantMix | Same as GET /Items/{itemId}/InstantMix |
GET /MusicGenres/InstantMix, GET /Artists/InstantMix | Send 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_path | See Sonic similarity |
Playback
| Endpoint | Notes |
|---|---|
GET /Items/{itemId}/PlaybackInfo, POST /Items/{itemId}/PlaybackInfo | Ignore the device profile. See Streaming |
GET /Audio/{itemId}/universal | Also accepts HEAD. See Universal |
GET /Audio/{itemId}/stream, GET /Audio/{itemId}/stream.{container} | Also accept HEAD. See Stream |
GET /Audio/{itemId}/main.m3u8 | See HLS |
GET /Items/{itemId}/File, GET /Items/{itemId}/Download | Also accept HEAD. Only for songs |
GET /Audio/{itemId}/Lyrics | See Lyrics |
POST /Sessions/Playing, POST /Sessions/Playing/Progress, POST /Sessions/Playing/Stopped | See Play counts and scrobbling |
POST /Sessions/Playing/Ping, POST /Sessions/Capabilities, POST /Sessions/Capabilities/Full | Return 204 and do nothing |
Images, favorites, and ratings
Playlist endpoints
See Playlists.
| Endpoint | Notes |
|---|---|
POST /Playlists | Reads 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}/Items | Supports StartIndex, Limit, and Fields |
POST /Playlists/{playlistId}/Items | Send ids and position in the query |
DELETE /Playlists/{playlistId}/Items | Send 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 path | Same as |
|---|---|
GET /Users/{userId}/Views | GET /UserViews |
GET /Users/{userId}/Items | GET /Items |
GET /Users/{userId}/Items/Latest | GET /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}/Rating | POST /UserItems/{itemId}/Rating and DELETE /UserItems/{itemId}/Rating |
GET and POST /Users/{userId}/Items/{itemId}/UserData | GET /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 forJellyfin API: unhandled routein the log. Each line has the method and the path. - To report a compatibility problem or ask for an endpoint, open an issue.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can make this documentation even better.
Sorry to hear that. Please tell us how we can improve this documentation.