younifyd
Menu

Count points

Count points

POST/collections/{collection_name}/points/count

Use it in a workflow

  1. Add a step and choose the Qdrant connector.
  2. Pick the Count points action (under Points).
  3. Fill in the fields below, then reference the result from later steps as {{countPoints.response.data}}.

Request

Path parameters

collection_namestringrequired

Name of the collection to count in

Query parameters

consistencyoneOf

Define read consistency guarantees for the operation

timeoutinteger

If set, overrides global timeout for this request. Unit is seconds.

Request body

Enter the body as JSON in the step's Body field.

shard_keyoneOf

Specify in which shards to look for the points, if not specified - look in all shards

filteroneOf

Look only for points which satisfies this conditions

exactboolean

If true, count exact number of points. If false, count approximate number of points faster. Approximate count might be unreliable during the indexing process. Default: true

Default true

json
{
  "shard_key": null,
  "filter": null,
  "exact": true
}

Response

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

usageoneOf

Default null

timenumber (float)

Time spent to process this request

statusstring
resultobject
countinteger (uint)required

Number of points which satisfy the conditions

json
{
  "usage": null,
  "time": 0.002,
  "status": "ok",
  "result": {
    "count": 0
  }
}

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

Was this page helpful?
Count points — Qdrant — Documentation