api.video

App · 20 actions

Create and manage videos, live streams, players and upload tokens.

Actions

ActionWhat it does
Create live streamCreate live stream.
Create playerCreate player.
Create upload tokenCreate upload token.
Create videoCreate video.
Delete live streamDelete live stream.
Delete playerDelete player.
Delete upload tokenDelete upload token.
Delete videoDelete video.
Get live streamGet live stream.
Get playerGet player.
Get videoGet video.
Get video statusGet video status.
List live streamsList live streams.
List playersList players.
List upload tokensList upload tokens.
List videosList videos.
List webhooksList webhooks.
Update live streamUpdate live stream.
Update playerUpdate player.
Update videoUpdate video.

Create live stream

Create live stream.

Inputs

NamenametextRequired
Add a name for your live stream here.
Publicpublictrue/false
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. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos).
Playerplayer_idtext
The unique identifier for the player.
Restreamsrestreamslist
Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "broadcasting": true,
    "createdAt": "example",
    "liveStreamId": "example",
    "name": "example",
    "playerId": "example",
    "public": true,
    "restreams": [
      {
        "name": "example",
        "serverUrl": "example",
        "streamKey": "example"
      }
    ],
    "streamKey": "example",
    "updatedAt": "example"
  }
}

Create player

Create player.

Inputs

Namenametext
Add a name for your player theme here.
Texttexttext
RGBA color for timer text. Default: rgba(255, 255, 255, 1).
Linklinktext
RGBA color for all controls. Default: rgba(255, 255, 255, 1).
Link hoverlink_hovertext
RGBA color for all controls when hovered. Default: rgba(255, 255, 255, 1).
Link activelink_activetext
RGBA color for the play button when hovered.
Track playedtrack_playedtext
RGBA color playback bar: played content. Default: rgba(88, 131, 255, .95).
Track unplayedtrack_unplayedtext
RGBA color playback bar: downloaded but unplayed (buffered) content. Default: rgba(255, 255, 255, .35).
Track backgroundtrack_backgroundtext
RGBA color playback bar: background. Default: rgba(255, 255, 255, .2).
Background topbackground_toptext
RGBA color: top 50% of background. Default: rgba(0, 0, 0, .7).
Background bottombackground_bottomtext
RGBA color: bottom 50% of background. Default: rgba(0, 0, 0, .7).
Background textbackground_texttext
RGBA color for title text. Default: rgba(255, 255, 255, 1).
Enable APIenable_apitrue/false
enable/disable player SDK access. Default: true.
Enable controlsenable_controlstrue/false
enable/disable player controls. Default: true.
Force autoplayforce_autoplaytrue/false
enable/disable player autoplay. Default: false.
Hide titlehide_titletrue/false
enable/disable title. Default: false.
Force loopforce_looptrue/false
enable/disable looping. Default: false.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "link": "example",
      "logo": "example"
    },
    "backgroundBottom": "example",
    "backgroundText": "example",
    "backgroundTop": "example",
    "createdAt": "example",
    "enableApi": true,
    "enableControls": true,
    "forceAutoplay": true,
    "forceLoop": true,
    "hideTitle": true,
    "link": "example",
    "linkActive": "example",
    "linkHover": "example",
    "name": "example",
    "playerId": "example",
    "text": "example",
    "trackBackground": "example",
    "trackPlayed": "example",
    "trackUnplayed": "example",
    "updatedAt": "example"
  }
}

Create upload token

Create upload token.

Inputs

Ttlttlnumber
Time in seconds that the token will be active. A value of 0 means that the token has no exipration date. The default is to have no expiration.From 0 to 2147483647.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "createdAt": "example",
    "expiresAt": "example",
    "token": "example",
    "ttl": 1
  }
}

Create video

Create video.

Inputs

TitletitletextRequired
The title of your new video.
Descriptiondescriptiontext
A brief description of your video.
Sourcesourcetext
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 wa.
Publicpublictrue/false
Default: True. If set to false the video will become private. More information on private videos can be found [here](https://docs.api.video/docs/private-videos).
Panoramicpanoramictrue/false
Indicates if your video is a 360/immersive video.
Mp4 supportmp4_supporttrue/false
Enables mp4 version in addition to streamed version.
Playerplayer_idtext
The unique identification number for your video player.
Tagstagslist
A list of tags you want to use to describe your video.
Record metadatarecord_metadatalist
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](https://api.video/blog/endpoints/dynamic-metadata).
Clipclipobject
Clip.
Watermarkwatermarkobject
Watermark.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "mp4": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "createdAt": "example",
    "description": "example",
    "metadata": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "mp4Support": true,
    "panoramic": true,
    "playerId": "example",
    "public": true,
    "publishedAt": "example",
    "source": {
      "liveStream": {
        "links": [
          {}
        ],
        "liveStreamId": "example"
      },
      "type": "example",
      "uri": "example"
    },
    "tags": [
      "example"
    ],
    "title": "example",
    "updatedAt": "example",
    "videoId": "example"
  }
}

