API · v1.4
Video infrastructure for developers.
Upload, transcode, and stream video at scale. One API for ingest, adaptive playback, and global edge delivery.
# create and process a new video curl -X POST https://xdanil.com/v1/videos \ -H "Authorization: Bearer cf_live_••••••••••••" \ -F "file=@render_final.mp4" \ -F "visibility=unlisted"
// create and process a new video const form = new FormData(); form.append("file", fs.createReadStream("render_final.mp4")); form.append("visibility", "unlisted"); const res = await fetch("https://xdanil.com/v1/videos", { method: "POST", headers: { Authorization: "Bearer cf_live_••••••••••••" }, body: form, }); const video = await res.json();
# create and process a new video import requests res = requests.post( "https://xdanil.com/v1/videos", headers={"Authorization": "Bearer cf_live_••••••••••••"}, files={"file": open("render_final.mp4", "rb")}, data={"visibility": "unlisted"}, ) video = res.json()
{
"id": "vid_8f3a1c2b9e",
"status": "processing",
"duration": null,
"playback_url": "https://xdanil.com/play/vid_8f3a1c2b9e/master.m3u8",
"thumbnail_url": null,
"created_at": "2026-10-19T09:14:02Z"
}
Adaptive streaming
Automatic bitrate ladders and HLS/DASH packaging on ingest.
Global edge delivery
Playback served from edge nodes close to every viewer.
Signed playback URLs
Time-limited, domain-locked links for private content.
Webhooks
Real-time events for processing, playback, and moderation.
| Method | Path | Description |
|---|---|---|
| POST | /v1/videos | Upload and process a new video |
| GET | /v1/videos/:id | Retrieve video metadata and status |
| GET | /v1/videos | List videos on the account |
| POST | /v1/videos/:id/webhooks | Register a webhook for an event |
| DELETE | /v1/videos/:id | Delete a video and its renditions |