# first rest api call

**URL:** <https://community.wowza.com/t/first-rest-api-call/93202>\
**Category:** Wowza Streaming Engine\
**Created:** [April 21, 2021, 8:19pm UTC](https://community.wowza.com/t/first-rest-api-call/93202 "2021-04-21T20:19:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide\_Rendina](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Davide\_Rendina](https://community.wowza.com/u/Davide_Rendina)\
**Post date:** [April 21, 2021, 8:19pm UTC](https://community.wowza.com/t/first-rest-api-call/93202/1 "2021-04-21T20:19:41Z")

</div>

Good morning,  
I’m trying to use the rest api to get information about my streaming application. but any call I make, the result is always the same:  
{  
Id = 27,  
Status = WaitingForActivation,  
Method = “{null}”,  
Result = “{Non ancora calcolato}”  
}

Maybe there is some setting to set?  
I am using the trial version

Thanks in advance

---

<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:** [April 21, 2021, 8:32pm UTC](https://community.wowza.com/t/first-rest-api-call/93202/2 "2021-04-21T20:32:15Z")

</div>

Hello @Davide_Rendina, I can share some resources with examples that may help you out. This is how you query the Engine to get stream data:

```
curl -X GET \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/monitoring/current

```

> **[Get stream statistics with the REST API](https://www.wowza.com/docs/statistics-query-examples)**
>
> Retrieve stream, application, and server statistics with these Wowza Streaming Engine REST API query examples

  

We have this video tutorial as well to get you familiar with making REST API calls.

[![](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/782e58d151484b18339d6a5289419a7894063852.jpeg "Wowza Streaming Engine REST API") ](https://www.youtube.com/watch?v=5D3XLZOsCLQ)

---

<div class="post-metadata">

**Author:** ![Davide\_Rendina](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Davide\_Rendina](https://community.wowza.com/u/Davide_Rendina)\
**Post date:** [April 22, 2021, 5:36am UTC](https://community.wowza.com/t/first-rest-api-call/93202/3 "2021-04-22T05:36:16Z")

</div>

> [@Rose\_Power-Wowza\_Com](#):
>
> ```auto
> curl -X GET \
> -H 'Accept:application/json; charset=utf-8' \
> -H 'Content-Type:application/json; charset=utf-8' \
> http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/monitoring/current
> 
> ```

hello,  
Thanks for the reply.  
I use curl for windows, do you have to use a different syntax?  
Also, if I were to call the API from a remote server and not from localhost, can I refer to some examples?  
thank you,  
good day

---

<div class="post-metadata">

**Author:** ![Davide\_Rendina](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Davide\_Rendina](https://community.wowza.com/u/Davide_Rendina)\
**Post date:** [April 22, 2021, 7:15am UTC](https://community.wowza.com/t/first-rest-api-call/93202/4 "2021-04-22T07:15:46Z")

</div>

hello,  
I managed to make the call via cUrl but got this message:  
{“message”:“Your IP address (myIp) has been blocked”,“wowzaServer”:“4.8.11+5”,“success”:false,“code”:“403”}  
I have already tried to put my IP in the whiteList in the server.xml file but I get the same result  
`<IPWhiteList>127.0.0.1</IPWhiteList>`  
`<IPWhiteList>xxx.xxx.xxx.xxx</IPWhiteList>`

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [April 22, 2021, 9:37am UTC](https://community.wowza.com/t/first-rest-api-call/93202/5 "2021-04-22T09:37:19Z")

</div>

`<IPWhiteList>127.0.0.1,xxx.xxx.xxx.xxx</IPWhiteList>`

Found that using the search function of the Wowza documentation: [Wowza docs](https://www.wowza.com/docs).

> You can specify that multiple IP addresses be allowed to connect by entering them as a comma-separated list and/or by using the wildcard (\*) character

_[Connect to a remote Streaming Engine](https://www.wowza.com/docs/how-to-connect-to-remote-streaming-engine-installations-whitelist)_

---

<div class="post-metadata">

**Author:** ![Davide\_Rendina](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Davide\_Rendina](https://community.wowza.com/u/Davide_Rendina)\
**Post date:** [April 22, 2021, 9:52am UTC](https://community.wowza.com/t/first-rest-api-call/93202/6 "2021-04-22T09:52:56Z")

</div>

Perfect through cUrl now I can use the API.  
Is there any documentation regarding the use of the REST API through an [Asp.Net](http://Asp.Net) application? in the forum I found a link but the page no longer exists.  
Thank you

---

<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:** [April 22, 2021, 6:28pm UTC](https://community.wowza.com/t/first-rest-api-call/93202/7 "2021-04-22T18:28:04Z")

</div>

We do not have an [ASP.net](http://ASP.net) client. It is up to the user to generate a client library as the referenced Wowza page suggests.

[https://www.wowza.com/docs/how-to-access-wowza-streaming-engine-swagger-documentation-with-swagger-codegen](https://www.wowza.com/docs/how-to-access-wowza-streaming-engine-swagger-documentation-with-swagger-codegen)

There is discussion around this on Stack Overflow site though, so you may want to look a bit through there to find examples.
