# Is there any API directly tell how many shard on a node

**URL:** <https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736>\
**Category:** Elasticsearch\
**Created:** [April 25, 2020, 1:41am UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736 "2020-04-25T01:41:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louis\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/louis_zhang/32/66921_2.png) [@Louis\_Zhang](https://discuss.elastic.co/u/Louis_Zhang)\
**Post date:** [April 25, 2020, 1:41am UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/1 "2020-04-25T01:41:43Z")

</div>

is there any API like GET /\_cat/nodes to get the quatiity of the shard on a node

```auto
[
  {
    "name" : "node-2",
    "cpu" : "1"

  },
  {
    "name" : "node-1",
    "cpu" : "4"
  },
  {
    "name" : "node-3",
    "cpu" : "10"
  }
]

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2020, 12:09am UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/2 "2020-04-27T00:09:43Z")

</div>

I don't think there is, but it sounds like a good idea to add to `_cat/nodes`. I think it'd be worth opening a feature request for this 🙂

---

<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:** [April 27, 2020, 5:57am UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/3 "2020-04-27T05:57:36Z")

</div>

This is available from the [cat allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2020, 7:05am UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/4 "2020-04-27T07:05:45Z")

</div>

🤦‍♂️ the one part of the documentation I didn't click on of course. Thanks mate!

---

<div class="post-metadata">

**Author:** ![Louis\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/louis_zhang/32/66921_2.png) [@Louis\_Zhang](https://discuss.elastic.co/u/Louis_Zhang)\
**Post date:** [April 27, 2020, 6:14pm UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/5 "2020-04-27T18:14:43Z")

</div>

cool, thanks a lot @DavidTurner @warkolm

---

<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:** [May 25, 2020, 6:14pm UTC](https://discuss.elastic.co/t/is-there-any-api-directly-tell-how-many-shard-on-a-node/229736/6 "2020-05-25T18:14:48Z")

</div>

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