Analytics

Get a realtime traffic snapshot

Returns a compact snapshot of traffic over Umami's trailing 30-minute realtime window: total page views, distinct visitors, tracked custom events, and distinct countries, plus the snapshot timestamp. The visitor total is not directly comparable to the removed active endpoint's five-minute count. Use it to see recent activity; use the query endpoint for historical ranges. Requires a plan that includes analytics (403 otherwise); all-zero totals until the website is published and has traffic.

get/websites/{websiteId}/analytics/realtime

Request

  • Base URL: https://api.cactal.ai/v1
  • URL: https://api.cactal.ai/v1/websites/{websiteId}/analytics/realtime
  • Auth: HTTP bearer

Path parameters

websiteIdstring required

Response

Traffic totals for the trailing 30-minute window.

viewsnumber required

Page views in the trailing 30-minute window.

visitorsnumber required

Distinct visitors in the trailing 30-minute window.

eventsnumber required

Tracked custom events in the trailing 30-minute window.

countriesnumber required

Distinct countries in the trailing 30-minute window.

timestampstring required

Snapshot time as an ISO 8601 timestamp.

Changes

No recorded changes to this operation across all 1 revision of this API.