2020-10-05 04:59:43 +03:00
openapi : 3.0 .1
info :
title : Owncast
2020-10-14 19:38:48 +03:00
description : Owncast is a self-hosted live video and web chat server for use with existing popular broadcasting software. The following APIs represent the state in the development master branch.
version : '0.0.3-development'
contact :
name : Gabe Kangas
email : gabek@real-ity.com
url : http://owncast.online
2020-10-08 03:04:06 +03:00
x-logo :
url : >-
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAEvmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjEyOCIKICAgZXhpZjpQaXhlbFlEaW1lbnNpb249IjEyOCIKICAgZXhpZjp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Admin operations requiring authentication.
- name : Chat
description : Endpoints related to the chat interface.
components :
schemas :
2020-10-08 03:04:06 +03:00
ClientArray :
type : array
items :
$ref : '#/components/schemas/Client'
2020-10-30 04:41:21 +03:00
LogEntryArray :
type : array
items :
$ref : '#/components/schemas/LogEntry'
2020-10-08 03:04:06 +03:00
Client :
type : object
description : A single representation of a client.
example :
connectedAt : '2020-10-06T23:20:44.588649-07:00'
messageCount : 0
userAgent : >-
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
ipAddress : '::1'
username : null
clientID : 2ba20dd34f911c198df3218ddc64c740
geo :
countryCode : US
regionName : California
timeZone : America/Los_Angeles
properties :
connectedAt :
type : string
format : date-time
messageCount :
description : Number of chat messages sent by user
type : integer
userAgent :
description : The web client used to connect to this server
type : string
ipAddress :
description : The public IP address of this client
type : string
username :
description : The username for this client in chat if available
type : string
clientID :
description : The value used to identify this client
type : string
geo :
type : object
description : Optional geographic data for the client
properties :
countryCode :
type : string
regionName :
type : string
timeZone :
type : string
x-last-modified : 1602052347511
2020-10-05 04:59:43 +03:00
BasicResponse :
type : object
properties :
success :
type : boolean
message :
type : string
InstanceDetails :
type : object
2020-10-08 03:04:06 +03:00
description : User-facing details about this server.
2020-10-05 04:59:43 +03:00
properties :
name :
type : string
2020-10-08 03:04:06 +03:00
description : Displayed as the header in the instance details.
2020-10-05 04:59:43 +03:00
title :
type : string
2020-10-08 03:04:06 +03:00
description : Displayed in the document title and header.
2020-10-05 04:59:43 +03:00
summary :
type : string
description : This is brief summary of whom you are or what the stream is.
logo :
type : object
properties :
large :
type : string
small :
type : string
tags :
type : array
2020-10-08 03:04:06 +03:00
description : Categories of the content this instance focuses on.
2020-10-05 04:59:43 +03:00
items :
type : string
socialHandles :
type : array
2020-10-08 03:04:06 +03:00
description : Links to social network urls.
2020-10-05 04:59:43 +03:00
items :
type : object
properties :
platform :
type : string
example : github
url :
type : string
example : http://github.com/owncast/owncast
2020-10-14 19:38:48 +03:00
extraPageContent :
2020-10-05 04:59:43 +03:00
type : string
2020-10-14 02:45:52 +03:00
description : Additional HTML content to render in the body of the web interface.
example : "<p>This page is <strong>super</strong> cool!"
2020-10-05 04:59:43 +03:00
version :
type : string
2020-10-22 08:40:48 +03:00
example : Owncast v0.0.3-macOS (ef3796a033b32a312ebf5b334851cbf9959e7ecb)
2020-10-08 08:42:14 +03:00
YP :
type : object
description : Configuration of the instance's registration to the Owncast Directory (YP API)
properties :
enabled :
type : boolean
description : If YP support is on or off. Must be enabled to show in the directory.
default : false
instanceUrl :
type : string
description : The public URL of this owncast server, used for registration and linking with the directory. Must be publicly available.
2020-10-05 04:59:43 +03:00
S3 :
type : object
2020-10-08 03:04:06 +03:00
description : Configuration of external storage using S3-compatible providers.
2020-10-05 04:59:43 +03:00
properties :
enabled :
type : boolean
endpoint :
type : string
servingEndpoint :
type : string
accessKey :
type : string
secret :
type : string
bucket :
type : string
region :
type : string
acl :
type : string
required :
- enabled
StreamQuality :
type : object
properties :
videoPassthrough :
type : boolean
2020-10-08 03:04:06 +03:00
description : If enabled video transcoding is disabled and the video is passed along in its original format.
2020-10-05 04:59:43 +03:00
audioPassthrough :
type : boolean
2020-10-08 03:04:06 +03:00
description : If enabled audio transcoding is disabled and the audio is passed along in its original format.
2020-10-05 04:59:43 +03:00
videoBitrate :
type : integer
2020-10-08 03:04:06 +03:00
description : The video quality, in kbps.
2020-10-05 04:59:43 +03:00
audioBitrate :
type : integer
2020-10-08 03:04:06 +03:00
description : The audio quality, in kbps.
2020-10-05 04:59:43 +03:00
scaledWidth :
type : integer
2020-10-08 03:04:06 +03:00
description : The resized video width.
2020-10-05 04:59:43 +03:00
scaledHeight :
type : integer
2020-10-08 03:04:06 +03:00
description : The resized video height.
2020-10-05 04:59:43 +03:00
framerate :
type : integer
2020-10-08 03:04:06 +03:00
description : The target frames per second of the video.
2020-10-05 04:59:43 +03:00
encoderPreset :
type : string
2020-10-08 03:04:06 +03:00
description : "The [H.264 preset value](https://trac.ffmpeg.org/wiki/Encode/H.264) selected for this HLS variant."
2020-10-05 04:59:43 +03:00
TimestampedValue :
type : object
properties :
time :
type : string
format : date-time
value :
type : integer
2020-10-30 04:41:21 +03:00
LogEntry :
type : object
properties :
time :
type : string
format : date-time
description : "Timestamp for this log entry"
level :
type : string
description : "The level of this log entry"
message :
type : string
description : "The log entry contents"
2020-10-05 04:59:43 +03:00
securitySchemes :
AdminBasicAuth :
type : http
scheme : basic
description : The username for admin basic auth is `admin` and the password is the stream key.
responses :
2020-10-08 03:04:06 +03:00
ClientsResponse :
description : Successful response of an array of clients
content :
application/json :
schema :
$ref : "#/components/schemas/ClientArray"
example :
- connectedAt : '2020-10-06T23:20:44.588649-07:00'
messageCount : 3
userAgent : >-
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
ipAddress : '172.217.164.110'
username : coolperson42
clientID : 2ba20dd34f911c198df3218ddc64c740
geo :
countryCode : US
regionName : California
timeZone : America/Los_Angeles
2020-10-30 04:41:21 +03:00
LogsResponse :
description : Response of server log entries
content :
application/json :
schema :
$ref : "#/components/schemas/LogEntryArray"
examples :
success :
summary : Logs returned
value : [ {"message" : "Owncast v0.0.0-localdev (unknown)" , "level" : "info" , "time" : "2020-10-29T18:35:34.422386-07:00" }, {"message" : "Web server running on port: 8080" , "level" : "info" , "time" : "2020-10-29T18:35:35.011731-07:00" }, {"message" : "RTMP server is listening for incoming stream on port: 1935" , "level" : "info" , "time" : "2020-10-29T18:35:35.011823-07:00" }]
2020-10-05 04:59:43 +03:00
BasicResponse :
description : Operation Success/Failure Response
content :
application/json :
schema :
$ref : "#/components/schemas/BasicResponse"
examples :
success :
summary : Operation succeeded.
value : {"success": true, "message": "inbound stream disconnected" }
failure :
summary : Operation failed.
value : {"success": false, "message": "no inbound stream connected" }
paths :
/api/config :
get :
summary : Information
2020-10-14 02:45:52 +03:00
description : The client configuration. Information useful for the user interface.
2020-10-05 04:59:43 +03:00
tags : [ "Server" ]
responses :
'200' :
description : ""
content :
application/json :
schema :
$ref : "#/components/schemas/InstanceDetails"
/api/status :
get :
summary : Current Status
description : This endpoint is used to discover when a server is broadcasting, the number of active viewers as well as other useful information for updating the user interface.
tags : [ "Server" ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : object
properties :
lastConnectTime :
type : string
nullable : true
format : date-time
overallMaxViewerCount :
type : integer
sessionMaxViewerCount :
type : integer
online :
type : boolean
viewerCount :
type : integer
lastDisconnectTime :
type : string
nullable : true
format : date-time
examples :
online :
value :
lastConnectTime : "2020-10-03T21:36:22-05:00"
lastDisconnectTime : null
online : true
overallMaxViewerCount : 420
sessionMaxViewerCount : 12
viewerCount : 7
/api/chat :
get :
summary : Historical Chat Messages
description : Used to get all chat messages prior to connecting to the websocket.
tags : [ "Chat" ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : array
items :
type : object
properties :
author :
type : string
description : Username of the chat message poster.
body :
type : string
description : Escaped HTML of the chat message content.
id :
type : string
description : Unique ID of the chat message.
visible :
type : boolean
2020-10-08 03:04:06 +03:00
description : "Should chat message be visibly rendered."
2020-10-05 04:59:43 +03:00
timestamp :
type : string
format : date-time
/api/yp :
get :
summary : Yellow Pages Information
description : Information to be used in the Yellow Pages service, a global directory of Owncast servers.
tags : [ "Server" ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : object
properties :
name :
type : string
description :
type : string
logo :
type : string
nsfw :
type : boolean
tags :
type : array
items :
type : string
online :
type : boolean
viewerCount :
type : integer
overallMaxViewerCount :
type : integer
sessionMaxViewerCount :
type : integer
lastConnectTime :
type : string
nullable : true
format : date-time
/api/emoji :
get :
summary : Get Custom Emoji
description : Get a list of custom emoji that are supported in chat.
tags : [ "Chat" ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : array
items :
type : object
properties :
name :
type : string
description : The name of the Emoji
emoji :
type : string
description : The relative path to the Emoji image file
examples :
default :
value :
items :
- name : nicolas_cage_party
emoji : /img/emoji/nicolas_cage_party.gif
- name : parrot
emoji : /img/emoji/parrot.gif
/api/admin/broadcaster :
get :
summary : "Broadcaster Details"
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
description : Connected Broadcaster Details
content :
application/json :
schema :
type : object
properties :
success :
type : boolean
message :
type : string
broadcaster :
type : object
properties :
remoteAddr :
type : string
time :
type : string
format : date-time
streamDetails :
type : object
properties :
width :
type : integer
height :
type : integer
frameRate :
type : integer
videoBitrate :
type : integer
videoCodec :
type : string
audioBitrate :
type : integer
audioCodec :
type : string
encoder :
type : string
examples :
connected :
summary : "Broadcaster Connected"
value :
success : true
message : ""
broadcaster :
2020-10-08 09:27:42 +03:00
remoteAddr : 172.217 .164 .110
2020-10-08 03:04:06 +03:00
time : "2020-10-06T23:20:44.588649-07:00"
2020-10-05 04:59:43 +03:00
streamDetails :
width : 640
height : 480
frameRate : 24
videoBitrate : 1500
2020-10-08 03:04:06 +03:00
videoCodec : "mp4a"
2020-10-05 04:59:43 +03:00
audioBitrate : 256
audioCodec : "aac"
2020-10-08 03:04:06 +03:00
encoder : "obs-output module (libobs version 25.0.8)"
2020-10-05 04:59:43 +03:00
not-connected :
summary : "Broadcaster Not Connected"
value :
success : false
message : "no broadcaster connected"
/api/admin/disconnect :
post :
summary : Disconnect Broadcaster
description : Disconnect the active inbound stream, if one exists, and terminate the broadcast.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
$ref : "#/components/responses/BasicResponse"
2020-10-08 03:04:06 +03:00
/api/admin/clients :
get :
summary : Return a list of currently connected clients
description : Return a list of currently connected clients with optional geo details.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
$ref : "#/components/responses/ClientsResponse"
2020-10-30 04:41:21 +03:00
/api/admin/logs :
get :
summary : Return recent log entries
description : Returns server logs.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
$ref : "#/components/responses/LogsResponse"
/api/admin/logs/warnings :
get :
summary : Return recent warning and error logs.
description : Return recent warning and error logs.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
$ref : "#/components/responses/LogsResponse"
2020-10-05 04:59:43 +03:00
/api/admin/changekey :
post :
2020-10-14 19:38:48 +03:00
summary : Update Stream Key. Pre-release, do not use.
2020-10-05 04:59:43 +03:00
description : Change the stream key in memory, but not in the config file. This will require all broadcasters to be reconfigured to connect again.
2020-10-22 08:38:02 +03:00
tags : [ "Admin" , "Pre-release" ]
2020-10-05 04:59:43 +03:00
security :
- AdminBasicAuth : [ ]
requestBody :
description : ""
required : true
content :
application/json :
schema :
type : object
properties :
key :
type : string
responses :
'200' :
2020-10-14 19:38:48 +03:00
description : Key was changed.
content :
application/json :
schema :
type : object
properties :
success :
type : boolean
example : true
message :
type : string
example : changed
/api/admin/changeExtraPageContent :
post :
summary : Change the extra page content. Pre-release, do not use.
description : Change the extra page content in memory, but not on disk.
2020-10-22 08:38:02 +03:00
tags : [ "Admin" , "Pre-release" ]
2020-10-14 19:38:48 +03:00
security :
- AdminBasicAuth : [ ]
requestBody :
description : ""
required : true
content :
application/json :
schema :
type : object
properties :
content :
type : string
responses :
'200' :
description : Page content was changed.
2020-10-05 04:59:43 +03:00
content :
application/json :
schema :
type : object
properties :
success :
type : boolean
example : true
message :
type : string
example : changed
/api/admin/serverconfig :
get :
summary : Server Configuration
description : Get the current configuration of the Owncast server.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : object
properties :
instanceDetails :
$ref : "#/components/schemas/InstanceDetails"
ffmpegPath :
type : string
2020-10-08 03:04:06 +03:00
description : The path to the copy of ffmpeg that this server is using.
2020-10-05 04:59:43 +03:00
webServerPort :
type : integer
2020-10-08 03:04:06 +03:00
description : The port the public web server is listening on.
2020-10-05 04:59:43 +03:00
s3 :
$ref : "#/components/schemas/S3"
videoSettings :
type : object
2020-10-08 03:04:06 +03:00
description : How the different variants of video streams are configured.
2020-10-05 04:59:43 +03:00
properties :
videoQualityVariants :
type : array
items :
$ref : "#/components/schemas/StreamQuality"
segmentLengthSeconds :
type : integer
2020-10-08 03:04:06 +03:00
description : The target number of seconds each HLS video segment of video will last.
2020-10-05 04:59:43 +03:00
numberOfPlaylistItems :
type : integer
2020-10-08 03:04:06 +03:00
description : The maximum number of HLS video segments we will keep referenced in the playlist.
2020-10-08 08:42:14 +03:00
yp :
$ref : "#/components/schemas/YP"
2020-10-05 04:59:43 +03:00
/api/admin/viewersOverTime :
get :
summary : Viewers Over Time
description : Get the tracked viewer count over the collected period.
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : array
items :
$ref : "#/components/schemas/TimestampedValue"
examples :
default :
value :
- time : "2020-10-03T21:41:00.381996-05:00"
value : 50
- time : "2020-10-03T21:42:00.381996-05:00"
value : 52
/api/admin/hardwarestats :
get :
summary : Hardware Stats
description : "Get the CPU, Memory and Disk utilization levels over the collected period."
tags : [ "Admin" ]
security :
- AdminBasicAuth : [ ]
responses :
'200' :
description : ""
content :
application/json :
schema :
type : object
properties :
cpu :
type : array
items :
$ref : "#/components/schemas/TimestampedValue"
memory :
type : array
items :
$ref : "#/components/schemas/TimestampedValue"
disk :
type : array
items :
$ref : "#/components/schemas/TimestampedValue"
examples :
default :
value :
cpu :
- time : "2020-10-03T21:41:00.381996-05:00"
value : 23
- time : "2020-10-03T21:42:00.381996-05:00"
value : 27
- time : "2020-10-03T21:43:00.381996-05:00"
value : 22
memory :
- time : "2020-10-03T21:41:00.381996-05:00"
value : 65
- time : "2020-10-03T21:42:00.381996-05:00"
value : 66
- time : "2020-10-03T21:43:00.381996-05:00"
value : 72
disk :
- time : "2020-10-03T21:41:00.381996-05:00"
value : 11
- time : "2020-10-03T21:42:00.381996-05:00"
value : 11
- time : "2020-10-03T21:43:00.381996-05:00"
value : 11