---
title: "Count Events By"
method: GET
path: "/api/v1/events/count/:groupby"
---

# Count Events By

`GET /api/v1/events/count/:groupby`

## Request

- Base URL: `http://<your-domain>:2802/api/v1`
- URL: `http://<your-domain>:2802/api/v1/api/v1/events/count/:groupby`
- Auth: none declared
- TypeScript: <https://skmtc.dev/falcosecurity/apis/falcosidekick-ui/docs/api/v1/events/count/:groupby/get.ts> (a function with typed inputs; its response is checked against the schema)

Count Events By

## Path parameters

- `groupby` string, required

## Query parameters

- `pretty` boolean
- `priority` string
- `source` string
- `filter` string
- `rule` string
- `tags` string
- `since` integer

## Response `200`

Count Events By Result

- ModelsResultsCountBy
  - `results` object
  - `statistics` ModelsStatistics
    - `all` integer
    - `distincts` integer
    - `returned` integer

## Other responses

- `400`: Bad Request

## Changes

- **2022-08-08** `096ab72a5358`: 1 info
  - endpoint added
- **2022-05-11** `066962dfcbc9`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/falcosecurity/apis/falcosidekick-ui/changes/api/v1/events/count/:groupby/get.md)

---

[API](https://skmtc.dev/falcosecurity/apis/falcosidekick-ui.md) - [All operations](https://skmtc.dev/falcosecurity/apis/falcosidekick-ui/llms.txt) - [OpenAPI document](https://skmtc.dev/falcosecurity/apis/falcosidekick-ui/revisions/5834d9a5aa0b?raw)
