Get stat of an index

GET /indexes/{indexUid}/stats

Get stats of an index.

Path parameters

  • indexUid string Required

    Index Unique Identifier

Responses

GET /indexes/{indexUid}/stats
curl \
 -X GET https://example.meilisearch.com:7700/indexes/movies/stats \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "numberOfDocuments": 10,
  "isIndexing": true,
  "fieldDistribution": {
    "genre": 10,
    "author": 9
  }
}
Response examples (401)
{
  "message": "The Authorization header is missing. It must use the bearer authorization method.",
  "code": "missing_authorization_header",
  "type": "auth",
  "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}