Live
Get live event session stats
Get stream and viewer stats for a live event session
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
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
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[]
.
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"
}
]
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.