GET
/
courses
/
{courseId}
/
statistics
curl --request GET \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/statistics \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "statistics": {
    "sharedCoursesCount": 10,
    "assignedCoursesCount": 50,
    "startUsersCount": 45,
    "finishedUsersCount": 30,
    "averageResultValue": 85
},
    "tests": [
{
    "id": 1,
    "name": "Final Test",
    "questionsCount": 20,
    "usersCount": 40,
    "attemptsCount": 45,
    "successUsersCount": 35,
    "averageResultValue": 88
}
    ],
    "progress": {
    "0": 2,
    "1-10": 1,
    "11-20": 3,
    "21-30": 9,
    "31-40": 0,
    "41-50": 4,
    "51-60": 3,
    "61-70": 5,
    "71-80": 7,
    "81-90": 4,
    "91-99": 3,
    "100": 2
},
    "tags": [
{
    "tagId": 1,
    "tag": "Sales Basics",
    "resultValue": 85
},
{
    "tagId": 2,
    "tag": "Advanced Techniques",
    "resultValue": 75
}
    ]
}
Retrieve comprehensive statistics for a specific course, including user progress, completion rates, and test results.

Path Parameters

courseId
integer
required
The unique identifier of the course

Request Headers

X-API-KEY
string
required
API Key. Go to your Konstantly site > Settings > API and copy the value from there.

Response

statistics
object
required
General course statistics
tests
array
required
Course test statistics
progress
object
required
Users distribution by progress ranges
tags
array
required
Question tag statistics

Error Responses

404
object
Returned when the course is not found
curl --request GET \
--url https://YOURSITE.konstant.ly/openapi/v1/courses/123/statistics \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "statistics": {
    "sharedCoursesCount": 10,
    "assignedCoursesCount": 50,
    "startUsersCount": 45,
    "finishedUsersCount": 30,
    "averageResultValue": 85
},
    "tests": [
{
    "id": 1,
    "name": "Final Test",
    "questionsCount": 20,
    "usersCount": 40,
    "attemptsCount": 45,
    "successUsersCount": 35,
    "averageResultValue": 88
}
    ],
    "progress": {
    "0": 2,
    "1-10": 1,
    "11-20": 3,
    "21-30": 9,
    "31-40": 0,
    "41-50": 4,
    "51-60": 3,
    "61-70": 5,
    "71-80": 7,
    "81-90": 4,
    "91-99": 3,
    "100": 2
},
    "tags": [
{
    "tagId": 1,
    "tag": "Sales Basics",
    "resultValue": 85
},
{
    "tagId": 2,
    "tag": "Advanced Techniques",
    "resultValue": 75
}
    ]
}