Support Articles
Server API: Library Collections
Beta
Library Collections allow you to group items of the same content type to form custom collections. Library Collections can contain movies or TV Shows. On this page, we’ll dive into the different collection endpoints you can use to read collection information programmatically from the Channels library.
The library collection model
The collection model contains all the information about the Library Collections in your library, such as their name, art, last watched date, etc. Additionally, you can fetch all of the content of a collection using the nested endpoint.
Properties
The unique identifier for the collection.
The name of the collection.
The type of content contained in the collection.
The URL of the fanart image for the collection.
An array of strings for the labels of the collection. Labels are self assigned strings used for organizing items in the library.
The number of items contained in the collection.
The date of the last time content inside the collection was watched.
The date when the collection was first added to the library.
The date when the collection was last updated.
GET /api/v1/collections
List all collections
Returns a list of all collections in the library alphabetically.
Optional Attributes
Optionally filter returned collections to a certain type.
GET /api/v1/collections/:id
Retrieve a collection
This endpoint allows you to retrieve a collection by using its unique identifier.
Required Attributes
The unique identifier of the Collection.
GET /api/v1/collections/:id/content
Retrieve a collection's contents
This endpoint allows you to retrieve all the content contained by a collection.
Required Attributes
The unique identifier of the Collection.
Optional Attributes
Only return episodes with watch status corresponding to the passed in value.
Only return episodes with favorited status corresponding to the passed in value.
Only return episodes with verified status corresponding to the passed in value.
Only return episodes sourced from the passed in value.
Sorting Attributes
Sort the response based on the passed in value.
Set the order of the response.