Count the activities of the members of a spot and the distinct members behind them, over a period of 366 days at most. The same counts are given for the previous period: same duration, right before. With groupBy, the counts are also split by a single dimension, the 100 biggest groups first.
Query parameters
-
Period of the activities. Both bounds are required (occurredAt[after] and occurredAt[before]) and included.
-
Filter on the type of the events. Every type when omitted.
-
The single dimension to group the counts by: a granularity of the date (day, week, month: every bucket of the period by date ascending, 0 without activity, in UTC, weeks from Monday), the event type, the role or a group of the member, the member or a content. Totals only when omitted.
Values are
day,week,month,eventType,role,group,member,live,course,channel,collection, ortopic.
curl \
--request GET 'https://openapi.meltingspot.io/v1/activities~count'
{
"total": 42,
"uniqueMemberCount": 42,
"previousTotal": 42,
"previousUniqueMemberCount": 42,
"items": [
{
"key": "string",
"label": "string",
"count": 42,
"uniqueMemberCount": 42
}
]
}