Skip to main content
GET
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
count
Retrieves the number of records in a collection.
curl --request GET \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/count \
  --header 'x-chroma-token: <api-key>'
1

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required

Tenant ID for the collection

database
string
required

Database containing this collection

collection_id
string
required

Collection ID whose records are counted

Response

Number of records in the collection

The response is of type integer<int32>.

Required range: x >= 0