> For the complete documentation index, see [llms.txt](https://help-api.meltingspot.io/llms.txt)

# Count the activities of the members of a spot and the distinct members behind them

> GET /v1/activities~count
> 
> 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.



## Servers
- https://openapi.meltingspot.io: https://openapi.meltingspot.io



## Parameters


### Query parameters

- **occurredAt** (object)
  Period of the activities. Both bounds are required (occurredAt[after] and occurredAt[before]) and included.

- **eventType** (object)
  Filter on the type of the events. Every type when omitted.

- **liveId** (object)

- **courseId** (object)

- **channelId** (object)

- **collectionId** (object)

- **topicId** (object)

- **spotMemberId** (object)

- **groupId** (object)

- **role** (object)

- **customRoleId** (object)

- **groupBy** (string)
  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.



## Responses
### 200


#### Body: application/json (object)
- **total** (integer)
  The number of activities over the period. A member in several of the filtered groups is counted once per group.

- **uniqueMemberCount** (integer)
  The number of distinct members with at least one activity over the period

- **previousTotal** (integer)
  The number of activities over the previous period: same duration, right before the start of the period

- **previousUniqueMemberCount** (integer)
  The number of distinct members with at least one activity over the previous period

- **items** (array[object])
  The groups of the groupBy dimension. By day, week or month: every bucket of the period, by date ascending, with 0 for the buckets without activity. By any other dimension: the biggest first, 100 at most; grouped by role, group or member, the activities of members who no longer exist are left out of the groups but counted in the totals. Empty without groupBy.


### 400
Malformed payload, unknown groupBy, missing or too long period


[Powered by Bump.sh](https://bump.sh)
