Optionaloptions: {OptionalstartIndex?: numberThe record index to start at. All items with a lower index will be dropped from the results.
Optionallimit?: numberThe maximum number of records to return.
OptionalminDate?: stringThe minimum date.
OptionalmaxDate?: stringThe maximum date.
OptionalhasUserId?: booleanFilter log entries if it has user id, or not.
Optionalname?: stringFilter by name.
Optionaloverview?: stringFilter by overview.
OptionalshortOverview?: stringFilter by short overview.
Optionaltype?: stringFilter by type.
OptionalitemId?: stringFilter by item id.
Optionalusername?: stringFilter by username.
Optionalseverity?: "Trace" | "Debug" | "Information" | "Warning" | "Error" | "Critical" | "None"Filter by log severity.
OptionalsortBy?: ActivityLogSortBy[]Specify one or more sort orders. Format: SortBy=Name,Type.
OptionalsortOrder?: SortOrder[]Sort Order..
Trigger a full library scan. Returns immediately; the scan runs in the background.
Refresh metadata for a single item.
Optionaloptions: {OptionalmetadataRefreshMode?: "None" | "Default" | "ValidationOnly" | "FullRefresh"(Optional) Specifies the metadata refresh mode.
OptionalimageRefreshMode?: "None" | "Default" | "ValidationOnly" | "FullRefresh"(Optional) Specifies the image refresh mode.
OptionalreplaceAllMetadata?: boolean(Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh.
OptionalreplaceAllImages?: boolean(Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh.
OptionalregenerateTrickplay?: boolean(Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh.
Optionaloptions: { collectionType?: CollectionType; paths?: string[]; refreshLibrary?: boolean }OptionalrefreshLibrary: booleanOptionaloptions: {OptionaluserId?: stringThe user id supplied as query parameter; this is required when not using an API key.
OptionalmaxOfficialRating?: stringOptional filter by maximum official rating (PG, PG-13, TV-MA, etc).
OptionalhasThemeSong?: booleanOptional filter by items with theme songs.
OptionalhasThemeVideo?: booleanOptional filter by items with theme videos.
OptionalhasSubtitles?: booleanOptional filter by items with subtitles.
OptionalhasSpecialFeature?: booleanOptional filter by items with special features.
OptionalhasTrailer?: booleanOptional filter by items with trailers.
OptionaladjacentTo?: stringOptional. Return items that are siblings of a supplied item.
OptionalindexNumber?: numberOptional filter by index number.
OptionalparentIndexNumber?: numberOptional filter by parent index number.
OptionalhasParentalRating?: booleanOptional filter by items that have or do not have a parental rating.
OptionalisHd?: booleanOptional filter by items that are HD or not.
Optionalis4K?: booleanOptional filter by items that are 4K or not.
OptionallocationTypes?: LocationType[]Optional. If specified, results will be filtered based on LocationType. This allows multiple, comma delimited.
OptionalexcludeLocationTypes?: LocationType[]Optional. If specified, results will be filtered based on the LocationType. This allows multiple, comma delimited.
OptionalisMissing?: booleanOptional filter by items that are missing episodes or not.
OptionalisUnaired?: booleanOptional filter by items that are unaired episodes or not.
OptionalminCommunityRating?: numberOptional filter by minimum community rating.
OptionalminCriticRating?: numberOptional filter by minimum critic rating.
OptionalminPremiereDate?: stringOptional. The minimum premiere date. Format = ISO.
OptionalminDateLastSaved?: stringOptional. The minimum last saved date. Format = ISO.
OptionalminDateLastSavedForUser?: stringOptional. The minimum last saved date for the current user. Format = ISO.
OptionalmaxPremiereDate?: stringOptional. The maximum premiere date. Format = ISO.
OptionalhasOverview?: booleanOptional filter by items that have an overview or not.
OptionalhasImdbId?: booleanOptional filter by items that have an IMDb id or not.
OptionalhasTmdbId?: booleanOptional filter by items that have a TMDb id or not.
OptionalhasTvdbId?: booleanOptional filter by items that have a TVDb id or not.
OptionalisMovie?: booleanOptional filter for live tv movies.
OptionalisSeries?: booleanOptional filter for live tv series.
OptionalisNews?: booleanOptional filter for live tv news.
OptionalisKids?: booleanOptional filter for live tv kids.
OptionalisSports?: booleanOptional filter for live tv sports.
OptionalexcludeItemIds?: string[]Optional. If specified, results will be filtered by excluding item ids. This allows multiple, comma delimited.
OptionalstartIndex?: numberOptional. The record index to start at. All items with a lower index will be dropped from the results.
Optionallimit?: numberOptional. The maximum number of records to return.
Optionalrecursive?: booleanWhen searching within folders, this determines whether or not the search will be recursive. true/false.
OptionalsearchTerm?: stringOptional. Filter based on a search term.
OptionalsortOrder?: SortOrder[]Sort Order - Ascending, Descending.
OptionalparentId?: stringSpecify this to localize the search to a specific item or folder. Omit to use the root.
Optionalfields?: ItemFields[]Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
OptionalexcludeItemTypes?: BaseItemKind[]Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
OptionalincludeItemTypes?: BaseItemKind[]Optional. If specified, results will be filtered based on the item type. This allows multiple, comma delimited.
Optionalfilters?: ItemFilter[]Optional. Specify additional filters to apply. This allows multiple, comma delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
OptionalisFavorite?: booleanOptional filter by items that are marked as favorite, or not.
OptionalmediaTypes?: MediaType[]Optional filter by MediaType. Allows multiple, comma delimited.
OptionalimageTypes?: ImageType[]Optional. If specified, results will be filtered based on those containing image types. This allows multiple, comma delimited.
OptionalsortBy?: ItemSortBy[]Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
OptionalisPlayed?: booleanOptional filter by items that are played, or not.
Optionalgenres?: string[]Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
OptionalofficialRatings?: string[]Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
Optionaltags?: string[]Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
Optionalyears?: number[]Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
OptionalenableUserData?: booleanOptional, include user data.
OptionalimageTypeLimit?: numberOptional, the max number of images to return, per image type.
OptionalenableImageTypes?: ImageType[]Optional. The image types to include in the output.
Optionalperson?: stringOptional. If specified, results will be filtered to include only those containing the specified person.
OptionalpersonIds?: string[]Optional. If specified, results will be filtered to include only those containing the specified person id.
OptionalpersonTypes?: string[]Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
Optionalstudios?: string[]Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
Optionalartists?: string[]Optional. If specified, results will be filtered based on artists. This allows multiple, pipe delimited.
OptionalexcludeArtistIds?: string[]Optional. If specified, results will be filtered based on artist id. This allows multiple, pipe delimited.
OptionalartistIds?: string[]Optional. If specified, results will be filtered to include only those containing the specified artist id.
OptionalalbumArtistIds?: string[]Optional. If specified, results will be filtered to include only those containing the specified album artist id.
OptionalcontributingArtistIds?: string[]Optional. If specified, results will be filtered to include only those containing the specified contributing artist id.
Optionalalbums?: string[]Optional. If specified, results will be filtered based on album. This allows multiple, pipe delimited.
OptionalalbumIds?: string[]Optional. If specified, results will be filtered based on album id. This allows multiple, pipe delimited.
Optionalids?: string[]Optional. If specific items are needed, specify a list of item id's to retrieve. This allows multiple, comma delimited.
OptionalvideoTypes?: VideoType[]Optional filter by VideoType (videofile, dvd, bluray, iso). Allows multiple, comma delimited.
OptionalminOfficialRating?: stringOptional filter by minimum official rating (PG, PG-13, TV-MA, etc).
OptionalisLocked?: booleanOptional filter by items that are locked.
OptionalisPlaceHolder?: booleanOptional filter by items that are placeholders.
OptionalhasOfficialRating?: booleanOptional filter by items that have official ratings.
OptionalcollapseBoxSetItems?: booleanWhether or not to hide items behind their boxsets.
OptionalminWidth?: numberOptional. Filter by the minimum width of the item.
OptionalminHeight?: numberOptional. Filter by the minimum height of the item.
OptionalmaxWidth?: numberOptional. Filter by the maximum width of the item.
OptionalmaxHeight?: numberOptional. Filter by the maximum height of the item.
Optionalis3D?: booleanOptional filter by items that are 3D, or not.
OptionalseriesStatus?: SeriesStatus[]Optional filter by Series Status. Allows multiple, comma delimited.
OptionalnameStartsWithOrGreater?: stringOptional filter by items whose name is sorted equally or greater than a given input string.
OptionalnameStartsWith?: stringOptional filter by items whose name is sorted equally than a given input string.
OptionalnameLessThan?: stringOptional filter by items whose name is equally or lesser than a given input string.
OptionalstudioIds?: string[]Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
OptionalgenreIds?: string[]Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
OptionalaudioLanguages?: string[]Optional. If specified, results will be filtered based on audio language. This allows multiple, comma delimited values.
OptionalsubtitleLanguages?: string[]Optional. If specified, results will be filtered based on subtitle language. This allows multiple, comma delimited values.
OptionalenableTotalRecordCount?: booleanOptional. Enable the total record count.
OptionalenableImages?: booleanOptional, include image information in output.
OptionaluserId: stringOptionaloptions: Omit<Optionaloptions: {OptionalcontrollableByUserId?: stringFilter by sessions that a given user is allowed to remote control.
OptionaldeviceId?: stringFilter by device Id.
OptionalactiveWithinSeconds?: numberOptional. Filter by sessions that were active in the last n seconds.
Send a playstate command to a session — pause, resume, seek, skip.
seekPositionTicks is in .NET ticks (10,000 per millisecond), which is
what Jellyfin uses throughout its API.
Optionaloptions: { seekPositionTicks?: number; controllingUserId?: string }Send a general command to a session — volume, navigation, subtitles.
Send a system command to a session — GoHome, GoToSettings, TakeScreenshot.
Display a message on a session's screen.
Optionaloptions: { header?: string; timeoutMs?: number }Instruct a session to play items.
Optionaloptions: PlayOptionsInstruct a session to display an item's detail page.
Remove entries from a playlist by entry ID. On 10.11.11 and 12.0 the entry ID equals
the underlying item ID, but read it from getPlaylistItems
(PlaylistItemId) rather than relying on that.
Optionaloptions: Omit<Which images an item already has, with dimensions — use to spot missing or low-quality artwork.
Artwork candidates from metadata providers, with language and community rating so a caller can pick a good one.
Note: 10.11 reports Width/Height per candidate but 12.0 does not,
even though the OpenAPI schema still declares them. Code that ranks
candidates by resolution must fall back to CommunityRating.
Optionaltype: ImageTypeOptionaloptions: RemoteImagesQueryAttach an image to an item from a URL, replacing any existing image of that
type. The URL does not have to come from getRemoteImages — any reachable
image URL works.
OptionalimageUrl: stringOptionalimageIndex: numberOptionaltimeout?: numberRequest timeout in milliseconds (default: 30000)
Optionalretry?: RetryOptionsRetry configuration for transient failures
Optionalheaders?: Record<string, string>
Jellyfin API client for media server management
Closes the automation loop: trigger library scans after imports, read watched state back out, and check for active playback before running maintenance.
Authenticates with an API key (Dashboard -> Advanced -> API Keys) using Jellyfin's
MediaBrowserauthorization scheme.Example