# List installed plugins from within plugin

**URL:** <https://discuss.elastic.co/t/list-installed-plugins-from-within-plugin/194933>\
**Category:** Elasticsearch\
**Created:** [August 12, 2019, 11:44pm UTC](https://discuss.elastic.co/t/list-installed-plugins-from-within-plugin/194933 "2019-08-12T23:44:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiboxiv](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jiboxiv](https://discuss.elastic.co/u/jiboxiv)\
**Post date:** [August 12, 2019, 11:44pm UTC](https://discuss.elastic.co/t/list-installed-plugins-from-within-plugin/194933/1 "2019-08-12T23:44:32Z")

</div>

Hi all,

I am currently creating a plugin, but need to know if there is another plugin installed before indexing some documents.

I know there is the `_cat/plugins` API, but is there any way to get the list of currently installed plugins without making an API call? I see `NodeInfo` class holds this information but I can't figure out a way to access this.

Any help would be great! Thanks!

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [August 13, 2019, 3:06am UTC](https://discuss.elastic.co/t/list-installed-plugins-from-within-plugin/194933/2 "2019-08-13T03:06:15Z")

</div>

The way to do this is with a NodeInfoRequest using the NodeClient, but this probably is not something you want to do on every indexing request. What is it about another plugin being installed you want to know? If you can explain more about what you are trying to achieve, we can probably help come up with another alternative.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 10, 2019, 3:06am UTC](https://discuss.elastic.co/t/list-installed-plugins-from-within-plugin/194933/3 "2019-09-10T03:06:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