Delete live stream

Delete live stream.

Inputs

Live streamlive_stream_idtextRequired
The unique ID for the live stream that you want to remove.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {}
}

Delete player

Delete player.

Inputs

Playerplayer_idtextRequired
The unique identifier for the player you want to delete.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {}
}

Delete upload token

Delete upload token.

Inputs

Upload tokenupload_tokentextRequired
The unique identifier for the upload token you want to delete. Deleting a token will make it so the token can no longer be used for authentication.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {}
}

Delete video

Delete video.

Inputs

Videovideo_idtextRequired
The video ID for the video you want to delete.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {}
}

Get live stream

Get live stream.

Inputs

Live streamlive_stream_idtextRequired
The unique ID for the live stream you want to watch.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "broadcasting": true,
    "createdAt": "example",
    "liveStreamId": "example",
    "name": "example",
    "playerId": "example",
    "public": true,
    "restreams": [
      {
        "name": "example",
        "serverUrl": "example",
        "streamKey": "example"
      }
    ],
    "streamKey": "example",
    "updatedAt": "example"
  }
}

Get player

Get player.

Inputs

Playerplayer_idtextRequired
The unique identifier for the player you want to retrieve.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "link": "example",
      "logo": "example"
    },
    "backgroundBottom": "example",
    "backgroundText": "example",
    "backgroundTop": "example",
    "createdAt": "example",
    "enableApi": true,
    "enableControls": true,
    "forceAutoplay": true,
    "forceLoop": true,
    "hideTitle": true,
    "link": "example",
    "linkActive": "example",
    "linkHover": "example",
    "name": "example",
    "playerId": "example",
    "text": "example",
    "trackBackground": "example",
    "trackPlayed": "example",
    "trackUnplayed": "example",
    "updatedAt": "example"
  }
}

Get video

Get video.

Inputs

Videovideo_idtextRequired
The unique identifier for the video you want details about.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "mp4": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "createdAt": "example",
    "description": "example",
    "metadata": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "mp4Support": true,
    "panoramic": true,
    "playerId": "example",
    "public": true,
    "publishedAt": "example",
    "source": {
      "liveStream": {
        "links": [
          {}
        ],
        "liveStreamId": "example"
      },
      "type": "example",
      "uri": "example"
    },
    "tags": [
      "example"
    ],
    "title": "example",
    "updatedAt": "example",
    "videoId": "example"
  }
}

Get video status

Get video status.

Inputs

Videovideo_idtextRequired
The unique identifier for the video you want the status for.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "encoding": {
      "metadata": {
        "aspectRatio": "example",
        "audioCodec": "example",
        "bitrate": 1,
        "duration": 1,
        "framerate": 1,
        "height": 1,
        "samplerate": 1,
        "videoCodec": "example",
        "width": 1
      },
      "playable": true,
      "qualities": [
        {
          "quality": "example",
          "status": "example",
          "type": "example"
        }
      ]
    },
    "ingest": {
      "filesize": 1,
      "receivedBytes": [
        {
          "from": 1,
          "to": 1,
          "total": 1
        }
      ],
      "receivedParts": {
        "parts": [
          1
        ],
        "total": 1
      },
      "status": "example"
    }
  }
}

List live streams

List live streams.

Inputs

Stream keystream_keytext
The unique stream key that allows you to stream videos.
Namenametext
You can filter live streams by their name or a part of their name.
Sort bysort_bytext
Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format.
Sort ordersort_ordertext
Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending.One of: asc, desc.
Current pagecurrent_pagenumber
Choose the number of search results to return per page. Minimum value: 1.
Page sizepage_sizenumber
Results per page. Allowed values 1-100, default is 25.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "data": [
      {
        "assets": {
          "hls": "example",
          "iframe": "example",
          "player": "example",
          "thumbnail": "example"
        },
        "broadcasting": true,
        "createdAt": "example",
        "liveStreamId": "example",
        "name": "example",
        "playerId": "example",
        "public": true,
        "restreams": [
          {}
        ],
        "streamKey": "example",
        "updatedAt": "example"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "currentPageItems": 1,
      "itemsTotal": 1,
      "links": [
        {
          "rel": "example",
          "uri": "example"
        }
      ],
      "pageSize": 1,
      "pagesTotal": 1
    }
  }
}

