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/v1Available Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /live-streams | Create a new live stream |
| GET | /live-streams | Get 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/count | Count active live streams |
| POST | /live-streams/limit | Get live stream limit for your plan |
| GET | /live-streams/{id}/recording | Get recording of a live stream |
Live Stream Regions
| Region | Code | Description |
|---|---|---|
| US East | use | United States East Coast |
| Europe | euc | European Union Central |
| Singapore | sgp | Singapore (Asia Pacific) |
| India | ind | India |
Simulcast Platforms
You can simulcast your live stream to multiple platforms:
| Service | Code | Description |
|---|---|---|
| YouTube | 1 | YouTube Live |
| 2 | Facebook Live | |
| Twitch | 3 | Twitch |
| Custom RTMP | 4 | Any 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.