Skip to main content
The Items API provides comprehensive access to media items in your Jellyfin library, including powerful filtering, searching, and sorting capabilities.

Get Items

Retrieve items based on a flexible query with extensive filtering options.

Endpoint

string
required
GET
string
required
/Items

Query Parameters

string (GUID)
The user ID. Required when not using an API key.
integer
The record index to start at. All items with a lower index will be dropped from the results.
integer
The maximum number of records to return.
boolean
When searching within folders, determines whether the search will be recursive.
string
Filter based on a search term.
string[]
Comma-delimited sort orders. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
string[]
Sort order: Ascending, Descending. Comma-delimited.
string (GUID)
Specify this to localize the search to a specific item or folder. Omit to use the root.
string[]
Comma-delimited additional fields: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
string[]
Filter by item type. Comma-delimited. Examples: Movie, Series, Episode, MusicAlbum, Audio, Book.
string[]
Exclude specific item types. Comma-delimited.
string[]
Additional filters. Comma-delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
boolean
Filter by items marked as favorite.
string[]
Filter by MediaType. Comma-delimited. Options: Video, Audio, Photo, Book.
string[]
Filter by genre. Pipe-delimited.
integer[]
Filter by production year. Comma-delimited.
string[]
Filter by tag. Pipe-delimited.
string[]
Filter by official rating (PG, PG-13, TV-MA, etc). Pipe-delimited.
number
Filter by minimum community rating.
number
Filter by minimum critic rating.
string (ISO 8601)
The minimum premiere date.
string (ISO 8601)
The maximum premiere date.
boolean
Filter by items with theme songs.
boolean
Filter by items with theme videos.
boolean
Filter by items with subtitles.
boolean
Filter by items with trailers.
boolean
Filter by items that are HD.
boolean
Filter by items that are 4K.
boolean
Filter by items that are 3D.
boolean
Filter by items that have been played.
boolean
default:"true"
Include user data in the response.
boolean
default:"true"
Include image information in output.
boolean
default:"true"
Enable the total record count.

Response

array
Array of BaseItemDto objects representing the media items.
integer
Total number of items matching the query.
integer
The starting index of the results.

Response Codes

  • 200 - Success: Items returned
  • 400 - Bad Request: userId is required when not using API key
  • 401 - Unauthorized: User does not have permission to access the library
  • 404 - Not Found: Library or parent item not found

Get Resume Items

Get items that can be resumed for a user.
cURL

Endpoint

GET /UserItems/Resume

Query Parameters

string (GUID)
The user ID.
integer
The record index to start at.
integer
The maximum number of records to return.
string (GUID)
Specify this to localize the search to a specific item or folder.
boolean
default:"false"
Whether to exclude currently active sessions.

Response Codes

  • 200 - Success: Resume items returned
  • 404 - Not Found: User not found

Get/Update Item User Data

Manage user-specific data for an item (play count, favorite status, etc).

Get Item User Data

Get
GET /UserItems/{itemId}/UserData

Update Item User Data

Update
POST /UserItems/{itemId}/UserData

Request Body (Update)

boolean
Whether the item is marked as favorite.
boolean
Whether the item has been played.
integer
Playback position in ticks.
integer
Number of times played.
number
User rating (likes/dislikes).

Response

integer
Current playback position.
integer
Number of times the item has been played.
boolean
Whether marked as favorite.
boolean
Whether the item has been played.
string (ISO 8601)
Date the item was last played.

Response Codes

  • 200 - Success: User data returned/updated
  • 403 - Forbidden: User not allowed to view/update this data
  • 404 - Not Found: Item or user not found