Downloads: Matomo Matomo Actions Downloads
read only REST
- Catalog:
Matomo - Schema:
Actions - Label: Matomo Actions Downloads
Can only retrieve data.
Summary
Files downloaded from the site over one period, one row per download URL.
API Source
- Endpoint:
/index.php?module=API&method=Actions.getDownloads&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 Downloads 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 |
|---|---|---|---|---|---|
label |
varchar2 |
itgen_mat_label | filters on the platform, writable | Download URL, as Matomo groups it - not always the full URL. | |
nb_ |
int32 |
itgen_mat_nb_hits | filters on the platform, writable | Number of times this file was downloaded, including repeat downloads within one visit. | |
nb_ |
int32 |
itgen_mat_nb_uniq_visitors | filters on the platform, writable | Number of unique visitors who downloaded this file. | |
nb_ |
int32 |
itgen_mat_nb_visits | filters on the platform, writable | Number of visits during which this file was downloaded. | |
segment |
varchar2 |
itgen_mat_segment | filters on the platform, writable | Matomo's own segment expression selecting exactly this download, usable as the segment argument of another reporting table. | |
sum_ |
int32 |
itgen_mat_sum_time_spent | filters on the platform, writable | Total time visitors spent on the site up to and including this download, in seconds. | |
url |
varchar2 |
itgen_mat_url | filters on the platform, writable | Full URL of the downloaded file. |