# No. of Documents in Index

**URL:** <https://discuss.elastic.co/t/no-of-documents-in-index/26178>\
**Category:** Elasticsearch\
**Created:** [July 23, 2015, 5:35pm UTC](https://discuss.elastic.co/t/no-of-documents-in-index/26178 "2015-07-23T17:35:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 23, 2015, 5:35pm UTC](https://discuss.elastic.co/t/no-of-documents-in-index/26178/1 "2015-07-23T17:35:30Z")

</div>

Hi,

How could i check the no. of documents in an index in Elasticsearch using query

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [July 23, 2015, 5:51pm UTC](https://discuss.elastic.co/t/no-of-documents-in-index/26178/2 "2015-07-23T17:51:44Z")

</div>

curl [http://localhost:9200/yourindex/\_stats/docs?pretty](http://localhost:9200/yourindex/_stats/docs?pretty)

---

<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:** [July 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/no-of-documents-in-index/26178/4 "2017-07-05T23:59:26Z")

</div>


