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

# GET /api/database/views/grid/{slug}/public/aggregations/

`GET /api/database/views/grid/{slug}/public/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.

## Path parameters

- `slug` string, 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`
- `401`
- `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)
