# current active stream

**URL:** <https://community.wowza.com/t/current-active-stream/46674>\
**Category:** Wowza Developer Dojo\
**Created:** [March 11, 2016, 12:30pm UTC](https://community.wowza.com/t/current-active-stream/46674 "2016-03-11T12:30:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerd\_Koetje](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@Gerd\_Koetje](https://community.wowza.com/u/Gerd_Koetje)\
**Post date:** [March 11, 2016, 12:30pm UTC](https://community.wowza.com/t/current-active-stream/46674/1 "2016-03-11T12:30:35Z")

</div>

How would i be able to get the current active streams from the rest api?

curl -X GET --header ‘Accept:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/publishers](http://localhost:8087/v2/servers/_defaultServer_/publishers)

gives all publishers not the once currently broadcasting

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [March 11, 2016, 8:52am UTC](https://community.wowza.com/t/current-active-stream/46674/2 "2016-03-11T08:52:11Z")

</div>

Hello

You can get a list of incoming active streams via the instances endpoint. Please try the following:

```auto
curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances

```

Example return would be:

```auto
{"instanceList":[{"incomingStreams":[{"sourceIp":"rtmp://[ip]:56663","isPTZEnabled":false,"applicationInstance":"_definst_","name":"myStream","...........etc........],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"_definst_"},{"incomingStreams":[],"outgoingStreams":[],"recorders":[],"streamGroups":[],"name":"incomingStreams"}]}

```

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [March 16, 2016, 8:38am UTC](https://community.wowza.com/t/current-active-stream/46674/3 "2016-03-16T08:38:19Z")

</div>

There is no function available within the Rest API to grab a screenshot. You can use an HTTP Provider to do this (custom made) or if you are leveraging the transcoder [you can use it](https://www.wowza.com/docs/how-to-get-thumbnail-images-from-wowza-transcoder-with-an-http-provider) to achieve the same.

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![Gerd\_Koetje](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@Gerd\_Koetje](https://community.wowza.com/u/Gerd_Koetje)\
**Post date:** [March 11, 2016, 4:16pm UTC](https://community.wowza.com/t/current-active-stream/46674/4 "2016-03-11T16:16:31Z")

</div>

thanks, with this i would be able to put a recorder on it right.

i did found how to add a recorder, can the api make screenshots to without the need of ffmpeg?

i know the ffmpeg way todo it

---

<div class="post-metadata">

**Author:** ![webbo\_digital](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@webbo\_digital](https://community.wowza.com/u/webbo_digital)\
**Post date:** [August 27, 2020, 11:06am UTC](https://community.wowza.com/t/current-active-stream/46674/5 "2020-08-27T11:06:45Z")

</div>

i used it but required password every time. how i can set pass and username to get direcly

---

<div class="post-metadata">

**Author:** ![webbo\_digital](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@webbo\_digital](https://community.wowza.com/u/webbo_digital)\
**Post date:** [August 27, 2020, 9:03am UTC](https://community.wowza.com/t/current-active-stream/46674/6 "2020-08-27T09:03:34Z")

</div>

Error:Failed to connect to port 8087: Timed out

Please how to call

---

<div class="post-metadata">

**Author:** ![webbo\_digital](https://avatars.discourse-cdn.com/v4/letter/w/e5b9ba/32.png) [@webbo\_digital](https://community.wowza.com/u/webbo_digital)\
**Post date:** [August 27, 2020, 11:12am UTC](https://community.wowza.com/t/current-active-stream/46674/7 "2020-08-27T11:12:46Z")

</div>

i used same api but getting this error

Error:Failed to connect to port 8087: Timed out

---

<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:** [August 27, 2020, 6:53pm UTC](https://community.wowza.com/t/current-active-stream/46674/8 "2020-08-27T18:53:09Z")

</div>

curl -X GET --header ‘Accept:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_)

That’s the call to get the list of active streams.

[https://www.wowza.com/docs/stream-management-query-examples](https://www.wowza.com/docs/stream-management-query-examples)

if you keep getting that error, there may be a firewall or network issue. You can send us a support ticket if you’d like us to take a look and see why.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)
