Retrieve detailed statistics and analytics information for a specific group.
Path Parameters
The unique identifier of the group to get statistics for
API Key. Go to your Konstantly site > Settings > API and copy the value from there.
Response
Basic group information
Parent group ID if applicable
Number of courses assigned to group
List of users with no activity in the group
List of users who haven’t completed any assessments
Top performing users in the group
Number of completed courses
Error Responses
Returned when the group is not found
curl --request GET \
--url 'https://YOURSITE.konstant.ly/openapi/v1/groups/123/statistics' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
"group": {
"id": 123,
"name": "Marketing Team",
"parentId": null,
"usersCount": 25,
"coursesCount": 10,
"image": null,
"attributes": {}
},
"usersWithoutActivity": [
{
"id": "user1",
"name": "John Smith",
"email": "john@example.com",
"role": {
"alias": "learner"
}
}
],
"usersWithoutResults": [
{
"id": "user2",
"name": "Jane Doe",
"email": "jane@example.com",
"role": {
"alias": "learner"
}
}
],
"leaders": [
{
"coursesCount": 8,
"resultValue": 95,
"user": {
"id": "user3",
"name": "Mike Johnson",
"email": "mike@example.com",
"role": {
"alias": "learner"
}
}
}
]
}