Course Analytics
To obtain internal group uuid to be used for the course analytics API, please refer to Mapping
Get course overview
GET /hosts/{hostId}/groups/{groupId}
Get group (course) overview for the specified period of time.
Required user scope: super-mod
Query Parameter
Name | Value |
|---|---|
| ISO formatted start date |
| ISO formatted end data |
Example:
/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups/910aac35-d911-4e4b-bfbb-3ba2f2bd16ff?start_date=2024-12-31T22%3A00%3A00.000Z&end_date=2025-01-12T10%3A05%3A32.890Z
Response
200
{ "id": "910aac35-d911-4e4b-bfbb-3ba2f2bd16ff", "host_id": "9a89fe71-78d6-4e29-8fb1-82c0cba44eed", "group_id": "9", "private_thread": true, "type": "playlist", "title": "Test A1", "description": null, "thumbnails": null, "created_at": "2024-10-02T08:14:51.245Z", "updated_at": "2024-10-02T08:14:51.245Z", "threads_count": 0, "engagement_rating": 0, "collaboration_rating": 0, "notes_count": 0, "ctas_count": 0, "users_count": 0, "engaged_users_count": 0, "collaborated_users_count": 0, "noted_users_count": 0, "voted_users_count": 0, "views_count": 0, "active_at": null, "avg_completion_rate": 0}
400
{ "message": "Bad request", "statusCode": 400}
Get course threads
GET /hosts/{hostId}/groups/{groupId}/threads
Get group threads analytics (course videos) for the specified period of time.
Required user scope: super-mod
Query Parameter
Name | Value |
|---|---|
| ISO formatted start date |
| ISO formatted end data |
| pagination page number |
| pagination page size |
| active_at, updated_at, pd, engagement_count, comments_count, notes_count, views_count, unique_views_count, not_reviewed_count, created_at, avg_completion_rate, avg_watch_time_p, avg_total_completion, ctas_count |
Example:
/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups/910aac35-d911-4e4b-bfbb-3ba2f2bd16ff/threads?page=0&size=10&order_by=active_at&start_date=2024-12-31T22%3A00%3A00.000Z&end_date=2025-01-12T10%3A05%3A32.890Z
Response
200
{ "total": 1, "results": [ { "id": "c665c15c-ee40-41c0-97b7-e10bfe25b9ce", "host": "9a89fe71-78d6-4e29-8fb1-82c0cba44eed", "author_id": "9fc7f262-6cd0-4f7c-835c-a71a17e20e04", "group_id": "910aac35-d911-4e4b-bfbb-3ba2f2bd16ff", "live": false, "origin": { //... }, "player": "videojs", "source": "https://www.youtube.com/watch?v=o7PlRT0nLx8", "state": 0, "media": "video", "pd": 105, "updated_at": "2024-11-18T15:01:36.460Z", "created_at": "2024-10-02T08:22:07.460Z", "root_comments_count": 29, "comments_count": 31, "notes_count": 2, "ctas_count": 1, "engagement_count": 36, "views_count": 7, "unique_views_count": 3, "active_at": "2024-11-18T15:01:38.968Z", "avg_completion_rate": 24.25, "avg_total_completion": 32, "avg_watch_time_p": 38.75457875457876, "metadata": { //... } } ]}
400
{ "message": "Bad request", "statusCode": 400}
Get course users
GET /hosts/{hostId}/groups/{groupId}/users
Get group users analytics (course users) for the specified period of time.
Required user scope: super-mod
Query Parameter
Name | Value |
|---|---|
| ISO formatted start date |
| ISO formatted end data |
| pagination page number |
| pagination page size |
| active_at, collaboration_score, engagement_score, replies_score, votes_score, notes_count, views_count, unique_views_count, ugc_badges_score, avg_completion_rate, avg_watch_time_p, avg_total_completion |
Example:
/hosts/9a89fe71-78d6-4e29-8fb1-82c0cba44eed/groups/910aac35-d911-4e4b-bfbb-3ba2f2bd16ff/users?page=0&size=10&order_by=avg_total_completion&start_date=2024-12-31T22%3A00%3A00.000Z&end_date=2025-01-12T10%3A05%3A32.890Z
Response
200
{ "total": 3, "results": [ { "avg_total_completion": 70, "collaboration_score": 10, "notes_count": 1, "replies_score": 1, "votes_score": 1, "engagement_score": 10, "views_count": 2, "unique_views_count": 1, "ugc_badges_score": 0, "active_at": "2024-10-13T09:29:22.305Z", "avg_completion_rate": 70, "avg_watch_time_p": 89.52380952380953, "author": { //... }, "created_at": "2024-10-02T10:37:03.475Z", "updated_at": "2024-11-20T11:44:59.965Z", "anonymous": false }, { "avg_total_completion": 19, "collaboration_score": 0, "notes_count": 1, "replies_score": 0, "votes_score": 0, "engagement_score": 2, "views_count": 2, "unique_views_count": 1, "ugc_badges_score": 0, "active_at": "2024-10-09T10:44:21.792Z", "avg_completion_rate": 19, "avg_watch_time_p": 19.047619047619047, "author": { //... }, "created_at": "2024-10-02T08:14:45.480Z", "updated_at": "2024-11-13T16:22:54.409Z", "anonymous": false }, { "avg_total_completion": 7, "collaboration_score": 21, "notes_count": 0, "replies_score": 1, "votes_score": 3, "engagement_score": 24, "views_count": 3, "unique_views_count": 1, "ugc_badges_score": 0, "active_at": "2024-11-18T15:01:38.968Z", "avg_completion_rate": 4, "avg_watch_time_p": 7.6923076923076925, "author": { //... }, "created_at": "2024-10-09T10:50:03.320Z", "updated_at": "2024-11-20T10:12:15.652Z", "anonymous": false } ]}
400
{ "message": "Bad request", "statusCode": 400}