example-data.com
Menu
Browse docs and collections

enrollments

enrollments

Page 12 of 21.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/enrollments?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/enrollments?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/enrollments.d.ts https://example-data.com/types/enrollments.d.ts
import type { Enrollment, ListEnvelope } from "./types/enrollments";

const res = await fetch(
  "https://example-data.com/api/v1/enrollments?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Enrollment>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/enrollments",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 265,
      "userId": 135,
      "courseId": 73,
      "enrolledAt": "2026-05-09T10:55:37.397Z",
      "completedAt": null,
      "progressPercent": 44,
      "createdAt": "2026-05-09T10:53:55.850Z"
    },
    {
      "id": 266,
      "userId": 136,
      "courseId": 11,
      "enrolledAt": "2024-11-29T12:31:35.381Z",
      "completedAt": null,
      "progressPercent": 77,
      "createdAt": "2024-11-29T12:29:42.964Z"
    },
    {
      "id": 267,
      "userId": 136,
      "courseId": 38,
      "enrolledAt": "2025-10-23T05:15:35.197Z",
      "completedAt": null,
      "progressPercent": 59,
      "createdAt": "2025-10-23T05:13:43.745Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 501,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/enrollments?page=12&limit=24",
    "first": "/api/v1/enrollments?page=1&limit=24",
    "last": "/api/v1/enrollments?page=21&limit=24",
    "next": "/api/v1/enrollments?page=13&limit=24",
    "prev": "/api/v1/enrollments?page=11&limit=24"
  }
}