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

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://help-api.meltingspot.io/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "API MCP server": {
    "url": "https://help-api.meltingspot.io/mcp"
  }
}

Close
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.

Query parameters

  • occurredAt object

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

    Hide occurredAt attributes Show occurredAt attributes object
    • occurredAt[after] integer

      Start of the period, included: only the activities which occurred at or after this date (Unix timestamp format). Required.

    • occurredAt[before] integer

      End of the period, included: only the activities which occurred at or before this date (Unix timestamp format). Required.

  • eventType object

    Filter on the type of the events. Every type when omitted.

    Hide eventType attribute Show eventType attribute object
    • eventType[in] array[string]

      Only the activities of one of these event types

      Values are ChannelJoined, ChannelLeft, ChannelMessageReacted, ChannelMessageSent, CourseStarted, CourseCompleted, CourseStepViewed, CourseStepCompleted, DiscussionMessageSent, DocumentLinkOpened, DocumentLinkReacted, DocumentPageReacted, DocumentPageViewed, LearningPathCompleted, LearningPathStarted, LiveAttended, LiveInvitationDeclined, LiveMessageReacted, LiveMessageSent, LiveParticipantRegistered, LiveReplayWatched, RoleplayCompleted, RoleplayStarted, SpotMemberLeft, SpotMemberRegistered, SpotMemberRegistrationRequested, TopicAnswerCreated, TopicAnswerVoted, TopicCreated, or TopicVoted.

  • liveId object
    Hide liveId attribute Show liveId attribute object
    • liveId[eq] string(uuid)

      Only the activities on this live. A live of another Spot matches nothing.

  • courseId object
    Hide courseId attribute Show courseId attribute object
    • courseId[eq] string(uuid)

      Only the activities on this course. A course of another Spot matches nothing.

  • channelId object
    Hide channelId attribute Show channelId attribute object
    • channelId[eq] string(uuid)

      Only the activities on this channel. A channel of another Spot matches nothing.

  • collectionId object
    Hide collectionId attribute Show collectionId attribute object
    • collectionId[eq] string(uuid)

      Only the activities on this collection. A collection of another Spot matches nothing.

  • topicId object
    Hide topicId attribute Show topicId attribute object
    • topicId[eq] string(uuid)

      Only the activities on this topic. A topic of another Spot matches nothing.

  • spotMemberId object
    Hide spotMemberId attribute Show spotMemberId attribute object
    • spotMemberId[eq] string(uuid)

      Only the activities of this member (spot member id)

  • groupId object
    Hide groupId attribute Show groupId attribute object
    • groupId[in] array[string(uuid)]

      Only the activities of the members of one of these groups

  • role object
    Hide role attribute Show role attribute object
    • role[in] array[string]

      Only the activities of the members having one of these roles and no custom role

      Values are Member or Admin.

  • customRoleId object
    Hide customRoleId attribute Show customRoleId attribute object
    • customRoleId[in] array[string(uuid)]

      Only the activities of the members having one of these custom roles

  • 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.

    Values are day, week, month, eventType, role, group, member, live, course, channel, collection, or topic.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • total integer Required

      The number of activities over the period. A member in several of the filtered groups is counted once per group.

    • uniqueMemberCount integer Required

      The number of distinct members with at least one activity over the period

    • previousTotal integer Required

      The number of activities over the previous period: same duration, right before the start of the period

    • previousUniqueMemberCount integer Required

      The number of distinct members with at least one activity over the previous period

    • items array[object] Required

      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.

      Hide items attributes Show items attributes object
      • key string Required

        The value of the dimension: start of the day, week or month in ISO 8601 (UTC), event type, role, or id of the group, of the member or of the content

      • label string Required

        The readable name of the group: date, event type, role, name of the group or of the member, or title of the content

      • count integer Required

        The number of activities of the group

      • uniqueMemberCount integer Required

        The number of distinct members with at least one activity in the group

  • 400

    Malformed payload, unknown groupBy, missing or too long period

GET /v1/activities~count
curl \
 --request GET 'https://openapi.meltingspot.io/v1/activities~count'
Response examples (200)
{
  "total": 42,
  "uniqueMemberCount": 42,
  "previousTotal": 42,
  "previousUniqueMemberCount": 42,
  "items": [
    {
      "key": "string",
      "label": "string",
      "count": 42,
      "uniqueMemberCount": 42
    }
  ]
}