---
title: "Get course analytics"
method: GET
path: "/v2/analytics/courses/{course_id}"
tags: ["Analytics"]
---

# Get course analytics

`GET /v2/analytics/courses/{course_id}`

Retrieve a single course's analytics summary, optionally narrowed by ``filter[domains]``.

**Required OAuth scope:** `analytics:read`

## Path parameters

- `course_id` string, required

## Query parameters

- `filter[domains]` string, nullable — Comma-separated domain names; counts only enrollments whose published course is in one of those domains. Unknown names match nothing, never error.

## Response `200`

OK

- CourseAnalyticsDetailResponse — JSON:API single-resource response for a course's analytics summary.
  - `data` CourseAnalyticsResource, required — JSON:API resource object for a course's analytics summary.
    - `type` string — Always "course-analytics".
    - `id` string, required — Opaque course ID.
    - `attributes` CourseAnalyticsAttributes, required — Attributes of a course-analytics resource.
      - `enrollments` integer, required — Number of enrollment rows across the course's published courses.
      - `completions` integer, required — Number of those enrollments whose course progress is completed.
      - `completion_rate` number, nullable — Completions divided by enrollments, or null when there are no enrollments.
      - `average_rating` number, nullable — Average student rating on the org's active rating scale, or null when there are no ratings.
      - `rating_scale` integer, required — The org's active rating scale used for rating aggregates (5 or 10).
      - `rating_count` integer, required — Number of ratings counted on the org's active rating scale.
      - `certificates_issued` integer, required — Number of those enrollments with a certificate.
    - `relationships` CourseAnalyticsRelationships, required — Relationships of a course-analytics resource.
      - `course` CourseRelationship, required — To-one linkage to the course being published.
        - `data` CourseIdentifier, required — JSON:API resource identifier for a course.
          - `type` 'courses', required — Must be "courses".
          - `id` string, required — Opaque course id.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/skilljar/apis/skilljar-api-v2.md) · [All operations](https://skmtc.net/skilljar/apis/skilljar-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skilljar/skilljar-api-v2/revisions/f8025de20169/schema)
