---
title: "EventsByCategory (Matomo)"
description: "Matomo Events Get Category"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Events.EventsByCategory
original: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Events.EventsByCategory
updated: 2026-11-10T15:13:36Z
license: https://documentation.invantive.eu/en/
---

# EventsByCategory: Matomo Matomo Events Get Category

`read only` `REST`

- Catalog: `Matomo`
- Schema: `Events`
- Label: Matomo Events Get Category

Can only retrieve data.

## Summary

Events tracked over one period, broken down by category, one row per category.

## API Source

- Endpoint: `/index.php?module=API&method=Events.getCategory&idSite={id_site}&period={period}&date={date}&format=json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Write rows per minute | 2,920 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `date` | `varchar2` | [x] |  | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. |
| `id_site` | `number` | [x] |  | The Matomo site ID to report on. |
| `period` | `varchar2` | [x] |  | The reporting period: day, week, month, year or range. |

## Table Columns

The columns of the table `EventsByCategory` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `avg_event_value` | `double` | itgen_mat_avg_event_value | [ ] | filters on the platform, writable | Average event value recorded for this category. |
| `idsubdatatable` | `int32` | itgen_mat_idsubdatatable | [ ] | filters on the platform, writable | ID of the drill-down sub-table listing the actions recorded under this category, where Matomo answers one. |
| `label` | `varchar2` | itgen_mat_label | [ ] | filters on the platform, writable | Event category name, for instance 'Videos' - the value RecordHit's own event_category parameter writes. |
| `max_event_value` | `double` | itgen_mat_max_event_value | [ ] | filters on the platform, writable | Largest event value recorded for this category. |
| `min_event_value` | `double` | itgen_mat_min_event_value | [ ] | filters on the platform, writable | Smallest event value recorded for this category. |
| `nb_events` | `varchar2` | itgen_mat_nb_events | [ ] | filters on the platform, writable | Number of events of this category. Numeric, though Matomo does not report it with a consistent type. |
| `nb_events_with_value` | `varchar2` | itgen_mat_nb_events_with_value | [ ] | filters on the platform, writable | Number of events of this category that carried a numeric event value. Numeric, though Matomo does not report it with a consistent type. |
| `nb_visits` | `varchar2` | itgen_mat_nb_visits | [ ] | filters on the platform, writable | Number of visits during which an event of this category was triggered. Numeric, though Matomo does not report it with a consistent type. |
| `segment` | `varchar2` | itgen_mat_segment | [ ] | filters on the platform, writable | Matomo's own segment expression selecting exactly this event category, usable as the segment argument of another reporting table. |
| `sum_daily_nb_uniq_visitors` | `int32` | itgen_mat_sum_daily_nb_uniq_visitors | [ ] | filters on the platform, writable | Sum, over every day in the period, of the number of unique visitors who triggered an event of this category that day - not the same as a period-wide unique count, which Matomo does not sum this way across days. |
| `sum_event_value` | `double` | itgen_mat_sum_event_value | [ ] | filters on the platform, writable | Sum of the event values of this category. |

