Skip to main content

Videos

The Videos API allows you to find specific videos and retrieve lists of videos from your account.

Find Video

QUERYvideo

Retrieves details for a specific video by ID.

Arguments

ParameterTypeDescription
idID!Required ID of the video to find

Example Query

query {
viewer {
video(id: "VmlkZW86MjM=") {
id
displayName
videoTemplate {
id
name
}
videoType
description1
thumbnail
videoUrl
renderStatus
createdAt
updatedAt
}
}
}

Response

{
"data": {
"viewer": {
"video": {
"id": "VmlkZW86MjM=",
"displayName": "Q1 Product Introduction",
"videoTemplate": {
"id": "VmlkZW9UZW1wbGF0ZToxMg==",
"name": "Product Introduction Template"
},
"videoType": "marketing",
"description1": "Introduction to our new Q1 product lineup",
"thumbnail": "https://cdn.sixtyseconds.video/thumbnails/video-23.jpg",
"videoUrl": "https://cdn.sixtyseconds.video/videos/video-23.mp4",
"renderStatus": "completed",
"createdAt": "2024-01-20T14:30:45Z",
"updatedAt": "2024-01-20T14:35:12Z"
}
}
}
}

List Videos

QUERYvideos

Retrieves a paginated and filterable list of videos with access control based on user roles.

Arguments

ParameterTypeDescription
filterVideoListFilterInputRequired Filter and pagination options

VideoListFilterInput

FieldTypeDescription
searchStringOptional Search term to filter videos by name or description
statusStringOptional Filter videos by processing status
folderIdIDOptional Filter videos by folder ID
pageIntOptional Page number for pagination (default: 1)
limitIntOptional Maximum number of videos to return per page (default: 10)

Example Query

query {
viewer {
videos(filter: {
search: "product",
status: "completed",
page: 1,
limit: 10
}) {
items {
id
displayName
videoTemplate {
name
}
thumbnail
renderStatus
createdAt
}
total
page
limit
pages
}
}
}

Response

{
"data": {
"viewer": {
"videos": {
"items": [
{
"id": "VmlkZW86MjM=",
"displayName": "Q1 Product Introduction",
"videoTemplate": {
"name": "Product Introduction Template"
},
"thumbnail": "https://cdn.sixtyseconds.video/thumbnails/video-23.jpg",
"renderStatus": "completed",
"createdAt": "2024-01-20T14:30:45Z"
},
{
"id": "VmlkZW86MjU=",
"displayName": "Product Demo for Enterprise",
"videoTemplate": {
"name": "Product Demo Template"
},
"thumbnail": "https://cdn.sixtyseconds.video/thumbnails/video-25.jpg",
"renderStatus": "completed",
"createdAt": "2024-01-22T10:15:30Z"
}
],
"total": 2,
"page": 1,
"limit": 10,
"pages": 1
}
}
}
}

Video Fields

The Video object contains the following fields:

FieldTypeDescription
idIDUnique identifier for the video
slugStringURL-friendly identifier for the video
displayNameStringDisplay name of the video
videoTemplateVideoTemplateTemplate used to create the video
videoJobs[VideoJob]Processing jobs associated with the video
metaFields[VideoMeta]Metadata fields for the video
videoTypeStringType of the video
description1StringPrimary description of the video
animatedGifStringURL to an animated GIF preview
thumbnailStringURL to the video thumbnail
videoUrlStringURL to the video file
aspectRatioStringAspect ratio of the video
renderStatusStringCurrent rendering status
renderProgressStatusStringDetailed rendering progress status
createdAtDateTimeCreation date of the video
updatedAtDateTimeLast update date of the video
videoFolders[VideoFolder]Folders containing this video

Video Rendering Status

A video can have one of the following rendering status values:

StatusDescription
pendingThe video is queued for processing
processingThe video is currently being generated
completedThe video has been successfully rendered
failedThe video rendering process encountered an error

Working with Videos

Access Control

Access to video data is controlled by user permissions:

  • Users can access videos they created or videos associated with their brand
  • Organisation admins can access videos of all brands in their organisation
  • Global administrators can access any video in the system

Video Organization

Videos can be organized into folders for better management. Use the folderId parameter in the videos query to filter videos by folder.

Video Publishing

After a video is successfully rendered, it can be published for public viewing. Published videos receive a public URL that can be shared with customers or embedded in websites.

Video Analytics

The SixtySeconds platform tracks engagement metrics for your videos, including:

  • View counts
  • Watch time
  • Completion rates
  • Click-through rates for calls to action

These analytics help you understand how your audience engages with your content and optimize future videos for better performance.