# Is it possible to know the bytes in and bytes out of each application using the rest api?

**URL:** https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832
**Category:** Wowza Streaming Engine
**Created:** [September 5, 2020, 8:41pm UTC](https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832 "2020-09-05T20:41:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Elie\_Obeid](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/elie_obeid/32/463_2.png) [@Elie\_Obeid](https://community.wowza.com/u/Elie_Obeid)
#### Post date: [September 5, 2020, 8:41pm UTC](https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832/1 "2020-09-05T20:41:44Z")

</div>

Hopefully I can get that using a curl call without using Wowza’s sdk

---

<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: [September 7, 2020, 6:55pm UTC](https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832/2 "2020-09-07T18:55:18Z")

</div>

This is the current solution we offer for this:

We have an article on statistics:

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

From the article:

> ## Get current statistics for an incoming stream
> 
> * * *
> 
> View current statistics for an incoming stream ( **myStream** in this example):
> 
> ```auto
> curl -X GET --header 'Accept:application/json; charset=utf-8' --header 'Content-Type:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_/incomingstreams/myStream/monitoring/current
> 
> ```
> 
> The command should return a response that looks something like this (if the application is running, you should see real values, not zeros):
> 
> ```auto
> {
> "serverName": "_defaultServer_",
> "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
> },
> "applicationInstance": "_definst_",
> "name": "myStream"
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![Elie\_Obeid](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/elie_obeid/32/463_2.png) [@Elie\_Obeid](https://community.wowza.com/u/Elie_Obeid)
#### Post date: [September 7, 2020, 7:05pm UTC](https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832/3 "2020-09-07T19:05:21Z")

</div>

Thank you so so so much, that’s all I need.

---

<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: [September 9, 2020, 1:45pm UTC](https://community.wowza.com/t/is-it-possible-to-know-the-bytes-in-and-bytes-out-of-each-application-using-the-rest-api/55832/4 "2020-09-09T13:45:08Z")

</div>

Oh good @Elie Obeid, happy I could help.
