Videos
Download SpecList all video objects
List all the video objects that are associated with the current workspace.
apiKey
title
string
The title of a specific video you want to find. The search will match exactly to what term you provide and return any videos that contain the same term as part of their titles.
- Example
- "My Video.mp4"
tags[]
array[string]
A tag is a category you create and apply to videos. You can search for videos with particular tags by listing one or more here. Only videos that have all the tags you list will be returned.
- Example
- "[\"captions\", \"dialogue\"]"
string
metadata
object (metadata)
Videos can be tagged with metadata tags in key:value pairs. You can search for videos with specific key value pairs using this parameter. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "metadata[Author]=John Doe&metadata[Format]=Tutorial"
description
string
Retrieve video objects by description
.
- Example
- "New Zealand"
liveStreamId
string
Retrieve video objects that were recorded from a live stream by liveStreamId
.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
sortBy
string
Use this parameter to sort videos by the their created time, published time, updated time, or by title.
- Enum
-
- title
- createdAt
- publishedAt
- updatedAt
- Example
- "publishedAt"
sortOrder
string
Use this parameter to sort results. asc
is ascending and sorts from A to Z. desc
is descending and sorts from Z to A.
- Enum
-
- asc
- desc
- Example
- "asc"
currentPage
int
Choose the number of search results to return per page. Minimum value: 1
- Default
- 1
- Example
- 2
pageSize
int
Results per page. Allowed values 1-100, default is 25.
- Default
- 25
- Example
- 30
Request
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#list
ApiVideoClient client ;
VideosApi videosApi ;
// list all videos (all pages)
Page videosPages ;
videosPages.;
// list videos that have all the given tags (only first results page)
List videosWithTags ;
// list videos that have all the given metadata values (only first results page)
List videosWithMetadata ;
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#list
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
// list all videos (all pages)
let allVideos = [];
for(let currentPage=1 ; ; currentPage++) {
const res = await client.videos.list({ currentPage });
allVideos = [...allVideos, ...res.data];
if(currentPage >= res.pagination.pagesTotal) {
break;
}
}
// list videos that have all the given tags (only first results page)
const videosWithTags = await client.videos.list({ tags: ["tag1", "tag2"] });
// list videos that have all the given metadata values (only first results page)
const videosWithMetadata = await client.videos.list({ metadata: { "key1": "value1", "key2": "value2" } })
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#list
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#list
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#list
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#list
Response
Success
Bad Request
data
array[object (Video)]
required
Video
object (Video)
- Example
- { "actions": [ "video_delete", "video_download", "video_update" ], "createdAt": "4251-03-03T12:52:03.085Z", "description": "An amazing video explaining the string theory", "metadata": [ { "key": "Author", "value": "John Doe" }, { "key": "Format", "value": "Tutorial" } ], "publishedAt": "4665-07-14T23:36:18.598Z", "tags": [ "maths", "string theory", "video" ], "title": "Maths video", "videoId": "vi4k0jvEUuaTdRAEjQ4Jfrgz" }
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
pagination
object (pagination)
required
- Example
- { "currentPage": 3, "currentPageItems": 20, "itemsTotal": 123, "links": { "first": { "rel": "first", "uri": "/videos/search?currentPage=1&pageSize=20" }, "last": { "rel": "last", "uri": "/videos/search?currentPage=6&pageSize=20" }, "next": { "rel": "next", "uri": "/videos/search?currentPage=4&pageSize=20" }, "previous": { "rel": "previous", "uri": "/videos/search?currentPage=2&pageSize=20" } }, "pageSize": 20, "pagesTotal": 7 }
currentPage
int
The current page index.
currentPageItems
int
The number of items on the current page.
itemsTotal
int
Total number of items that exist.
links
array[object (PaginationLink)]
required
PaginationLink
object (PaginationLink)
rel
string
uri
string
uri
pageSize
int
Maximum number of item per page.
pagesTotal
int
Number of items listed in the current page.
name
string
The name of the parameter that caused the error.
problems
array[object (BadRequest)]
Returns any additional problems in the request in an array of objects.
BadRequest
object (BadRequest)
name
string
The name of the parameter that caused the error.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
Create a video object
Creates a video object. More information on video objects can be found here.
apiKey
video to create
clip
object (clip)
endTimecode
string
^(?:\d{2,3}:[0-5]\d:[0-5]\d(?:\.\d{1,3}|\:\d{1,2})?|\d{1,7})$
startTimecode
string
^(?:\d{2,3}:[0-5]\d:[0-5]\d(?:\.\d{1,3}|\:\d{1,2})?|\d{1,7})$
description
string
A brief description of your video.
- Example
- "A video about string theory."
metadata
array[object (Metadata)]
A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. Read more on dynamic metadata.
- Example
- "[{\"key\": \"Author\", \"value\": \"John Doe\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
Enables mp4 version in addition to streamed version.
- Default
- true
- Example
- true
panoramic
boolean
Indicates if your video is a 360/immersive video.
- Default
- false
- Example
- false
playerId
string
The unique identification number for your video player.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Default: True. If set to false
the video will become private. More information on private videos can be found here
- Default
- true
- Example
- true
source
string
You can either add a video already on the web, by entering the URL of the video, or you can also enter the videoId
of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create.
- Example
- "https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl"
tags
array[string]
A list of tags you want to use to describe your video.
- Example
- "[\"maths\", \"string theory\", \"video\"]"
string
title
string
required
The title of your new video.
- Example
- "Maths video"
watermark
object (watermark)
bottom
string
Distance expressed in px or % between the bottom-border of the video and the watermark-image.
- Example
- "10px"
height
string
Height of the watermark-image relative to the video if expressed in %. Otherwise a fixed height. NOTE: To keep intrinsic watermark-image height use initial
.
- Example
- "initial"
id
string
id of the watermark
- Example
- "watermark_1BWr2L5MTQwxGkuxKjzh6i"
left
string
Distance expressed in px or % between the left-border of the video and the watermark-image.
- Example
- "10px"
opacity
string
Opacity expressed in % only to specify the degree of the watermark-image transparency with the video.
- Example
- "70%"
right
string
Distance expressed in px or % between the right-border of the video and the watermark-image.
- Example
- "10px"
top
string
Distance expressed in px or % between the top-border of the video and the watermark-image.
- Example
- "10px"
width
string
Width of the watermark-image relative to the video if expressed in %. Otherwise a fixed width. NOTE: To keep intrinsic watermark-image width use initial
.
- Example
- "initial"
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#create
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#create
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
// create a simple video
const video = await client.videos.create({ title: "Maths video" });
// create a video using an existing source
const existingSourceVideo = await client.videos.create({
title: "Video using an existing source",
source: "https://www.myvideo.url.com/video.mp4",
});
// create a private video
const privateVideo = await client.videos.create({
title: "Video using an existing source",
_public: false,
});
// create a video using all available attributes
const video = await client.videos.create({
title: "Maths video", // The title of your new video.
description: "A video about string theory.", // A brief description of your video.
source: "https://www.myvideo.url.com/video.mp4", // If you add a video already on the web, this is where you enter the url for the video.
_public: true, // Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view.
panoramic: false, // Indicates if your video is a 360/immersive video.
mp4Support: true, // Enables mp4 version in addition to streamed version.
playerId: "pl45KFKdlddgk654dspkze", // The unique identification number for your video player.
tags: ["maths", "string theory", "video"], // A list of tags you want to use to describe your video.
metadata: [{"key": "Author", "value": "John Doe"}], // A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos.
});
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#create
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # VideoCreationPayload | video to create
# example passing only required values which don't have defaults set
# Create a video
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#create
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#create
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class createExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoCreationPayload = new VideoCreationPayload(); // VideoCreationPayload | video to create
var apiVideosInstance = apiInstance.Videos();
try
{
// Create a video
Video result = apiVideosInstance.create(videoCreationPayload);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.create: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#create
Response
Created
Accepted
Bad Request
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
name
string
The name of the parameter that caused the error.
problems
array[object (BadRequest)]
Returns any additional problems in the request in an array of objects.
BadRequest
object (BadRequest)
name
string
The name of the parameter that caused the error.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
apiKey
Content-Range
string
/(?:bytes (?<from>\d+)-(?<to>\d+)|part (?<part>\d+))\/(?<total>\d+|\*)/
part <part>/<total_parts>
; bytes <from_byte>-<to_byte>/<total_bytes>
- Example
- "bytes 209715200-419430399/524288000 OR part 2/3"
videoId
string
required
Enter the videoId you want to use to upload your video.
- Example
- "vi4k0jvEUuaTdRAEjQ4Jfrgz"
file
string
binary
required
The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the "/videos" endpoint and add the "source" parameter when you create a new video.
- Example
- "@/path/to/video.mp4"
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#upload
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
}
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#upload
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'vi4k0jvEUuaTdRAEjQ4Jfrgz'; // Enter the videoId you want to use to upload your video.
const file = './my-video.mp4'; // The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the "/videos" endpoint and add the "source" parameter when you create a new video.
const video = await client.videos.upload(videoId, file);
// if needed you can define an upload progress listener:
const video2 = await client.videos.upload(videoId, file, (event) => {
console.log("uploadedBytes: " + event.uploadedBytes);
console.log("totalBytes: " + event.totalBytes);
console.log("chunksCount: " + event.chunksCount);
console.log("currentChunk: " + event.currentChunk);
console.log("currentChunkTotalBytes: " + event.currentChunkTotalBytes);
console.log("currentChunkUploadedBytes: " + event.currentChunkUploadedBytes);
});
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#upload
# Enter a context with an instance of the API client
# When uploading a file you can change the chunk size (in octet)
=
# Create an instance of the API class
=
= # str | Enter the videoId you want to use to upload your video.
= # file_type | The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the "/videos" endpoint and add the "source" parameter when you create a new video.
# example passing only required values which don't have defaults set
# Upload a video
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#upload
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#upload
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class uploadExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoId = vi4k0jvEUuaTdRAEjQ4Jfrgz; // string | Enter the videoId you want to use to upload your video.
var file = BINARY_DATA_HERE; // System.IO.Stream | The path to the video you would like to upload. The path must be local. If you want to use a video from an online source, you must use the "/videos" endpoint and add the "source" parameter when you create a new video.
var apiVideosInstance = apiInstance.Videos();
try
{
// Upload a video
Video result = apiVideosInstance.upload(videoId, file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.upload: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#upload
Response
Created
Bad Request
Not Found
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
name
string
The name of the parameter that caused the error.
problems
array[object (BadRequest)]
Returns any additional problems in the request in an array of objects.
BadRequest
object (BadRequest)
name
string
The name of the parameter that caused the error.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
name
string
status
int
title
string
type
string
apiKey
videoId
string
required
Unique identifier of the chosen video
file
string
binary
required
The image to be added as a thumbnail. The mime type should be image/jpeg, image/png or image/webp. The max allowed size is 8 MiB.
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#uploadThumbnail
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#uploadThumbnail
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'videoId_example'; // Unique identifier of the chosen video
const file = './thumbnail.jpg'; // The image to be added as a thumbnail.
const video = await client.videos.uploadThumbnail(videoId, file);
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#uploadThumbnail
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # str | Unique identifier of the chosen video
= # file_type | The image to be added as a thumbnail.
# example passing only required values which don't have defaults set
# Upload a thumbnail
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#uploadThumbnail
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#uploadThumbnail
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class uploadThumbnailExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoId = videoId_example; // string | Unique identifier of the chosen video
var file = BINARY_DATA_HERE; // System.IO.Stream | The image to be added as a thumbnail.
var apiVideosInstance = apiInstance.Videos();
try
{
// Upload a thumbnail
Video result = apiVideosInstance.uploadThumbnail(videoId, file);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.uploadThumbnail: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#uploadThumbnail
Response
Success
Bad Request
Not Found
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
name
string
The name of the parameter that caused the error.
problems
array[object (BadRequest)]
Returns any additional problems in the request in an array of objects.
BadRequest
object (BadRequest)
name
string
The name of the parameter that caused the error.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
status
int
The HTTP status code.
title
string
A description of the error that occurred.
type
string
A link to the error documentation.
name
string
status
int
title
string
type
string
Set a thumbnail
Set a thumbnail from a specific time interval within a video.
apiKey
videoId
string
required
Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail.
- Example
- "vi4k0jvEUuaTdRAEjQ4Jfrgz"
timecode
string
\d{2}:\d{2}:\d{2}(\.\d{2})?
required
Frame in video to be used as a placeholder before the video plays. Example: '"00:01:00.000" for 1 minute into the video.' Valid Patterns: "hh:mm:ss.ms" "hh:mm:ss:frameNumber" "124" (integer value is reported as seconds) If selection is out of range, "00:00:00.00" will be chosen.
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#pickThumbnail
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#pickThumbnail
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'vi4k0jvEUuaTdRAEjQ4Jfrgz'; // Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail.
const videoThumbnailPickPayload = {
timecode: "00:01:00.000", // Frame in video to be used as a placeholder before the video plays.
};
const video = await client.videos.pickThumbnail(videoId, videoThumbnailPickPayload);
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#pickThumbnail
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # str | Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail.
= # VideoThumbnailPickPayload |
# example passing only required values which don't have defaults set
# Pick a thumbnail
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#pickThumbnail
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#pickThumbnail
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class pickThumbnailExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoId = vi4k0jvEUuaTdRAEjQ4Jfrgz; // string | Unique identifier of the video you want to add a thumbnail to, where you use a section of your video as the thumbnail.
var videoThumbnailPickPayload = new VideoThumbnailPickPayload(); // VideoThumbnailPickPayload |
var apiVideosInstance = apiInstance.Videos();
try
{
// Pick a thumbnail
Video result = apiVideosInstance.pickThumbnail(videoId, videoThumbnailPickPayload);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.pickThumbnail: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#pickThumbnail
Response
Success
Not Found
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
name
string
status
int
title
string
type
string
apiKey
videoId
string
required
The unique identifier for the video you want details about.
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#get
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#get
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'vi4k0jvEUuaTdRAEjQ4Jfrgz'; // The unique identifier for the video you want to retrieve.
const result = await client.videos.get(videoId);
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#get
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # str | The unique identifier for the video you want details about.
# example passing only required values which don't have defaults set
# Show a video
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#get
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#get
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class getExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoId = videoId_example; // string | The unique identifier for the video you want details about.
var apiVideosInstance = apiInstance.Videos();
try
{
// Show a video
Video result = apiVideosInstance.get(videoId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.get: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#get
Response
Success
Not Found
assets
object (assets)
Collection of details about the video object that you can use to work with the video object.
hls
string
uri
This is the manifest URL. For HTTP Live Streaming (HLS), when a HLS video stream is initiated, the first file to download is the manifest. This file has the extension M3U8, and provides the video player with information about the various bitrates available for streaming.
iframe
string
Code to use video from a third party website
- Example
- "<iframe src=\"//embed.api.video/c188ed58-3403-46a2-b91b-44603d10b2c9?token=831a9bd9-9f50-464c-a369-8e9d914371ae\" width=\"100%\" height=\"100%\" frameborder=\"0\" scrolling=\"no\" allowfullscreen=\"\"></iframe>"
mp4
string
uri
Available only if mp4Support is enabled. Raw mp4 url.
- Example
- "https://cdn.api.video/vod/vi4k0jvEUuaTdRAEjQ4Jfrgz/token/8fd70443-d9f0-45d2-b01c-12c8cfc707c9/mp4/source.mp4"
player
string
uri
Raw url of the player.
- Example
- "https://embed.api.video/1b9d6ae8-8f57-4b6d-8552-d636926b4f5f?token=831a9bd9-9f50-464c-a369-8e9d914371ae"
thumbnail
string
uri
Poster of the video.
- Example
- "https://cdn.api.video/stream/831a9bd9-9f50-464c-a369-8e9d914371ae/thumbnail.jpg"
createdAt
string
date-time
When a video was created, presented in ISO-8601 format.
- Example
- "2019-06-24T11:45:01.109+00"
description
string
A description for the video content.
- Example
- "An amazing video explaining string theory."
metadata
array[object (Metadata)]
Metadata you can use to categorise and filter videos. Metadata is a list of dictionaries, where each dictionary represents a key value pair for categorising a video. Dynamic Metadata allows you to define a key that allows any value pair.
- Example
- "[{\"key\":\"Author\", \"value\":\"John Doe\"}, {\"key\":\"Format\", \"value\":\"Tutorial\"}]"
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
This lets you know whether mp4 is supported. If enabled, an mp4 URL will be provided in the response for the video.
- Example
- true
panoramic
boolean
Defines if video is panoramic.
- Example
- false
playerId
string
The id of the player that will be applied on the video.
- Example
- "pl45KFKdlddgk654dspkze"
public
boolean
Defines if the content is publicly reachable or if a unique token is needed for each play session. Default is true. Tutorials on private videos.
- Example
- false
publishedAt
string
date-time
The date and time the API created the video. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:25:51.000Z"
source
object (source)
Source information about the video.
liveStream
object (liveStream)
This appears if the video is from a Live Record.
links
array[object]
object
rel
string
uri
string
liveStreamId
string
The unique identifier for the live stream.
- Example
- "li400mYKSgQ6xs7taUeSaEKr"
type
string
uri
string
The URL where the video is stored.
- Example
- "/videos/vi4k0jvEUuaTdRAEjQ4Prklg/source"
tags
array[string]
One array of tags (each tag is a string) in order to categorize a video. Tags may include spaces.
- Example
- "\"tags\": [\"maths\", \"string theory\", \"video\"]"
string
title
string
The title of the video content.
- Example
- "Maths video"
updatedAt
string
date-time
The date and time the video was updated. Date and time are provided using ISO-8601 UTC format.
- Example
- "2019-12-16T08:15:51.000Z"
videoId
string
required
The unique identifier of the video object.
- Example
- "vi4k0jvEUuaTdRAEjQ4Prklg"
name
string
status
int
title
string
type
string
apiKey
videoId
string
required
The video ID for the video you want to delete.
- Example
- "vi4k0jvEUuaTdRAEjQ4Jfrgz"
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#delete
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#delete
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'vi4k0jvEUuaTdRAEjQ4Jfrgz'; // the id of the video to delete
await client.videos.delete(videoId);
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#delete
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # str | The video ID for the video you want to delete.
# example passing only required values which don't have defaults set
# Delete a video
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#delete
;
;
;
;
;
// First add the "ApiVideo" NuGet package to your project
// Documentation: https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideosApi.md#delete
using System.Diagnostics;
using ApiVideo.Client;
namespace Example
{
public class deleteExample
{
public static void Main()
{
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
var apiKey = "YOUR_API_KEY";
var apiInstance = new ApiVideoClient(apiKey,basePath);
var videoId = vi4k0jvEUuaTdRAEjQ4Jfrgz; // string | The video ID for the video you want to delete.
var apiVideosInstance = apiInstance.Videos();
try
{
// Delete a video
apiVideosInstance.delete(videoId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling VideosApi.delete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
// First install the api client: https://github.com/apivideo/api.video-ios-client#getting-started
// Documentation: https://github.com/apivideo/api.video-ios-client/blob/main/docs/VideosAPI.md#delete
Response
No Content
Empty response
Not Found
No schema
name
string
status
int
title
string
type
string
apiKey
videoId
string
required
The video ID for the video you want to update.
- Example
- "vi4k0jvEUuaTdRAEjQ4Jfrgz"
description
string
A brief description of the video.
- Example
- "A film about good books."
metadata
array[object (Metadata)]
A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. Dynamic Metadata allows you to define a key that allows any value pair.
Metadata
object (Metadata)
key
string
The constant that defines the data set.
- Example
- "Color"
value
string
A variable which belongs to the data set.
- Example
- "Green"
mp4Support
boolean
Whether the player supports the mp4 format.
- Example
- true
panoramic
boolean
Whether the video is a 360 degree or immersive video.
- Example
- false
playerId
string
The unique ID for the player you want to associate with your video.
- Example
- "pl4k0jvEUuaTdRAEjQ4Jfrgz"
public
boolean
Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on private videos.
- Example
- true
tags
array[string]
A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video.
- Example
- "[\"maths\", \"string theory\", \"video\"]"
string
title
string
The title you want to use for your video.
Request
// First install the go client with "go get github.com/apivideo/api.video-go-client"
// Documentation: https://github.com/apivideo/api.video-go-client/blob/main/docs/VideosApi.md#update
package main
import (
"context"
"fmt"
"os"
apivideosdk "github.com/apivideo/api.video-go-client"
)
func main()
// First install the "@api.video/nodejs-client" npm package
// Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#update
const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" });
const videoId = 'vi4k0jvEUuaTdRAEjQ4Jfrgz'; // The video ID for the video you want to update.
// define the value you want to update
const videoUpdatePayload = {
playerId: "pl4k0jvEUuaTdRAEjQ4Jfrgz", // The unique ID for the player you want to associate with your video.
title: "title_example", // The title you want to use for your video.
description: "A film about good books.", // A brief description of the video.
_public: true, // Whether the video is publicly available or not. False means it is set to private.
panoramic: false, // Whether the video is a 360 degree or immersive video.
mp4Support: true, // Whether the player supports the mp4 format.
tags: ["maths", "string theory", "video"], // A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video.
metadata: [{"key": "Author", "value": "John Doe"}], // A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video.
};
const updatedVideo = await client.videos.update(videoId, videoUpdatePayload);
# First install the api client with "pip install api.video"
# Documentation: https://github.com/apivideo/api.video-python-client/blob/main/docs/VideosApi.md#update
# Enter a context with an instance of the API client
# Create an instance of the API class
=
= # str | The video ID for the video you want to delete.
= # VideoUpdatePayload |
# example passing only required values which don't have defaults set
# Update a video
=
// First add the "video.api:java-api-client" maven dependency to your project
// Documentation: https://github.com/apivideo/api.video-java-client/blob/main/docs/VideosApi.md#update
;
;
;
;