POST
/
public
/
get-live-event-session-stats
curl --request POST \
  --url https://backend.codedamn.com/api/public/get-live-event-session-stats \
  --header 'Content-Type: application/json' \
  --header 'FERMION-API-KEY: <api-key>' \
  --data '{
  "data": [
    {
      "data": {
        "liveEventSessionId": "<string>",
        "topUserCount": 500
      }
    }
  ]
}'
[
  {
    "output": {
      "status": "ok",
      "data": {
        "estimatedStreamDurationInMinutes": 123,
        "streamStartedAt": "2023-11-07T05:31:56Z",
        "streamEndedAt": "2023-11-07T05:31:56Z",
        "totalMessagesSentCount": 123,
        "instructorMessagesSentCount": 123,
        "pollsConductedCount": 123,
        "uniqueUsersCount": 123,
        "currentActivelyWatchingDistinctUserCount": 123,
        "peakConcurrentUsers": 123,
        "streamSegmentData": [
          {
            "startAtIso": "<string>",
            "endAtIso": "<string>",
            "activelyWatchingDistinctUserCount": 123
          }
        ],
        "topUsersByWatchTime": [
          {
            "fermionInternalUserId": "<string>",
            "userId": "<string>",
            "email": "jsmith@example.com",
            "name": "<string>",
            "username": "<string>",
            "profilePicUrl": "<string>",
            "segmentsWatchedCount": 123,
            "firstSeenAt": "2023-11-07T05:31:56Z",
            "lastSeenAt": "2023-11-07T05:31:56Z"
          }
        ]
      }
    }
  }
]

Authorizations

FERMION-API-KEY
string
header
required

Body

application/json

API Request Body

The body is of type object.

Response

200 - application/json

API Response Body

The response is of type object[].