# Unable to Get maxmium incoming streams

**URL:** <https://community.wowza.com/t/unable-to-get-maxmium-incoming-streams/46750>\
**Category:** Wowza Streaming Engine\
**Created:** [April 12, 2016, 9:36pm UTC](https://community.wowza.com/t/unable-to-get-maxmium-incoming-streams/46750 "2016-04-12T21:36:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![renish\_tala](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@renish\_tala](https://community.wowza.com/u/renish_tala)\
**Post date:** [April 12, 2016, 9:36pm UTC](https://community.wowza.com/t/unable-to-get-maxmium-incoming-streams/46750/1 "2016-04-12T21:36:01Z")

</div>

Hi,

How to get maximum incoming streams and set incoming streams number(incoming stream number is not include to stream viewers) using java API.

---

<div class="post-metadata">

**Author:** ![Andy\_Engberson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/andy_engberson/32/392_2.png) [@Andy\_Engberson](https://community.wowza.com/u/Andy_Engberson)\
**Post date:** [May 2, 2016, 6:05pm UTC](https://community.wowza.com/t/unable-to-get-maxmium-incoming-streams/46750/2 "2016-05-02T18:05:04Z")

</div>

You can get the incoming streams via api but I don’t believe we have a module that restricts total inbound streams to a number.

We have a module that sets limitations for playback but not publishing. To restrict total inbound streams to a number would require custom module.

You might want to look at the rest api end point that will get all incoming streams or even the serverinfo http provider

You can see in the swagger UI:

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

You will get in response something like:

{

“incomingStreams”: […],

“outgoingStreams”: […],

“recorders”: […],

“streamGroups”: […],

“name”: “​_nameOfInstance_​”

}
