# Bytes in rate from publisher in HTTP provider

**URL:** <https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [July 1, 2014, 8:03am UTC](https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320 "2014-07-01T08:03:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![First\_Last](https://avatars.discourse-cdn.com/v4/letter/f/a698b9/32.png) [@First\_Last](https://community.wowza.com/u/First_Last)\
**Post date:** [July 1, 2014, 8:03am UTC](https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320/1 "2014-07-01T08:03:04Z")

</div>

I have an HTTP provider where I am currently displaying some extra stats and I would like to add the Bytes in Rate for each publisher connected. I am iterating through the applications, then each app instance within an application and finally iterating through all the publishers of each app instance. What method do I use to get a data rate for the stream the publisher is sending (live streams)? I noticed the web engine manager displays this and just wondering how to access via the API.

Thanks

---

<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:** [July 2, 2014, 6:06am UTC](https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320/2 "2014-07-02T06:06:40Z")

</div>

You might try obtaining an IMediaStream reference and using the getMediaIOPerformance function similar to the following:

```auto
appInstance.getStreams().getStream(streamName).getMediaIOPerformance().getMessagesInBytes()

```

---

<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:** [July 3, 2014, 4:54am UTC](https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320/3 "2014-07-03T04:54:01Z")

</div>

Ah ok, I missed that you had asked for the rate. The getMessagesInBytesRate should work in this case. Thanks for the update.

---

<div class="post-metadata">

**Author:** ![First\_Last](https://avatars.discourse-cdn.com/v4/letter/f/a698b9/32.png) [@First\_Last](https://community.wowza.com/u/First_Last)\
**Post date:** [July 2, 2014, 12:09pm UTC](https://community.wowza.com/t/bytes-in-rate-from-publisher-in-http-provider/43320/4 "2014-07-02T12:09:04Z")

</div>

Thanks that points me in the right direction but it looks like getMediaIOPerformance().getMessagesInBytesRate() is actually what I would want so I would get the bytes per second.
