# Is there a way to query all "Active Subscriptions" across a tag provider?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [March 27, 2025, 12:14am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278 "2025-03-27T00:14:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [March 27, 2025, 12:14am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278/1 "2025-03-27T00:14:32Z")

</div>

I'm doing a tag review and I have found the Tag Diagnostics -\> Active Subscriptions page which makes me think that I can programmatically find all of the tags that are no longer being used, but I don't want to have to right click -\> tag diagnostics -\> active subscriptions every single tag.

I know this is a relatively new feature but I can't find any scripting reference for it yet. I have enabled the tag reference tracking in the gateway tag providers settings, and I know this will likely miss "ad hoc" references made via expression / script, but it can get me a shorter list of things to evaluate.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 27, 2025, 12:45am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278/2 "2025-03-27T00:45:06Z")

</div>

> [@Access Tag Reference Tracker by Script](https://forum.inductiveautomation.com/t/access-tag-reference-tracker-by-script/97943/2):
>
> There's no supported/exposed way to retrieve the information from the tag reference tracker, but like most things in Ignition, it's still possible. I would recommend doing this on the gateway, but if you've got a gateway context already, then something like this: from com.inductiveautomation.ignition.common.tags.config.model import TagReferenceQuery from com.inductiveautomation.ignition.common.tags.paths import BasicTagPath # @param activeSubscriptions True, only return references from curren…

---

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [March 27, 2025, 12:49am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278/3 "2025-03-27T00:49:04Z")

</div>

Awesome thank you!

---

<div class="post-metadata">

**Author:** ![Leor\_Fishman](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@Leor\_Fishman](https://forum.inductiveautomation.com/u/Leor_Fishman)\
**Post date:** [March 27, 2025, 1:55am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-query-all-active-subscriptions-across-a-tag-provider/104278/4 "2025-03-27T01:55:15Z")

</div>

wow that's way nicer than my recommendation  
which was going to be manually traversing the tag source tree of every project and building a liveness graph
