Get KPIs
Time-series traffic KPIs (visitors, pageviews, bounce rate, session duration), with optional dimension breakdown and previous-period comparison.
visitors is the per-day session count (the overview’s Sessions card), while unique_users (and unique_users_current / unique_users_previous) are unique anonymous visitors (the overview’s Visitors card), returned only when include_previous_period=true and no group_by is set.
Use group_by to break results down by referrer, location, device, browser, os, or any UTM dimension. Set include_previous_period=true to also receive the equivalent prior window for week-over-week comparisons.Authorizations
Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.
Query Parameters
Inclusive start date (YYYY-MM-DD). Defaults to 7 days before date_to.
Inclusive end date (YYYY-MM-DD). Defaults to today.
Dimension to break down by
referrer, location, device, browser, os, utm_source, utm_medium, utm_campaign Return current and previous period for WoW comparison
Response
KPI time-series
Analytics endpoint response. The data array contains the rows; the exact row shape depends on the endpoint. meta carries column type information for rendering, rows is the row count, and statistics holds query timing metadata.