Skip to main content
GET
/
v0
/
user_frequency
Get visit-frequency distribution
curl --request GET \
  --url https://api.formo.so/v0/user_frequency \
  --header 'Authorization: Bearer <token>'
{
  "meta": [
    {
      "name": "project_id",
      "type": "String"
    },
    {
      "name": "session_bucket",
      "type": "String"
    },
    {
      "name": "user_count",
      "type": "UInt64"
    },
    {
      "name": "avg_session_per_user",
      "type": "Float64"
    }
  ],
  "data": [
    {
      "project_id": "proj_abc",
      "session_bucket": "1 session",
      "user_count": 412,
      "avg_session_per_user": 1
    },
    {
      "project_id": "proj_abc",
      "session_bucket": "2 - 10 sessions",
      "user_count": 287,
      "avg_session_per_user": 4.6
    },
    {
      "project_id": "proj_abc",
      "session_bucket": "10 - 30 sessions",
      "user_count": 76,
      "avg_session_per_user": 16.2
    },
    {
      "project_id": "proj_abc",
      "session_bucket": "30 - 50 sessions",
      "user_count": 18,
      "avg_session_per_user": 38.4
    },
    {
      "project_id": "proj_abc",
      "session_bucket": "> 50 sessions",
      "user_count": 5,
      "avg_session_per_user": 84
    }
  ],
  "rows": 5,
  "rows_before_limit_at_least": 5
}
Returns how many users visited 1, 2, 3+ times in the selected window — the data behind the dashboard’s frequency histogram.

Authorizations

Authorization
string
header
required

Workspace API key (e.g. formo_xxx). Create one in the Formo dashboard under Team Settings > API Keys.

Query Parameters

date_from
string<date>

Inclusive start date (YYYY-MM-DD). Defaults to 7 days before date_to.

date_to
string<date>

Inclusive end date (YYYY-MM-DD). Defaults to today.

Response

Visit frequency distribution

Raw Tinybird pipe response. The data array contains the analytics rows; the exact row shape depends on the endpoint.

data
object[]
meta
object[]
rows
integer
rows_before_limit_at_least
integer
statistics
object