import { GetLibraryItemsQueryParamType, GetLibraryItemsRequest, Tag } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetLibraryItemsRequest = {
tag: Tag.OnDeck,
type: GetLibraryItemsQueryParamType.TvShow,
sectionKey: 9518,
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
tag |
operations.Tag | ✔️ | A key representing a specific tag within the section. | |
includeGuids |
operations.IncludeGuids | ➖ | Adds the Guids object to the response |
1 |
type |
operations.GetLibraryItemsQueryParamType | ✔️ | The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries |
2 |
sectionKey |
number | ✔️ | The unique key of the Plex library. Note: This is unique in the context of the Plex server. |
9518 |
includeMeta |
operations.GetLibraryItemsQueryParamIncludeMeta | ➖ | Adds the Meta object to the response |
1 |
xPlexContainerStart |
number | ➖ | The index of the first item to return. If not specified, the first item will be returned. If the number of items exceeds the limit, the response will be paginated. By default this is 0 |
0 |
xPlexContainerSize |
number | ➖ | The number of items to return. If not specified, all items will be returned. If the number of items exceeds the limit, the response will be paginated. By default this is 50 |
50 |