Videos
Videos
Use the Videos API to upload, manage, and retrieve video content programmatically.
Base URL
example
https://api.dyntube.com/v1For video uploads, use:
example
https://upload.dyntube.com/v1Available Endpoints
Upload Videos
| Method | Endpoint | Description |
|---|---|---|
| POST | /videos | Upload video via file (server-side, upload.dyntube.com) |
| POST | /videos | Upload video via URL (server-side, upload.dyntube.com) |
| POST | /videos/browser | Upload via HTML form (tokenized browser URL, upload.dyntube.com) |
Manage Videos
| Method | Endpoint | Description |
|---|---|---|
| GET | /videos | Get list of videos |
| GET | /videos/{id} | Get a single video |
| GET | /videos/{id}/status | Get video transcoding status |
| PUT | /videos/{id} | Update video details |
| DELETE | /videos/{id} | Delete a video |
| POST | /videos/change-project | Move videos between projects |
Additional Operations
| Method | Endpoint | Description |
|---|---|---|
| GET | /videos/{id}/original-file | Get original video URL |
| POST | /videos/{id}/expirable-link | Create 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 |
|---|---|---|
| Na | 0 | Not available |
| Uploaded | 1 | Uploaded |
| Processing | 2 | Transcoding in progress |
| Published | 3 | Ready for playback |
| Error | -1 | Transcoding failed |
| Deleted | 50 | Deleted |
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.