Skip to main content
POST
/
datasets
/
aggregate
JavaScript SDK
const aggregates = await client.datasets.aggregate({ filter: { writeProtected: true } });
console.log('Number of write protected datasets: ', aggregates[0].count)
{
  "items": [
    {
      "count": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json

Aggregation request of data sets. Filters exact field matching or timestamp ranges inclusive min and max.

filter
object

Filter on data sets with strict matching.

Response

Response with list of data set aggregations

items
object[]
required
Required array length: 1 element
Last modified on April 23, 2026