# How to get the ES node details from plugin to separate nestJS backend

**URL:** <https://discuss.elastic.co/t/how-to-get-the-es-node-details-from-plugin-to-separate-nestjs-backend/357765>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [April 19, 2024, 6:28am UTC](https://discuss.elastic.co/t/how-to-get-the-es-node-details-from-plugin-to-separate-nestjs-backend/357765 "2024-04-19T06:28:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [April 19, 2024, 6:28am UTC](https://discuss.elastic.co/t/how-to-get-the-es-node-details-from-plugin-to-separate-nestjs-backend/357765/1 "2024-04-19T06:28:27Z")

</div>

Hi,

I am developing an external plugin using React.

I have a separate nestJS backend for the same, and would like to have all the data retrieval for the plugin to be done in the Backend.

That is, the nestJS backend will fetch the data from ES and send to the calling custom plugin, which will then showcase the same as charts and/or tables.

To implement this, I was thinking of creating the client in the Backend, for which I would need the ES node details (https://:9200) to be passed to the Backend during the first initialization call.

How can I achieve this?

Thanks

---

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [May 17, 2024, 11:18am UTC](https://discuss.elastic.co/t/how-to-get-the-es-node-details-from-plugin-to-separate-nestjs-backend/357765/2 "2024-05-17T11:18:43Z")

</div>

Hi,

Can anyone give an input on this?

Thanks

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [May 21, 2024, 7:52pm UTC](https://discuss.elastic.co/t/how-to-get-the-es-node-details-from-plugin-to-separate-nestjs-backend/357765/3 "2024-05-21T19:52:19Z")

</div>

Hi Sheereen. The [ElasticsearchServiceStart](https://github.com/elastic/kibana/blob/main/packages/core/elasticsearch/core-elasticsearch-server/src/contracts.ts#L98) should be available on the `CoreStart` contract in your `my-plugin/server/plugin.ts`. [More info in the documentation](https://www.elastic.co/guide/en/kibana/current/elasticsearch-service.html).
