Videos

Videos

Use the Videos API to upload, manage, and retrieve video content programmatically.

Base URL

example
https://api.dyntube.com/v1

For video uploads, use:

example
https://upload.dyntube.com/v1

Available Endpoints

Upload Videos

Method / Endpoint / Description
MethodEndpointDescription
POST/videosUpload video via file (server-side, upload.dyntube.com)
POST/videosUpload video via URL (server-side, upload.dyntube.com)
POST/videos/browserUpload via HTML form (tokenized browser URL, upload.dyntube.com)

Manage Videos

Method / Endpoint / Description
MethodEndpointDescription
GET/videosGet list of videos
GET/videos/{id}Get a single video
GET/videos/{id}/statusGet video transcoding status
PUT/videos/{id}Update video details
DELETE/videos/{id}Delete a video
POST/videos/change-projectMove videos between projects

Additional Operations

Method / Endpoint / Description
MethodEndpointDescription
GET/videos/{id}/original-fileGet original video URL
POST/videos/{id}/expirable-linkCreate expirable playback link
PUT/videos/image/{id}Update video thumbnail (upload.dyntube.com)
POST/videos/captions/{id}Add captions/subtitles (upload.dyntube.com)
DELETE/videos/captions?videoId=&captionsId=Delete captions/subtitles (upload.dyntube.com)

Video Status Codes

When checking video status, you'll receive one of these values:

Status / Value / Description
StatusValueDescription
Na0Not available
Uploaded1Uploaded
Processing2Transcoding in progress
Published3Ready for playback
Error-1Transcoding failed
Deleted50Deleted

Quick Example

javascript
// Get list of videos
const response = await fetch('https://api.dyntube.com/v1/videos', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data.videos);

Something missing or wrong here? Tell us and we will correct it. New to DynTube? Start with uploading and embedding.