# How to get Elasticsearch index document count via HTTP request?

**URL:** https://discuss.elastic.co/t/how-to-get-elasticsearch-index-document-count-via-http-request/378203
**Category:** Elasticsearch
**Created:** [May 15, 2025, 7:54pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-index-document-count-via-http-request/378203 "2025-05-15T19:54:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![philyeanaeknss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philyeanaeknss/32/141241_2.png) [@philyeanaeknss](https://discuss.elastic.co/u/philyeanaeknss)
#### Post date: [May 15, 2025, 7:54pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-index-document-count-via-http-request/378203/1 "2025-05-15T19:54:27Z")

</div>

There's `Elasticsearch Exporter` and `/metrics` endpoint it returns `es_index_document_count` fields.  
Is there an Elasticsearch API endpoint ables to return such data straight - without using exporters?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 15, 2025, 8:51pm UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-index-document-count-via-http-request/378203/2 "2025-05-15T20:51:43Z")

</div>

Hi @philyeanaeknss Welcome to the community.

perhaps try

`GET my-index/_count`

---

<div class="post-metadata">

### Author: ![philyeanaeknss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philyeanaeknss/32/141241_2.png) [@philyeanaeknss](https://discuss.elastic.co/u/philyeanaeknss)
#### Post date: [May 19, 2025, 9:07am UTC](https://discuss.elastic.co/t/how-to-get-elasticsearch-index-document-count-via-http-request/378203/3 "2025-05-19T09:07:27Z")

</div>

Thank you! That's what I've searched for.
