Support Articles
Server API: Videos
Beta
Videos are the imported videos grouped under Video Groups. They are very similar to videos, but they are grouped under Videos Groups. On this page, we’ll dive into the different video endpoints you can use to read video information programmatically from the Channels library.
The video model
The video model contains all the information about your imported videos that are part of a Video Group, such as its title, summary, poster art, watch status, duration, etc.
Properties
The unique identifier for the video.
The unique identifier for the video's parent video group.
The full path to the video file.
The season number of the video.
The episode number of the video.
The title of the video's parent show.
The title of the video.
The short summary of the video.
The full summary of the video.
The content rating of the video. This is typically a TV rating such as TV-14, TV-PG, etc.
The URL of the poster image for the video.
The URL of the thumbnail image for the video.
The duration of the video in seconds.
The playback position the video will resume at in seconds.
The date the video originated.
An array of strings for the genres of the video.
An array of strings for the tags of the video. Tags indicate information about the video such as HD, 4K, CC, Dolby Digital, etc.
An array of strings for the labels of the video. Labels are self assigned strings used for organizing items in the library.
An array of strings for the categories of the video. Categories describe the type of content the video is such as Internet Video, Concert, etc.
Whether or not the video has been watched.
Whether or not the video has been favorited.
Whether or not the video has completed post-processing.
Whether or not the video's commercials have been manually verified.
The timestamp of the last time the video was watched.
The timestamp of when the video was first added to the library.
The timestamp of when the video was last updated.
GET /api/v1/videos
List all videos
Returns a list of all videos in the library.
Optional Attributes
Only return videos with watch status corresponding to the passed in value.
Only return videos with favorited status corresponding to the passed in value.
Only return videos with verified status corresponding to the passed in value.
Sorting Attributes
Sort the response based on the passed in value.
Set the order of the response.
[{
"id": "32074",
"video_group_id": "videos-912b6855d3497def488a22bb41000081c6128dad7bbf71b67b602454960cc92c",
"path": "/media/videos/Stand Up Specials/Patton Oswalt - My Inner Child Doesn't Feel Like Chopping Wood Today [IuzCilEFBgo].webm",
"title": "Stand Up Specials",
"video_title": "Patton Oswalt - My Inner Child Doesn't Feel Like Chopping Wood Today",
"summary": "Patton Oswalt gripes about watching old movies in L.A., remembers buying weed at a coffee shop in Amsterdam and reveals why he got thrown out of the Anne Frank House.",
"image_url": "http://192.168.1.3:8089/dvr/uploads/125/content",
"thumbnail_url": "https://i3.ytimg.com/vi/IuzCilEFBgo/maxresdefault.jpg",
"duration": 1240.621,
"playback_time": 0,
"original_air_date": "1999-08-14",
"genres": [
"Stand Up Comedy"
],
"tags": [
"HD",
"Stereo"
],
"categories": [
"Internet Video"
],
"watched": false,
"favorited": false,
"delayed": false,
"cancelled": false,
"corrupted": false,
"completed": false,
"processed": true,
"locked": false,
"verified": false,
"created_at": 1673040351000,
"updated_at": 1673042668376
},{
"id": "31254",
"video_group_id": "videos-912b6855d3497def488a22bb41000081c6128dad7bbf71b67b602454960cc92c",
...
}]
GET /api/v1/videos/:id
Retrieve a video
This endpoint allows you to retrieve a video by using its unique identifier.
Required Attributes
The unique identifier of the video.
{
"id": "32074",
"video_group_id": "videos-912b6855d3497def488a22bb41000081c6128dad7bbf71b67b602454960cc92c",
"path": "/media/videos/Stand Up Specials/Patton Oswalt - My Inner Child Doesn't Feel Like Chopping Wood Today [IuzCilEFBgo].webm",
"title": "Stand Up Specials",
"video_title": "Patton Oswalt - My Inner Child Doesn't Feel Like Chopping Wood Today",
"summary": "Patton Oswalt gripes about watching old movies in L.A., remembers buying weed at a coffee shop in Amsterdam and reveals why he got thrown out of the Anne Frank House.",
"image_url": "http://192.168.1.3:8089/dvr/uploads/125/content",
"thumbnail_url": "https://i3.ytimg.com/vi/IuzCilEFBgo/maxresdefault.jpg",
"duration": 1240.621,
"playback_time": 0,
"original_air_date": "1999-08-14",
"genres": [
"Stand Up Comedy"
],
"tags": [
"HD",
"Stereo"
],
"categories": [
"Internet Video"
],
"watched": false,
"favorited": false,
"delayed": false,
"cancelled": false,
"corrupted": false,
"completed": false,
"processed": true,
"locked": false,
"verified": false,
"created_at": 1673040351000,
"updated_at": 1673042668376
}