API for iblai
- Get Content Analytics
ibl-data-manager (4.84.1-ai-plus)
Request
Get a list of user groups with metrics and filtering options.
This endpoint provides a paginated list of user groups with aggregated metrics about learner performance, course completions, and skill acquisition.
This endpoint uses DM token authentication and respects department-based access controls.
Query Parameters: page (int, optional): Page number for pagination length (int, optional): Number of items per page program (str, optional): Filter by program pathway (str, optional): Filter by pathway groups (list, optional): Filter by group names location (str, optional): Filter by location is_enrolled (bool, optional): Filter for groups with enrolled users start_date (date, optional): Filter by learner join date (start range) end_date (date, optional): Filter by learner join date (end range)
Returns: A paginated list of user groups with comprehensive metrics.
Access Control:
- Platform admins can see all groups
- Department admins can only see groups in their departments
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/user-groups/orgs/{org}/
- https://base.manager.iblai.app/api/ai-analytics/user-groups/orgs/{org}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/user-groups/orgs/{org}/?department_id=0&end_date=2019-08-24&format=json&groups=string&include_main_platform=true&is_enrolled=true&length=0&location=string&page=0&pathway=string&program=string&start_date=2019-08-24' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": [ { … } ], "pagination": { "totalItems": 0, "currentPage": 0, "perPage": 0, "totalPages": 0 } }
Request
Retrieve aggregated analytics for catalog content (courses, programs, pathways, skills).
Returns both summary statistics and paginated list of content items with individual analytics. When a platform_key is provided, results are filtered to show only content consumed by learners associated with that platform.
Metrics supported:
courseorcourses: Course analytics with time spentprogramorprograms: Program analyticspathwayorpathways: Pathway analyticsskillorskills: Skill analytics
Platform Filtering:
- Without platform_key: Shows global analytics across all platforms
- With platform_key: Shows analytics filtered by platform learners only
Time Spent Analytics:
- Platform-level: Total time spent across all content and average per learner
- Course-level: Total time spent per course and average per enrolled learner
- Time values are provided in seconds for precision
- Overtime: Time series data showing platform time spent over last 7 days (courses only, and include_overtime=true)
External Content:
- Content not owned by the requesting platform but used by its learners is marked as "external"
- External content has limited metadata exposure for privacy
today- Today only7d- Last 7 days30d- Last 30 days90d- Last 90 daysall_time- All timecustom- Custom date range
day- dayhour- hourweek- weekmonth- month
The type of content to retrieve (course, program, pathway, skill)
course- coursecourses- coursesprogram- programprograms- programspathway- pathwaypathways- pathwaysskill- skillskills- skills
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/analytics/content/
- https://base.manager.iblai.app/api/analytics/content/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/analytics/content/?date_filter=today&end_date=2019-08-24&granularity=day&include_overtime=false&limit=20&mentor_unique_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&metric=course&page=1&platform_key=string&start_date=2019-08-24' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "metric": "string", "summary": { "totals": { … }, "averages": { … }, "overtime": [ … ] }, "pagination": { "count": 0, "next": "string", "previous": "string", "current_page": 0, "total_pages": 0 }, "results": [ { … } ] }
today- Today only7d- Last 7 days30d- Last 30 days90d- Last 90 daysall_time- All timecustom- Custom date range
Content type to fetch (course, program, pathway, skill)
course- coursecourses- coursesprogram- programprograms- programspathway- pathwaypathways- pathwaysskill- skillskills- skills
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/analytics/content/details/{content_id}/
- https://base.manager.iblai.app/api/analytics/content/details/{content_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/analytics/content/details/{content_id}/?date_filter=today&end_date=2019-08-24&limit=10&mentor_unique_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&metric=course&page=1&platform_key=string&search=string&start_date=2019-08-24&time_metric=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Serializer for the content information block.
Serializer for summary data in the content details endpoint.
Total counts related to the content item
Average values related to the content item
Serializer for pagination information in content details response.
Date the learner enrolled in the content
{ "content_info": { "id": "string", "name": "string", "type": "string", "slug": "string", "platform": "string", "external": true, "metadata": { … } }, "summary": { "totals": { … }, "averages": { … }, "time_series": { … } }, "pagination": { "count": 0, "next": "string", "previous": "string", "current_page": 0, "total_pages": 0 }, "learners": [ { … } ] }