example-data.com
Menu
Browse docs and collections

enrollments

enrollments

Browse 501 enrollments records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Showing first 6 of 24 on this page.

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": 1,
      "userId": 1,
      "courseId": 16,
      "enrolledAt": "2025-10-15T22:31:55.977Z",
      "completedAt": null,
      "progressPercent": 56,
      "createdAt": "2025-10-15T22:29:13.969Z"
    },
    {
      "id": 2,
      "userId": 1,
      "courseId": 37,
      "enrolledAt": "2025-11-25T20:15:57.636Z",
      "completedAt": null,
      "progressPercent": 75,
      "createdAt": "2025-11-25T20:14:34.760Z"
    },
    {
      "id": 3,
      "userId": 2,
      "courseId": 70,
      "enrolledAt": "2026-04-25T21:36:12.469Z",
      "completedAt": null,
      "progressPercent": 96,
      "createdAt": "2026-04-25T21:32:03.203Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 501,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/enrollments?page=1",
    "first": "/api/v1/enrollments?page=1",
    "last": "/api/v1/enrollments?page=21",
    "next": "/api/v1/enrollments?page=2",
    "prev": null
  }
}

View full response →