ContentPieces: Matomo Matomo Contents Content Pieces
read only REST
- Catalog:
Matomo - Schema:
Contents - Label: Matomo Contents Content Pieces
Can only retrieve data.
Summary
Content impressions and interactions over one period, broken down by content piece, one row per piece (Matomo's own 'piece - name' concatenation).
API Source
- Endpoint:
/index.php?module=API&method=Contents.getContentPieces&idSite={id_site}&period={period}&date={date}&format=json
Performance Characteristics
| Characteristic | Value |
|---|---|
| Write rows per minute | 3,620 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
date |
varchar2 |
The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. | ||
id_ |
number |
The Matomo site ID to report on. | ||
period |
varchar2 |
The reporting period: day, week, month, year or range. |
Table Columns
The columns of the table ContentPieces 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 |
|---|---|---|---|---|---|
interaction_ |
varchar2 |
itgen_mat_interaction_rate | filters on the platform, writable | nb_interactions as a share of nb_impressions, formatted by Matomo itself as a percentage. | |
label |
varchar2 |
itgen_mat_label | filters on the platform, writable | The content's own piece, concatenated by Matomo itself with the content name ('piece - name') where more than one name shares a piece. | |
nb_ |
varchar2 |
itgen_mat_nb_impressions | filters on the platform, writable | Number of times this content was shown. Numeric, though Matomo does not report it with a consistent type. | |
nb_ |
int32 |
itgen_mat_nb_interactions | filters on the platform, writable | Number of times this content was interacted with (for instance clicked). | |
nb_ |
int32 |
itgen_mat_nb_uniq_visitors | filters on the platform, writable | Number of unique visitors shown this content. | |
nb_ |
varchar2 |
itgen_mat_nb_visits | filters on the platform, writable | Number of visits during which this content was shown. Numeric, though Matomo does not report it with a consistent type - see UserCountry.Country's own equivalent column. | |
segment |
varchar2 |
itgen_mat_segment | filters on the platform, writable | Matomo's own segment expression selecting exactly this content piece, usable as the segment argument of another reporting table. |