Get Items
Retrieve items based on a flexible query with extensive filtering options.Endpoint
GET
/ItemsQuery Parameters
The user ID. Required when not using an API key.
The record index to start at. All items with a lower index will be dropped from the results.
The maximum number of records to return.
When searching within folders, determines whether the search will be recursive.
Filter based on a search term.
Comma-delimited sort orders. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime.
Sort order: Ascending, Descending. Comma-delimited.
Specify this to localize the search to a specific item or folder. Omit to use the root.
Comma-delimited additional fields: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
Filter by item type. Comma-delimited. Examples: Movie, Series, Episode, MusicAlbum, Audio, Book.
Exclude specific item types. Comma-delimited.
Additional filters. Comma-delimited. Options: IsFolder, IsNotFolder, IsUnplayed, IsPlayed, IsFavorite, IsResumable, Likes, Dislikes.
Filter by items marked as favorite.
Filter by MediaType. Comma-delimited. Options: Video, Audio, Photo, Book.
Filter by genre. Pipe-delimited.
Filter by production year. Comma-delimited.
Filter by tag. Pipe-delimited.
Filter by official rating (PG, PG-13, TV-MA, etc). Pipe-delimited.
Filter by minimum community rating.
Filter by minimum critic rating.
The minimum premiere date.
The maximum premiere date.
Filter by items with theme songs.
Filter by items with theme videos.
Filter by items with subtitles.
Filter by items with trailers.
Filter by items that are HD.
Filter by items that are 4K.
Filter by items that are 3D.
Filter by items that have been played.
Include user data in the response.
Include image information in output.
Enable the total record count.
Response
Array of BaseItemDto objects representing the media items.
Total number of items matching the query.
The starting index of the results.
Response Codes
200- Success: Items returned400- Bad Request: userId is required when not using API key401- Unauthorized: User does not have permission to access the library404- 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
The user ID.
The record index to start at.
The maximum number of records to return.
Specify this to localize the search to a specific item or folder.
Whether to exclude currently active sessions.
Response Codes
200- Success: Resume items returned404- 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)
Whether the item is marked as favorite.
Whether the item has been played.
Playback position in ticks.
Number of times played.
User rating (likes/dislikes).
Response
Current playback position.
Number of times the item has been played.
Whether marked as favorite.
Whether the item has been played.
Date the item was last played.
Response Codes
200- Success: User data returned/updated403- Forbidden: User not allowed to view/update this data404- Not Found: Item or user not found