---
title: "Course Statistics"
method: GET
path: "/api/v1/courses/{course_id}/statistics"
tags: ["api", "api", "courses"]
---

# Course Statistics

`GET /api/v1/courses/{course_id}/statistics`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/courses/{course_id}/statistics`
- Auth: HTTP bearer

A'zolar reytingi (o'zlashtirish bo'yicha) + agregat ko'rsatkichlar.

## Path parameters

- `course_id` string, required

## Response `200`

Successful Response

- CourseStatsResponse: GET /courses/{id}/statistics — a'zolar reytingi + agregatlar.
  - `leaderboard` CourseStudent[]
    - `id` string, required
    - `full_name` string, required
    - `email` string, nullable
    - `phone` string, nullable
    - `avatar_url` string, nullable
    - `mastery_percent` integer
    - `has_debt` boolean
    - `status` 'request' | 'student' | 'teacher' | 'supportTeacher' | 'parent' | 'staff' | 'spam': Kurs o'quvchisining roli/holati (COURSES_API.md §3).
    - `subscription` 'active' | 'trial' | 'debtor' | 'expired': Kurs o'quvchisining obuna (reja) holati (COURSES_API.md §3).
    - `group_id` string, nullable
    - `is_course_admin` boolean
    - `parent_of` string, nullable
    - `rank` integer, nullable
    - `contacts` StudentContact[]
      - `relation` string, required
      - `phone` string, required
    - `payments` LessonPayment[]
      - `lesson` integer, required
      - `due` integer, required
      - `paid` integer, required
    - `phone_verification_status` string, nullable
    - `enrolled_at` string, required
  - `avg_mastery` integer
  - `attendance_rate` integer
  - `member_counts` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
