Umami Analytics (Read-only)
v0.1.0Read-only Umami analytics for self-hosted sites: traffic, referrers, sessions and events.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_teams
List Umami teams accessible to the configured token. Use the team ID with list_websites.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page, maximum 100. |
list_websites
List accessible websites. For a team website, pass teamId from list_teams.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page, maximum 100. |
teamId | string | Restrict the list to this team. |
get_website_stats
Get pageviews, visitors, visits, bounces and total visit time.
| Parameter | Type | Description |
|---|---|---|
compare | string | Compare with the previous period or the same period last year. |
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
filters | object | Apply all supplied filters to the report. |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_website_traffic
Get pageview and session counts grouped by time.
| Parameter | Type | Description |
|---|---|---|
compare | string | Compare with the previous period or the same period last year. |
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
filters | object | Apply all supplied filters to the report. |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
unit | string | |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_website_metrics
Get ranked analytics by page, referrer, browser, country, event, or another dimension.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
filters | object | Apply all supplied filters to the report. |
limit | integer | |
offset | integer | |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_events
List tracked pageviews and custom events, newest first. Use sessionId to look up the visitor timeline.
| Parameter | Type | Description |
|---|---|---|
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
eventType | 1 for pageviews, 2 for custom events. | |
filters | object | Apply all supplied filters to the report. |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page, maximum 100. |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_sessions
List visitor sessions with device and geography, visit count, pageview count, custom event count, and timestamps. To find low-frequency visitors, page through the results and select rows by visits.
| Parameter | Type | Description |
|---|---|---|
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
filters | object | Apply all supplied filters to the report. |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page, maximum 100. |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_session_activity
Get a paginated timeline for a visitor session, with paths, referrers, timestamps and visit IDs. Umami may include activity from linked visitor IDs.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | |
endAt | Range end, ISO 8601 with offset or Unix milliseconds. Supply with startAt. | |
page | integer | Page number, starting at 1. |
pageSize | integer | Rows per page, maximum 100. |
period | string | Relative range ending now. 0month means this calendar month. Default: 7d. Use in place of startAt and endAt. |
startAt | Range start, ISO 8601 with offset or Unix milliseconds. Supply with endAt. | |
timezone | string | IANA timezone for calendar periods and time series. Defaults to UMAMI_TIMEZONE or UTC. |
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |
get_realtime
Get the Umami realtime snapshot for the last 30 minutes.
| Parameter | Type | Description |
|---|---|---|
websiteId | string | Website ID. Defaults to UMAMI_WEBSITE_ID when configured. |