---
title: "Count points"
method: POST
path: "/collections/{collection_name}/points/count"
tags: ["Count"]
---

# Count points

`POST /collections/{collection_name}/points/count`

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.

## Path parameters

- `collection_name` string, required

## Request body

- object
  - `filter` object — Optional filter conditions. Only points matching the filter are counted.
  - `exact` boolean — If `true`, returns an exact count. If `false`, returns a faster approximate count. Defaults to `true`.

## Response `200`

Count result

- object
  - `usage` object
    - `hardware` object, nullable — Hardware resource counters for the operation, including CPU, payload I/O, payload index I/O, and vector I/O metrics.
  - `time` number, double — Time spent to process this request, in seconds.
  - `status` string — Operation status.
  - `result` object
    - `count` integer — The number of points matching the criteria.

## Other responses

- `4XX` — Error response

---

[API](https://skmtc.dev/actiancorp/apis/actian-vectorai-db-search-api.md) · [All operations](https://skmtc.dev/actiancorp/apis/actian-vectorai-db-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/actiancorp/actian-vectorai-db-search-api/revisions/39108f79294c/schema)