List players

List players.

Inputs

Sort bysort_bytext
createdAt is the time the player was created. updatedAt is the time the player was last updated. The time is presented in ISO-8601 format.One of: name, createdAt, updatedAt.
Sort ordersort_ordertext
Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones.One of: asc, desc.
Current pagecurrent_pagenumber
Choose the number of search results to return per page. Minimum value: 1.
Page sizepage_sizenumber
Results per page. Allowed values 1-100, default is 25.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "data": [
      {
        "assets": {
          "link": "example",
          "logo": "example"
        },
        "backgroundBottom": "example",
        "backgroundText": "example",
        "backgroundTop": "example",
        "createdAt": "example",
        "enableApi": true,
        "enableControls": true,
        "forceAutoplay": true,
        "forceLoop": true,
        "hideTitle": true,
        "link": "example",
        "linkActive": "example",
        "linkHover": "example",
        "name": "example",
        "playerId": "example",
        "text": "example",
        "trackBackground": "example",
        "trackPlayed": "example",
        "trackUnplayed": "example",
        "updatedAt": "example"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "currentPageItems": 1,
      "itemsTotal": 1,
      "links": [
        {
          "rel": "example",
          "uri": "example"
        }
      ],
      "pageSize": 1,
      "pagesTotal": 1
    }
  }
}

List upload tokens

List upload tokens.

Inputs

Sort bysort_bytext
Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ISO-8601 format.One of: createdAt, ttl.
Sort ordersort_ordertext
Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A.One of: asc, desc.
Current pagecurrent_pagenumber
Choose the number of search results to return per page. Minimum value: 1.
Page sizepage_sizenumber
Results per page. Allowed values 1-100, default is 25.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "expiresAt": "example",
        "token": "example",
        "ttl": 1
      }
    ],
    "pagination": {
      "currentPage": 1,
      "currentPageItems": 1,
      "itemsTotal": 1,
      "links": [
        {
          "rel": "example",
          "uri": "example"
        }
      ],
      "pageSize": 1,
      "pagesTotal": 1
    }
  }
}

List videos

List videos.

Inputs

Titletitletext
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.
Tagstagslist
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.
Record metadatarecord_metadataobject
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](https://api.video/blog/endpoints/dynamic-metadata) allows you to define a key that allows any value pair.
Descriptiondescriptiontext
Retrieve video objects by description.
Live streamlive_stream_idtext
Retrieve video objects that were recorded from a live stream by liveStreamId.
Sort bysort_bytext
Use this parameter to sort videos by the their created time, published time, updated time, or by title.One of: title, createdAt, publishedAt, updatedAt.
Sort ordersort_ordertext
Use this parameter to sort results. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to A.One of: asc, desc.
Current pagecurrent_pagenumber
Choose the number of search results to return per page. Minimum value: 1.
Page sizepage_sizenumber
Results per page. Allowed values 1-100, default is 25.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "data": [
      {
        "assets": {
          "hls": "example",
          "iframe": "example",
          "mp4": "example",
          "player": "example",
          "thumbnail": "example"
        },
        "createdAt": "example",
        "description": "example",
        "metadata": [
          {}
        ],
        "mp4Support": true,
        "panoramic": true,
        "playerId": "example",
        "public": true,
        "publishedAt": "example",
        "source": {
          "liveStream": {},
          "type": "example",
          "uri": "example"
        },
        "tags": [
          "example"
        ],
        "title": "example",
        "updatedAt": "example",
        "videoId": "example"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "currentPageItems": 1,
      "itemsTotal": 1,
      "links": [
        {
          "rel": "example",
          "uri": "example"
        }
      ],
      "pageSize": 1,
      "pagesTotal": 1
    }
  }
}

List webhooks

List webhooks.

Inputs

Eventseventstext
The webhook event that you wish to filter on.
Current pagecurrent_pagenumber
Choose the number of search results to return per page. Minimum value: 1.
Page sizepage_sizenumber
Results per page. Allowed values 1-100, default is 25.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "events": [
          "example"
        ],
        "url": "example",
        "webhookId": "example"
      }
    ],
    "pagination": {
      "currentPage": 1,
      "currentPageItems": 1,
      "itemsTotal": 1,
      "links": [
        {
          "rel": "example",
          "uri": "example"
        }
      ],
      "pageSize": 1,
      "pagesTotal": 1
    }
  }
}

