curl --request GET \ --url 'https://YOURSITE.konstant.ly/openapi/v1/statistics' \ --header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{ "statistics": { "coursesCount": 25, "assignedCoursesCount": 150, "groupsCount": 10, "usersCount": 100 }, "usersWithoutActivity": [ { "id": "user123", "name": "John Smith", "email": "john@example.com", "language": "en", "timezone": "Europe/London", "role": { "alias": "learner" }, "isBanned": false, "fromApi": false, "image": null } ], "usersWithoutResults": [ { "id": "user456", "name": "Jane Doe", "email": "jane@example.com", "language": "en", "timezone": "America/New_York", "role": { "alias": "learner" }, "isBanned": false, "fromApi": false, "image": null } ], "leaders": [ { "coursesCount": 15, "resultValue": 95, "user": { "id": "user789", "name": "Alice Johnson", "email": "alice@example.com", "role": { "alias": "learner" } } } ], "unassignedCourses": [ { "id": 123, "name": "Introduction Course", "annotation": "Basic introduction", "isDraft": false, "createdAt": 1507807711, "updatedAt": 1507808372, "publishedAt": 1508225229, "image": null } ] }
Get the global statistics of Konstantly site
Show Statistics properties
Show User properties
Show Leader properties
Show Course properties
Was this page helpful?