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
}
]
}
Get detailed statistics for a specific course
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
}
]
}
Show Statistics properties
Show Test statistics properties
Show Progress ranges
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
}
]
}
Was this page helpful?