v3

latestOpenAPI 3.0.3raw.githubusercontent.com2026-04-274135.4 KB
Count

Count points

Count the number of points in a collection, optionally filtered by payload conditions. Useful for checking collection size, validating data loads, or counting points matching specific criteria.

post/collections/{collection_name}/points/count

Path parameters

collection_namestring required

The name of the collection to count points in.

Request body

filterobject

Optional filter conditions. Only points matching the filter are counted.

exactboolean

If true, returns an exact count. If false, returns a faster approximate count. Defaults to true.

Example request

{
  "exact": true
}

Response

Count result

timenumber double

Time spent to process this request, in seconds.

statusstring

Operation status.

Example response

{
  "time": 0.000004424,
  "status": "ok",
  "result": {
    "count": 4
  }
}