# Determine if a stream is available over HTTP

**URL:** <https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502>\
**Category:** Wowza Streaming Engine\
**Created:** [December 1, 2011, 4:17pm UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502 "2011-12-01T16:17:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Kocheran](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@Tyler\_Kocheran](https://community.wowza.com/u/Tyler_Kocheran)\
**Post date:** [December 1, 2011, 4:17pm UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502/1 "2011-12-01T16:17:36Z")

</div>

Is there a way to check and see if Wowza has a stream by a given name over HTTP? IE: for a live application, does a live stream exist, for a vod application, does a vod stream exist?

---

<div class="post-metadata">

**Author:** ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)\
**Post date:** [December 2, 2011, 9:28am UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502/2 "2011-12-02T09:28:48Z")

</div>

A couple ways - one would be to query the serverinfo HTTPProvider and parse the output - the other would be to build a custom HTTPProvider that does the checking on the backend.

-Ian

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 2, 2011, 8:29pm UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502/3 "2011-12-02T20:29:13Z")

</div>

You can get path with IApplicationInstance.getStreamStoragePath(), then use Java file API to see if file exists

Richard

---

<div class="post-metadata">

**Author:** ![Tyler\_Kocheran](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@Tyler\_Kocheran](https://community.wowza.com/u/Tyler_Kocheran)\
**Post date:** [December 2, 2011, 12:22pm UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502/4 "2011-12-02T12:22:53Z")

</div>

What’s the class name of the serverinfo HTTP provider?

Also, could you explain how I could find out if a VOD application has a stream or not? I’m trying to write a HTTPProvider for this purpose.

What’s the logic for finding if an application has a stream? IVHost \> IApplication \> IApplicationInstance \> getStreams \> ?

---

<div class="post-metadata">

**Author:** ![Alberto\_Cabaleiro](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@Alberto\_Cabaleiro](https://community.wowza.com/u/Alberto_Cabaleiro)\
**Post date:** [October 24, 2019, 10:14am UTC](https://community.wowza.com/t/determine-if-a-stream-is-available-over-http/34502/5 "2019-10-24T10:14:17Z")

</div>

Hi everybody,

Thanks for posting in our forum. An alternative to know whether a stream is connected or not via REST API would be to query

[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_

or

[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/streamName/monitoring/current

which can be used also for VOD applications and will inform on whether the stream is running/connected or not. Here is a related post: [https://stackoverflow.com/questions/38814056/how-to-get-all-active-streams-from-wowza-server](https://stackoverflow.com/questions/38814056/how-to-get-all-active-streams-from-wowza-server)

Regarding the serverinfo HTTPProvider option, it comes enabled by default with Wowza Streaming Engine, under VHost.xml:

```auto
<HTTPProvider> 

<BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>

<RequestFilters>serverinfo*</RequestFilters>

<AuthenticationMethod>admin-digest</AuthenticationMethod> 

</HTTPProvider>

```

Here you can find more HTTPProvider examples for your reference: [https://www.wowza.com/docs/http-provider-code-examples-for-wowza-media-server](https://www.wowza.com/docs/http-provider-code-examples-for-wowza-media-server)

Full Java API reference here: [https://www.wowza.com/resources/serverapi/](https://www.wowza.com/resources/serverapi/)

Warm regards,

Alberto Cabaleiro

Wowza Support Engineer
