---
title: "List course students"
method: GET
path: "/course_students"
tags: ["Course students"]
---

# List course students

`GET /course_students`

Returns a paginated list of students enrolled in a course, with optional name filtering.

Required permissions:
 - `courses:read`
 - `course_analytics:read`

## Query parameters

- `after` string, nullable — Returns the elements in the list that come after the specified cursor.
- `before` string, nullable — Returns the elements in the list that come before the specified cursor.
- `first` integer, nullable — Returns the first _n_ elements from the list.
- `last` integer, nullable — Returns the last _n_ elements from the list.
- `course_id` string, required — The unique identifier of the course to list enrolled students for.
- `keyword` string, nullable — A search term to filter students by name or username.

## Response `200`

A successful response

- object — The connection type for CourseStudentType.
  - `data` CourseStudentListItem[], required — A list of nodes.
    - `completed_lessons_count` integer, required — The total number of lessons this student has marked as completed in the course.
    - `completion_rate` number, required — The percentage of available lessons the student has completed, as a value from 0 to 100 rounded to two decimal places.
    - `first_interaction_at` string, date-time, required — The timestamp when the student first interacted with this course, as a Unix timestamp.
    - `id` string, required — The unique identifier for the course student type.
    - `last_interaction_at` string, date-time, required — The timestamp when the student most recently interacted with this course, as a Unix timestamp.
    - `total_lessons_count` integer, required — The total number of visible lessons available to this student in the course.
    - `user` object, required — The user profile of the enrolled student.
      - `id` string, required — The unique identifier for the user.
      - `name` string, nullable, required — The user's display name shown on their public profile.
      - `username` string, required — The user's unique username shown on their public profile.
  - `page_info` PageInfo, required — Information about pagination in a connection.
    - `end_cursor` string, nullable, required — When paginating forwards, the cursor to continue.
    - `has_next_page` boolean, required — When paginating forwards, are there more items?
    - `has_previous_page` boolean, required — When paginating backwards, are there more items?
    - `start_cursor` string, nullable, required — When paginating backwards, the cursor to continue.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `422` — Verification required
- `429` — Too many requests
- `500` — Internal server error

---

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