Wowza Community

Streamstatus via REST API

Hello,

how can I find out the status of a stream via REST API? So whether the status is “Waiting for Stream” or “Active”. The best thing would be to find out why “Waiting for Stream”.
Unfortunately I could not find this information in the documentation.

Greetings and Health
Tobias

Hi @Tobias_Schneider, happy to help you out here-
Using the REST API, you should be able to get the status of an incoming stream using the following endpoint:

/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/incomingstreams/{streamName}


You could try this as well- same thing but a different way to explain it:

http://[wowzaIP]:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/[applicationName]/instances/definst/incomingstreams/[streamName]/monitoring/current

Hence, replacing the [applicationName] field with your own application name will allow you to query any application of your choice to see the status

HI @Rose_Power-Wowza_Com,

thanks for your fast response.
For
/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/incomingstreams/{streamName}
i recieve
{“serverName”:“defaultServer”,“applicationInstance”:“definst”,“name”:“streamFiles_Test2.stream”,“sourceIp”:“rtsp:StreamURI_Test2”,“isRecordingSet”:false,“isStreamManagerStream”:true,“isPublishedToVOD”:true,“isConnected”:false,“isPTZEnabled”:false,“ptzPollingInterval”:2000,“ptzPollingIntervalMinimum”:1000}

and for
http://[wowzaIP]:8087/v2/servers/ defaultServer /vhosts/ defaultVHost /applications/[applicationName]/instances/ definst /incomingstreams/[streamName]/monitoring/current
i recieve:
{“serverName”:“defaultServer”,“applicationInstance”:“definst”,“name”:“streamFiles_Test2”,“uptime”:0,“bytesIn”:0,“bytesOut”:0,“bytesInRate”:0,“bytesOutRate”:0,“totalConnections”:0,“connectionCount”:{“RTMP”:0,“MPEGDASH”:0,“CUPERTINO”:0,“SANJOSE”:0,“SMOOTH”:0,“RTP”:0}}

The teststream had the status “Waiting for stream”.
How do i get the Statusinformation?

Greetings

Someone has an idea how to get the information?

I think I have found the solution.
In the path /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/incomingstreams/{streamName} there is the solution.
If isConnected=false then it is “Waiting for Stream”
if true then “Active”

Thanks for the help