# Finding out how many users are watching or tracking?

**URL:** <https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900>\
**Category:** Development\
**Created:** [Fevereiro 4, 2017, 10:21am UTC](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900 "2017-02-04T10:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [Março 31, 2017, 2:05pm UTC](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900/6 "2017-03-31T14:05:59Z")

</div>

I think others will know better than I as to what the best approach might be. My take is that certain values are already available by making an XHR to get the JSON and when they aren’t a controller can be put together to return JSON eg.

> <https://github.com/Mittineague/discourse-newpage/blob/master/app/controllers/discourse_newpage/newpages_controller.rb#L5-L9>

I have seen plugins that use custom queries involving JOINs etc. but I have not experimented doing similar yet.

---

_[View the full topic](https://meta.discourse.org/t/finding-out-how-many-users-are-watching-or-tracking/56900)._
