# Help on api to fetch node ids

**URL:** https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380
**Category:** Elasticsearch
**Created:** [July 19, 2019, 11:19am UTC](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380 "2019-07-19T11:19:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)
#### Post date: [July 19, 2019, 11:19am UTC](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380/1 "2019-07-19T11:19:36Z")

</div>

I tried "/\_cat/nodes?v&h=id" to fetch node IDs, but it is showing only 4 letters. How to get full node Ids.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 19, 2019, 11:36am UTC](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380/2 "2019-07-19T11:36:57Z")

</div>

`GET /_cat/nodes?full_id&v&h=id` should do the trick.

---

<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: [August 16, 2019, 11:37am UTC](https://discuss.elastic.co/t/help-on-api-to-fetch-node-ids/191380/3 "2019-08-16T11:37:00Z")

</div>

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