Live streaming

Live Streaming

Use the Live Streaming API to create, manage, and broadcast live streams with support for multi-platform simulcasting.

Base URL

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

Available Endpoints

Method / Endpoint / Description
MethodEndpointDescription
POST/live-streamsCreate a new live stream
GET/live-streamsGet list of live streams
GET/live-streams/{id}Get a single live stream
PUT/live-streams/{id}Update a live stream
DELETE/live-streams/{id}Delete a live stream
POST/live-streams/countCount active live streams
POST/live-streams/limitGet live stream limit for your plan
GET/live-streams/{id}/recordingGet recording of a live stream

Live Stream Regions

Region / Code / Description
RegionCodeDescription
US EastuseUnited States East Coast
EuropeeucEuropean Union Central
SingaporesgpSingapore (Asia Pacific)
IndiaindIndia

Simulcast Platforms

You can simulcast your live stream to multiple platforms:

Service / Code / Description
ServiceCodeDescription
YouTube1YouTube Live
Facebook2Facebook Live
Twitch3Twitch
Custom RTMP4Any custom RTMP endpoint

Quick Example

javascript
// Create a new live stream
const response = await fetch('https://api.dyntube.com/v1/live-streams', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'My Live Stream',
    region: 'use',
    record: true,
    platforms: []
  })
});

const stream = await response.json();
console.log('Stream key:', stream.streamKey);

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