---
title: "VisitsByFilter (Matomo)"
description: "Matomo Live Visits by Filter"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Live.VisitsByFilter
original: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.Live.VisitsByFilter
updated: 2026-11-10T15:13:36Z
license: https://documentation.invantive.eu/en/
---

# 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` | [x] |  | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. |
| `filter_limit` | `number` | [x] |  | Maximum number of visits to answer, most recent first. This table always reads a bounded number of visits. |
| `filter_offset` | `number` | [x] |  | Number of most-recent visits to skip before the page of filter_limit starts. |
| `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 `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_name` | `varchar2` | itgen_mat_browser_name | [ ] | filters on the platform, writable, `browserName` | The visitor's browser name. |
| `browser_version` | `varchar2` | itgen_mat_browser_version | [ ] | filters on the platform, writable, `browserVersion` | 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_code` | `varchar2` | itgen_mat_country_code | [ ] | filters on the platform, writable, `countryCode` | Matomo's own two-letter country code, or 'xx' for 'Unknown'. |
| `device_brand` | `varchar2` | itgen_mat_device_brand | [ ] | filters on the platform, writable, `deviceBrand` | The device's brand, 'Unknown' where Matomo could not determine one. |
| `device_model` | `varchar2` | itgen_mat_device_model | [ ] | filters on the platform, writable, `deviceModel` | The device's model, 'Unknown' where Matomo could not determine one. |
| `device_type` | `varchar2` | itgen_mat_device_type | [ ] | filters on the platform, writable, `deviceType` | 'Desktop', 'Smartphone', 'Unknown', ... |
| `events` | `int32` | itgen_mat_events | [ ] | filters on the platform, writable | Number of events tracked in this visit. |
| `first_action_timestamp_utc` | `int64` | itgen_mat_first_action_timestamp_utc | [ ] | filters on the platform, writable, `firstActionTimestamp` | Seconds since the Unix epoch, UTC, of the visit's first action. |
| `goal_conversions` | `int32` | itgen_mat_goal_conversions | [ ] | filters on the platform, writable, `goalConversions` | 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, `idVisit` | 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_action_date_time_utc` | `varchar2` | itgen_mat_last_action_date_time_utc | [ ] | filters on the platform, writable, `lastActionDateTime` | The visit's last action (UTC), as Matomo reports it, in the format 'yyyy-MM-dd HH:mm:ss'. |
| `last_action_timestamp_utc` | `int64` | itgen_mat_last_action_timestamp_utc | [ ] | filters on the platform, writable, `lastActionTimestamp` | Seconds since the Unix epoch, UTC, of the visit's last action so far. |
| `operating_system` | `varchar2` | itgen_mat_operating_system | [ ] | filters on the platform, writable, `operatingSystem` | The visitor's operating system name. |
| `referrer_keyword` | `varchar2` | itgen_mat_referrer_keyword | [ ] | filters on the platform, writable, `referrerKeyword` | The search keyword that referred this visit, where known. |
| `referrer_name` | `varchar2` | itgen_mat_referrer_name | [ ] | filters on the platform, writable, `referrerName` | The search engine, website or campaign name that referred this visit, blank for direct entry. |
| `referrer_type` | `varchar2` | itgen_mat_referrer_type | [ ] | filters on the platform, writable, `referrerType` | 'direct', 'search', 'website', 'campaign' or 'social'. |
| `referrer_type_name` | `varchar2` | itgen_mat_referrer_type_name | [ ] | filters on the platform, writable, `referrerTypeName` | Human-readable form of referrer_type, for instance 'Direct Entry'. |
| `referrer_url` | `varchar2` | itgen_mat_referrer_url | [ ] | filters on the platform, writable, `referrerUrl` | 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_date_pretty_site_local` | `varchar2` | itgen_mat_server_date_pretty_site_local | [ ] | filters on the platform, writable, `serverDatePretty` | The visit's last action date, formatted in the site's own local time zone. |
| `server_time_pretty_site_local` | `varchar2` | itgen_mat_server_time_pretty_site_local | [ ] | filters on the platform, writable, `serverTimePretty` | The visit's last action, in the site's own local time zone. |
| `server_timestamp_utc` | `int64` | itgen_mat_server_timestamp_utc | [ ] | filters on the platform, writable, `serverTimestamp` | Seconds since the Unix epoch, UTC, matching last_action_timestamp_utc on every visit measured so far. |
| `total_ecommerce_conversions` | `int32` | itgen_mat_total_ecommerce_conversions | [ ] | filters on the platform, writable, `totalEcommerceConversions` | Number of ecommerce orders in this visit. |
| `total_ecommerce_revenue` | `double` | itgen_mat_total_ecommerce_revenue | [ ] | filters on the platform, writable, `totalEcommerceRevenue` | Total ecommerce revenue across every order in this visit. |
| `user_id` | `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_converted` | `int32` | itgen_mat_visit_converted | [ ] | filters on the platform, writable, `visitConverted` | Whether at least one goal was converted in this visit - Matomo's own 0/1 flag, not a Boolean. |
| `visit_count` | `int32` | itgen_mat_visit_count | [ ] | filters on the platform, writable, `visitCount` | How many visits this visitor has made in total, including this one. |
| `visit_duration` | `int32` | itgen_mat_visit_duration | [ ] | filters on the platform, writable, `visitDuration` | Visit duration in seconds - a duration, not a point in time, so carries no UTC/site-local distinction. |
| `visit_ecommerce_status` | `varchar2` | itgen_mat_visit_ecommerce_status | [ ] | filters on the platform, writable, `visitEcommerceStatus` | 'none', 'ordered', 'orderedThenAbandonedCart' or 'abandonedCart'. |
| `visit_ip` | `varchar2` | itgen_mat_visit_ip | [ ] | filters on the platform, writable, `visitIp` | The visitor's IP address, as Matomo recorded and optionally anonymised it. |
| `visitor_id` | `varchar2` | itgen_mat_visitor_id | [ ] | filters on the platform, writable, `visitorId` | Matomo's own opaque visitor identifier (not a User ID - see user_id). |
| `visitor_type` | `varchar2` | itgen_mat_visitor_type | [ ] | filters on the platform, writable, `visitorType` | 'new' or 'returning'. |

