# Get actual network status in API REST

**URL:** <https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593>\
**Category:** Wowza Developer Dojo\
**Created:** [October 13, 2016, 9:33am UTC](https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593 "2016-10-13T09:33:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_M](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@Julian\_M](https://community.wowza.com/u/Julian_M)\
**Post date:** [October 13, 2016, 9:33am UTC](https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593/1 "2016-10-13T09:33:21Z")

</div>

Hi, I would like to know how request by api rest the bytesinrate and bytesoutrate of the whole server because I have only found the request for historic but not for actual/current,

Thanks

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [October 13, 2016, 10:04am UTC](https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593/2 "2016-10-13T10:04:20Z")

</div>

Hi,

You can use a GET request on the following endpoint to [get the current statistics](https://www.wowza.com/docs/statistics-query-examples#generalstats):

```auto
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/monitoring/current

```

It should return data similar to:

```auto
{
"serverName": "_defaultServer_"
"uptime": 712
"bytesIn": 10481884
"bytesOut": 760
"bytesInRate": 16614
"bytesOutRate": 0
"totalConnections": 0
"connectionCount": {
"WEBM": 0
"DVRCHUNKS": 0
"RTMP": 0
"MPEGDASH": 0
"CUPERTINO": 0
"SANJOSE": 0
"SMOOTH": 0
"RTP": 0
}-
}

```

Michelle

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [December 19, 2016, 5:10pm UTC](https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593/3 "2016-12-19T17:10:45Z")

</div>

Hi,

While this is not tracked on a server-level, you can track it on a VHost level. Unless you have multiple VHosts, then it should be able to provide you with the aggregate bytesIn and bytesOut for your server. Otherwise, if you have multiple VHosts, then you will need to iterate through each VHost.

The endpoint that you will need is as follows:

GET /v2/servers/{serverName}/vhosts/{vhostName}/monitoring/current

And the output would be similar to:

```auto
{
  "serverName": "_defaultServer_",
  "uptime": 22456,
  "bytesIn": 0,
  "bytesOut": 27174836,
  "totalConnections": 0,
  "connectionCount": {
    "WEBM": 0,
    "DVRCHUNKS": 0,
    "RTMP": 0,
    "MPEGDASH": 0,
    "CUPERTINO": 0,
    "SANJOSE": 0,
    "SMOOTH": 0,
    "RTP": 0
  }
}

```

Michelle

---

<div class="post-metadata">

**Author:** ![Julian\_M](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@Julian\_M](https://community.wowza.com/u/Julian_M)\
**Post date:** [October 13, 2016, 11:17pm UTC](https://community.wowza.com/t/get-actual-network-status-in-api-rest/47593/4 "2016-10-13T23:17:23Z")

</div>

> Hi,
> 
> You can use a GET request on the following endpoint to [get the current statistics](https://www.wowza.com/docs/statistics-query-examples#generalstats):
> 
> ```auto
> http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/monitoring/current
> 
> ```
> 
> It should return data similar to:
> 
> ```auto
> {
> "serverName": "_defaultServer_"
> "uptime": 712
> "bytesIn": 10481884
> "bytesOut": 760
> "bytesInRate": 16614
> "bytesOutRate": 0
> "totalConnections": 0
> "connectionCount": {
> "WEBM": 0
> "DVRCHUNKS": 0
> "RTMP": 0
> "MPEGDASH": 0
> "CUPERTINO": 0
> "SANJOSE": 0
> "SMOOTH": 0
> "RTP": 0
> }-
> }
> 
> ```
> 
> Michelle

But is there any request toget the whole network? I mean vod, medicache live etc all in one like whole byteoutrate