Update live stream

Update live stream.

Inputs

Live streamlive_stream_idtextRequired
The unique ID for the live stream that you want to update information for such as player details.
Namenametext
The name you want to use for your live stream.
Publicpublictrue/false
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. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos).
Playerplayer_idtext
The unique ID for the player associated with a live stream that you want to update.
Restreamsrestreamslist
Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations. This operation updates all restream destinations in the same request. If you do not want to modify an existing restream destination, you need to include it in your request, otherwise it is remo.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "broadcasting": true,
    "createdAt": "example",
    "liveStreamId": "example",
    "name": "example",
    "playerId": "example",
    "public": true,
    "restreams": [
      {
        "name": "example",
        "serverUrl": "example",
        "streamKey": "example"
      }
    ],
    "streamKey": "example",
    "updatedAt": "example"
  }
}

Update player

Update player.

Inputs

Playerplayer_idtextRequired
The unique identifier for the player.
Namenametext
Add a name for your player theme here.
Texttexttext
RGBA color for timer text. Default: rgba(255, 255, 255, 1).
Linklinktext
RGBA color for all controls. Default: rgba(255, 255, 255, 1).
Link hoverlink_hovertext
RGBA color for all controls when hovered. Default: rgba(255, 255, 255, 1).
Link activelink_activetext
RGBA color for the play button when hovered.
Track playedtrack_playedtext
RGBA color playback bar: played content. Default: rgba(88, 131, 255, .95).
Track unplayedtrack_unplayedtext
RGBA color playback bar: downloaded but unplayed (buffered) content. Default: rgba(255, 255, 255, .35).
Track backgroundtrack_backgroundtext
RGBA color playback bar: background. Default: rgba(255, 255, 255, .2).
Background topbackground_toptext
RGBA color: top 50% of background. Default: rgba(0, 0, 0, .7).
Background bottombackground_bottomtext
RGBA color: bottom 50% of background. Default: rgba(0, 0, 0, .7).
Background textbackground_texttext
RGBA color for title text. Default: rgba(255, 255, 255, 1).
Enable APIenable_apitrue/false
enable/disable player SDK access. Default: true.
Enable controlsenable_controlstrue/false
enable/disable player controls. Default: true.
Force autoplayforce_autoplaytrue/false
enable/disable player autoplay. Default: false.
Hide titlehide_titletrue/false
enable/disable title. Default: false.
Force loopforce_looptrue/false
enable/disable looping. Default: false.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "link": "example",
      "logo": "example"
    },
    "backgroundBottom": "example",
    "backgroundText": "example",
    "backgroundTop": "example",
    "createdAt": "example",
    "enableApi": true,
    "enableControls": true,
    "forceAutoplay": true,
    "forceLoop": true,
    "hideTitle": true,
    "link": "example",
    "linkActive": "example",
    "linkHover": "example",
    "name": "example",
    "playerId": "example",
    "text": "example",
    "trackBackground": "example",
    "trackPlayed": "example",
    "trackUnplayed": "example",
    "updatedAt": "example"
  }
}

Update video

Update video.

Inputs

Videovideo_idtextRequired
The video ID for the video you want to update.
Playerplayer_idtext
The unique ID for the player you want to associate with your video.
Titletitletext
The title you want to use for your video.
Descriptiondescriptiontext
A brief description of the video.
Publicpublictrue/false
Whether the video is publicly available or not. False means it is set to private. Default is true. Tutorials on [private videos](https://api.video/blog/endpoints/private-videos).
Panoramicpanoramictrue/false
Whether the video is a 360 degree or immersive video.
Mp4 supportmp4_supporttrue/false
Whether the player supports the mp4 format.
Tagstagslist
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.
Record metadatarecord_metadatalist
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](https://api.video/blog/endpoints/dynamic-metadata) allows you to define.

Outputs

dataobject
The response from api.video.
Example output
{
  "data": {
    "assets": {
      "hls": "example",
      "iframe": "example",
      "mp4": "example",
      "player": "example",
      "thumbnail": "example"
    },
    "createdAt": "example",
    "description": "example",
    "metadata": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "mp4Support": true,
    "panoramic": true,
    "playerId": "example",
    "public": true,
    "publishedAt": "example",
    "source": {
      "liveStream": {
        "links": [
          {}
        ],
        "liveStreamId": "example"
      },
      "type": "example",
      "uri": "example"
    },
    "tags": [
      "example"
    ],
    "title": "example",
    "updatedAt": "example",
    "videoId": "example"
  }
}

On this page