Get a document count

  • POST also GET /_cat/count/{index}
  • POST also GET /_cat/count

Get quick access to a document count for a data stream, an index, or an entire cluster. The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.

Important

CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.

Note

Starting in Elasticsearch 9.3.0, this endpoint also supports the POST method. This is primarily intended for project routing in serverless environments.

Response