VisitsByFilter: Matomo Matomo Live Visits by Filter
read only REST
- Catalog:
Matomo - Schema:
Live - Label: Matomo Live Visits by Filter
Can only retrieve data.
Summary
One row per visit, most recent first, over one period: the one reporting table which is not aggregated.
API Source
- Endpoint:
/index.php?module=API&method=Live.getLastVisitsDetails&idSite={id_site}&period={period}&date={date}&filter_limit={filter_limit}&filter_offset={filter_offset}&format=json
Performance Characteristics
| Characteristic | Value |
|---|---|
| Write rows per minute | 45,000 |
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'. | ||
filter_ |
number |
Maximum number of visits to answer, most recent first. This table always reads a bounded number of visits. | ||
filter_ |
number |
Number of most-recent visits to skip before the page of filter_limit starts. | ||
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 VisitsByFilter 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 |
|---|---|---|---|---|---|
actions |
int32 |
itgen_mat_actions | filters on the platform, writable | Number of actions (page views, downloads, outlinks, events, site searches) in this visit. | |
browser_ |
varchar2 |
itgen_mat_browser_name | filters on the platform, writable, browser |
The visitor's browser name. | |
browser_ |
varchar2 |
itgen_mat_browser_version | filters on the platform, writable, browser |
The visitor's browser version. | |
city |
varchar2 |
itgen_mat_city | filters on the platform, writable | The visitor's city, null where Matomo could not geolocate the visitor to city level. | |
continent |
varchar2 |
itgen_mat_continent | filters on the platform, writable | The visitor's continent, 'Unknown' where Matomo could not geolocate the visitor. | |
country |
varchar2 |
itgen_mat_country | filters on the platform, writable | The visitor's country, 'Unknown' where Matomo could not geolocate the visitor. | |
country_ |
varchar2 |
itgen_mat_country_code | filters on the platform, writable, country |
Matomo's own two-letter country code, or 'xx' for 'Unknown'. | |
device_ |
varchar2 |
itgen_mat_device_brand | filters on the platform, writable, device |
The device's brand, 'Unknown' where Matomo could not determine one. | |
device_ |
varchar2 |
itgen_mat_device_model | filters on the platform, writable, device |
The device's model, 'Unknown' where Matomo could not determine one. | |
device_ |
varchar2 |
itgen_mat_device_type | filters on the platform, writable, device |
'Desktop', 'Smartphone', 'Unknown', ... | |
events |
int32 |
itgen_mat_events | filters on the platform, writable | Number of events tracked in this visit. | |
first_ |
int64 |
itgen_mat_first_action_timestamp_utc | filters on the platform, writable, first |
Seconds since the Unix epoch, UTC, of the visit's first action. | |
goal_ |
int32 |
itgen_mat_goal_conversions | filters on the platform, writable, goal |
Number of goal conversions in this visit. | |
idsite |
int32 |
itgen_mat_idsite | filters on the platform, writable, idSite |
The Matomo site ID this visit belongs to. | |
idvisit |
int32 |
itgen_mat_idvisit | filters on the platform, writable, id |
The visit's own ID. | |
interactions |
int32 |
itgen_mat_interactions | filters on the platform, writable | Number of page-view interactions in this visit. | |
language |
varchar2 |
itgen_mat_language | filters on the platform, writable | The visitor's browser language, 'Unknown' where Matomo could not determine one. | |
last_ |
varchar2 |
itgen_mat_last_action_date_time_utc | filters on the platform, writable, last |
The visit's last action (UTC), as Matomo reports it, in the format 'yyyy-MM-dd HH:mm:ss'. | |
last_ |
int64 |
itgen_mat_last_action_timestamp_utc | filters on the platform, writable, last |
Seconds since the Unix epoch, UTC, of the visit's last action so far. | |
operating_ |
varchar2 |
itgen_mat_operating_system | filters on the platform, writable, operating |
The visitor's operating system name. | |
referrer_ |
varchar2 |
itgen_mat_referrer_keyword | filters on the platform, writable, referrer |
The search keyword that referred this visit, where known. | |
referrer_ |
varchar2 |
itgen_mat_referrer_name | filters on the platform, writable, referrer |
The search engine, website or campaign name that referred this visit, blank for direct entry. | |
referrer_ |
varchar2 |
itgen_mat_referrer_type | filters on the platform, writable, referrer |
'direct', 'search', 'website', 'campaign' or 'social'. | |
referrer_ |
varchar2 |
itgen_mat_referrer_type_name | filters on the platform, writable, referrer |
Human-readable form of referrer_type, for instance 'Direct Entry'. | |
referrer_ |
varchar2 |
itgen_mat_referrer_url | filters on the platform, writable, referrer |
The full referring URL, where known. | |
region |
varchar2 |
itgen_mat_region | filters on the platform, writable | The visitor's region, null where Matomo could not geolocate the visitor to region level. | |
resolution |
varchar2 |
itgen_mat_resolution | filters on the platform, writable | The visitor's screen resolution, or 'unknown' in lower case where it was not determined. | |
searches |
int32 |
itgen_mat_searches | filters on the platform, writable | Number of site searches performed in this visit. | |
server_ |
varchar2 |
itgen_mat_server_date_pretty_site_local | filters on the platform, writable, server |
The visit's last action date, formatted in the site's own local time zone. | |
server_ |
varchar2 |
itgen_mat_server_time_pretty_site_local | filters on the platform, writable, server |
The visit's last action, in the site's own local time zone. | |
server_ |
int64 |
itgen_mat_server_timestamp_utc | filters on the platform, writable, server |
Seconds since the Unix epoch, UTC, matching last_action_timestamp_utc on every visit measured so far. | |
total_ |
int32 |
itgen_mat_total_ecommerce_conversions | filters on the platform, writable, total |
Number of ecommerce orders in this visit. | |
total_ |
double |
itgen_mat_total_ecommerce_revenue | filters on the platform, writable, total |
Total ecommerce revenue across every order in this visit. | |
user_ |
varchar2 |
itgen_mat_user_id | filters on the platform, writable, userId |
The User ID tracked on this visit, where the site tracks one - null otherwise. | |
visit_ |
int32 |
itgen_mat_visit_converted | filters on the platform, writable, visit |
Whether at least one goal was converted in this visit - Matomo's own 0/1 flag, not a Boolean. | |
visit_ |
int32 |
itgen_mat_visit_count | filters on the platform, writable, visit |
How many visits this visitor has made in total, including this one. | |
visit_ |
int32 |
itgen_mat_visit_duration | filters on the platform, writable, visit |
Visit duration in seconds - a duration, not a point in time, so carries no UTC/site-local distinction. | |
visit_ |
varchar2 |
itgen_mat_visit_ecommerce_status | filters on the platform, writable, visit |
'none', 'ordered', 'orderedThenAbandonedCart' or 'abandonedCart'. | |
visit_ |
varchar2 |
itgen_mat_visit_ip | filters on the platform, writable, visit |
The visitor's IP address, as Matomo recorded and optionally anonymised it. | |
visitor_ |
varchar2 |
itgen_mat_visitor_id | filters on the platform, writable, visitor |
Matomo's own opaque visitor identifier (not a User ID - see user_id). | |
visitor_ |
varchar2 |
itgen_mat_visitor_type | filters on the platform, writable, visitor |
'new' or 'returning'. |