Aggregate Records
Compute a sum, average, min, max, or count over a field, optionally filtered and grouped.
Operations
fieldId (a field ID or field name) is required for every operation. sum and avg require a numeric field (number, currency, percent, rating, or duration).Filtering
Use the optionalfilter to restrict which records are aggregated. It supports the same nested AND/OR logic as List Records.
Grouping
WhengroupBy is supplied, the response returns groupedResults (one entry per group with its value and groupValue) instead of a single result.
Authorizations
Enter your Zite API key. Format: Bearer <api_key>
Path Parameters
The unique identifier of the database
The unique identifier of the table. You can also use the table name instead of the ID.
Body
The field to aggregate, specified by field ID or field name. Required for all operations. sum and avg require a numeric field (number, currency, percent, rating, or duration).
The aggregation to perform.
sum, avg, min, max, count, count_distinct Optional filter condition restricting which records are aggregated. Supports the same nested AND/OR logic as List Records.
Optional field (field ID or name) to group results by. When provided, groupedResults is returned instead of a single result.
Response
Aggregation result
The field ID that was aggregated.
The aggregation that was performed.
sum, avg, min, max, count, count_distinct The aggregated value. Null when groupBy is used (see groupedResults) or when no rows match. sum returns 0 when no rows match.
Present only when groupBy is supplied. One entry per group.