---
title: "GET /api/database/views/grid/{view_id}/aggregations/"
method: GET
path: "/api/database/views/grid/{view_id}/aggregations/"
tags: ["Database table grid view"]
---

# GET /api/database/views/grid/{view_id}/aggregations/

`GET /api/database/views/grid/{view_id}/aggregations/`

Returns all field aggregations values previously defined for this grid view. If filters exist for this view, the aggregations are computed only on filtered rows.You need to have read permissions on the view to request aggregations.

## Path parameters

- `view_id` integer, required

## Query parameters

- `filter__{field}__{filter}` string
- `filter_type` string
- `filters` string
- `include` string
- `search` string
- `search_mode` string

## Response `200`

- object
  - `field_{id}` union
    - number — The aggregation result for the field with id {id}.
    - string — The aggregation result for the field with id {id}.
    - unknown[] — The aggregation result for the field with id {id}.
      - unknown
    - object — The aggregation result for the field with id {id}.
  - `total` integer — The total value count. Only returned if `include=total` is specified as GET parameter.

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
