Computes the aggregation of all the values for a specified field from the selected grid view. You must select the aggregation type by setting the type GET parameter. If filters are configured for the selected view, the aggregation is calculated only on filtered rows. You need to have read permissions on the view to request an aggregation.
Request
- Base URLhttps://api.baserow.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.baserow.io/api/database/views/grid/{view_id}/aggregation/{field_id}/
- Auth
- HTTP bearer
- or none
Path parameters
The field id you want to aggregate
Select the view you want the aggregation for.
Query parameters
if include is set to total, the total row count will be returned with the result.
The aggregation type you want. Available aggregation types: count, empty_count, not_empty_count, unique_count, min, max, sum, average, median, decile, variance, std_dev, distribution
Response
Example response
{
"value": 5,
"total": 7
}Changes
- info
the endpoint scheme security
UserSource JWTwas removed from the API
- info