# Spectators info

**URL:** https://community.wowza.com/t/spectators-info/93353
**Category:** Wowza Developer Dojo
**Created:** [May 28, 2021, 2:06pm UTC](https://community.wowza.com/t/spectators-info/93353 "2021-05-28T14:06:33Z")
**Posts on this page:** 3
**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: [May 28, 2021, 2:06pm UTC](https://community.wowza.com/t/spectators-info/93353/1 "2021-05-28T14:06:34Z")

</div>

good morning,  
Is it possible to obtain the information of the spectators connected to a live show such as the IP address or the coordinates for geolocation through the rest API?  
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: [May 30, 2021, 4:53pm UTC](https://community.wowza.com/t/spectators-info/93353/2 "2021-05-30T16:53:17Z")

</div>

There’s no direct REST API query to get this, but it is possible. “If the viewers are connecting directly to the Wowza Server for playback then each viewer has its own session and with e.g. a custom module you could obtain the IP address of that viewer. That won’t work if you’re distributing your stream via a CDN though.” (Please see post: [Can I check if the person watching the video is watching it?](http://community.wowza.com/t/can-i-check-if-the-person-watching-the-video-is-watching-it/92479))

Once you know the session id, then you can create an HTTP Provider which will obtain the IP address:

This is the part of the HTTP provider code sample you want to look at:

ret.append("");  
ret.append(""+httpSession.getSessionId()+"");  
ret.append(""+httpSession.getIpAddress()+"");

  

Full code and tutorial is here:

[https://www.wowza.com/docs/How-to-get-detailed-server-info-with-an-HTTP-Provider](https://www.wowza.com/docs/How-to-get-detailed-server-info-with-an-HTTP-Provider)

---

<div class="post-metadata">

### Author: ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)
#### Post date: [November 19, 2021, 12:50am UTC](https://community.wowza.com/t/spectators-info/93353/3 "2021-11-19T00:50:19Z")

</div>

Consider looking at the module wse-plugin-analytics on the wowza GitHub public repo.
