v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142381,278956.3 KB

Returns the approximate count of unique values that match the query.

Requires permission to access the GetCardinality action.

post/indices/cardinality

Request body

indexNamestring

The name of the index to search.

queryStringstring required

The search query string.

aggregationFieldstring

The field to aggregate.

queryVersionstring

The query version.

Response

Success

cardinalityinteger

The approximate count of unique values that match the query.