ContentsEmby-compatible API
  1. API

    1. Using the API
    2. API reference
    3. Emby-compatible API
  2. Plugin SDK

    1. Plugins and built-in features
    2. Capabilities
    3. Quick start
    4. Package, sign and publish

Emby-compatible API

Besides its own API, the server speaks the protocol of an Emby server, so players made for Emby (Infuse, SenPlayer, VidHub and others) can connect to it. This page is for people who build or test a client against it. If you only want to use a player, read Third-party players.

On this page
  1. Which clients
  2. Connect
  3. What works
  4. Limits

Which clients#

The compatibility layer follows the Emby Server 4.10.1.0 interface. It works with players made for Emby, such as Infuse, SenPlayer and VidHub. Other 3rd-party Emby clients usually work too; Emby’s own official apps cannot connect. A Jellyfin-style mode exists for Jellyfin 12.x clients; it is secondary, and Infuse's Library Mode (which needs a companion plugin) is not supported. Use Infuse's direct mode.

The server runs in one compatibility mode at a time (Emby, Jellyfin or off) on the same port, set in the admin console. In off, every Emby and Jellyfin path answers 404 and only the native apps work. Clients must sign in again after you change the mode.

Connect#

  • Address: http://<host>:5797, the same port as everything else. The usual prefixes /emby and /mediabrowser work, and paths are not case sensitive.
  • Sign in with POST /Users/AuthenticateByName and the member's name and password. A member who has only a PIN cannot sign in this way; give them a password for the player.
  • Then send the token the server returns on every request. Any of these works: the X-Emby-Token header, the X-Emby-Authorization header with Token="..." (the usual MediaBrowser Client=..., Device=..., DeviceId=..., Version=..., Token=... form), or the api_key query parameter.
  • API keys. An Admin API key (msk_...) gets 401 on this protocol. An external tool can connect with a key whose purpose is Read only (reads library data) or Trigger scans (asks the server to scan), created under System → Integrations → API keys. Such keys can do nothing else: no playback, downloads or changes. Some tools also create a read-only key themselves when you set them up; it appears in the same list and you can revoke it there. Not every tool that asks for an Emby API key is supported.
  • New libraries and external tools. A tool that follows what is in your library, for example to mark a request as available, usually keeps its own list of libraries. After you create a library in Kryspal, refresh that list in the tool's media server settings and enable the new library. Until then the title is in Kryspal, but the tool can keep showing it as still processing.
  • Failed sign-ins share the limits described in Using the API.
  • Players on the same network find the server by itself through discovery on UDP port 7359, when the container uses the host network (see Install).

What works#

The usual client flows: sign in and member lists, libraries and views, item lists with filters and sorting, item details and images, search, resume and next up (resume also lists finished items that have a resume position again, like Emby), favorites and played state, playback reporting (start, progress, stop), subtitles (including external text subtitles and online subtitle search), and a WebSocket for library and watched-state changes. Some admin functions are exposed with permission checks, such as refreshing or deleting an item and editing its metadata.

Only the members' own libraries are visible. An item a member may not see answers 404, not 403.

Limits#

  • No video transcoding. Playback is direct play or direct stream. The server tells clients that it cannot transcode, so a player that cannot play a file as it is must be set to convert on its side. For clients that need HLS, the server offers a copy-only HLS stream (audio is copied too, so formats such as DTS, TrueHD and PCM cannot be served this way: when HLS cannot handle the audio, the answer is 415 with audio_codec_unsupported). The start position a client asks for is passed on to the HLS session.
  • Subtitles in text formats are converted inside the server where needed; SAMI subtitles are delivered as SRT. Image subtitles (PGS, VobSub) are delivered as they are. Closed-caption tracks are hidden from these clients. Subtitles are never burned into the picture. For a video on a network source (WebDAV, strm), an embedded subtitle is reported as Embed with no delivery address, so the client reads it from the video stream; for a local file, External is used when the client sends no profile and Embed when its profile lists it.
  • Disc folders (BDMV and similar) on a network source are delivered like local ones. A BDMV folder is offered as one transport-stream source, and .m2ts files are direct streamed.
  • Paths. An item on a network source shows its remote path, not the server's internal pointer, and folder paths and library locations are mapped the same way.
  • One backdrop per item. Each item has a single backdrop image, so a client that rotates several backdrops shows just that one. Stills are not offered to these clients.
  • Music, photos and books are not supported. A query for only those types returns an empty list.
  • Playlists have limited support. A player can create, read, add to, reorder and delete its own member's playlists. Only the owner can see a playlist, and sharing or making one public is not supported. Playlist-only searches, Continue watching and filters return an empty list.
  • Skip intro and outro reaches these clients only when your plan includes it: as chapter markers for Emby clients, and as segments for Jellyfin clients.
  • Plan limits (simultaneous streams, devices) apply to these clients as well.
  • Endpoints the server does not implement answer 404. Some Emby endpoints are only partly implemented, or not at all, for example a few image and similar-title endpoints; a client that depends on them may show less than it would on a real Emby server.
  • Emby Premiere checks are not simulated.