younifyd
Menu

Get stats of index

Get stats of index

GET/indexes/{index_uid}/stats

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get stats of index action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{getStatsOfIndex.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Query parameters

showInternalDatabaseSizesboolean

If `true`, adds `internalDatabaseSizes` to the response.

sizeFormatstring

Specify how to format the sizes: - `"raw"` (default): format sizes as a number of bytes - `"human"`: format sizes as a human-readable string with an appropriate unit.

One ofhumanraw

Response

Returns 200 with an object. Read it in later steps with {{getStatsOfIndex.response.data.<field>}}.

numberOfDocumentsinteger (u-int64)

Number of documents in the index

indexSizeoneOf
usedIndexSizeoneOf
rawDocumentDbSizeoneOf
avgDocumentSizeoneOf
isIndexingboolean

Whether or not the index is currently ingesting document

internalDatabaseSizesobject

Size of all the internal databases for the index. Database names can change from version to version.

numberOfEmbeddingsinteger | null

Number of embeddings in the index

numberOfEmbeddedDocumentsinteger | null

Number of embedded documents in the index

fieldDistributionobject

Association of every field name with the number of times it occurs in the documents.

json
{
  "numberOfDocuments": 0,
  "indexSize": null,
  "usedIndexSize": null,
  "rawDocumentDbSize": null,
  "avgDocumentSize": null,
  "isIndexing": false,
  "fieldDistribution": {},
  "internalDatabaseSizes": {},
  "numberOfEmbeddings": 0,
  "numberOfEmbeddedDocuments": 0
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.

Was this page helpful?