# Streamstatus via REST API

**URL:** <https://community.wowza.com/t/streamstatus-via-rest-api/92369>\
**Category:** Wowza Streaming Engine\
**Tags:** rest-api, streaming-engine\
**Created:** [November 19, 2020, 12:30pm UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369 "2020-11-19T12:30:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias\_Schneider](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tobias\_Schneider](https://community.wowza.com/u/Tobias_Schneider)\
**Post date:** [November 19, 2020, 12:30pm UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369/1 "2020-11-19T12:30:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 19, 2020, 10:29pm UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369/2 "2020-11-19T22:29:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tobias\_Schneider](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tobias\_Schneider](https://community.wowza.com/u/Tobias_Schneider)\
**Post date:** [November 20, 2020, 11:49am UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369/3 "2020-11-20T11:49:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tobias\_Schneider](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tobias\_Schneider](https://community.wowza.com/u/Tobias_Schneider)\
**Post date:** [November 25, 2020, 10:59am UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369/4 "2020-11-25T10:59:22Z")

</div>

Someone has an idea how to get the information?

---

<div class="post-metadata">

**Author:** ![Tobias\_Schneider](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@Tobias\_Schneider](https://community.wowza.com/u/Tobias_Schneider)\
**Post date:** [December 3, 2020, 12:48pm UTC](https://community.wowza.com/t/streamstatus-via-rest-api/92369/5 "2020-12-03T12:48:39Z")

</div>

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
