example-data.com
Menu
Browse docs and collections

courses

courses

Page 3 of 4.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 49,
      "instructorUserId": 151,
      "title": "Advanced Operations",
      "slug": "advanced-operations-49",
      "description": "Centum caelestis adfectus. Supra occaecati aetas sponte.",
      "category": "business",
      "difficulty": "intermediate",
      "language": "French",
      "durationHours": 16.6,
      "priceFrom": 185.38,
      "currency": "USD",
      "thumbnailUrl": "https://picsum.photos/seed/course-49/800/450",
      "rating": 3.1,
      "ratingCount": 4520,
      "enrollmentCount": 12857,
      "isPublished": true,
      "createdAt": "2025-06-29T15:02:42.837Z",
      "updatedAt": "2025-09-03T19:32:33.779Z"
    },
    {
      "id": 50,
      "instructorUserId": 13,
      "title": "Building with Copywriting",
      "slug": "building-with-copywriting-50",
      "description": "Subito carmen doloremque campana. Cuius aranea alii. Tamisium veritas triduana cetera.",
      "category": "writing",
      "difficulty": "intermediate",
      "language": "Spanish",
      "durationHours": 44.8,
      "priceFrom": 0,
      "currency": "USD",
      "thumbnailUrl": "https://picsum.photos/seed/course-50/800/450",
      "rating": 3.5,
      "ratingCount": 3385,
      "enrollmentCount": 4646,
      "isPublished": true,
      "createdAt": "2025-11-10T20:21:54.423Z",
      "updatedAt": "2026-01-10T04:10:15.908Z"
    },
    {
      "id": 51,
      "instructorUserId": 106,
      "title": "The Complete Guide to Operations",
      "slug": "the-complete-guide-to-operations-51",
      "description": "Correptius appositus peccatus defluo. Aptus tactus utpote truculenter creta cohors absorbeo ratione verbera. Vestrum statua molestias sursum statim aggero utor adimpleo alioqui.",
      "category": "business",
      "difficulty": "intermediate",
      "language": "German",
      "durationHours": 33.8,
      "priceFrom": 0,
      "currency": "USD",
      "thumbnailUrl": "https://picsum.photos/seed/course-51/800/450",
      "rating": 4.9,
      "ratingCount": 4085,
      "enrollmentCount": 6818,
      "isPublished": true,
      "createdAt": "2025-06-11T21:02:30.751Z",
      "updatedAt": "2025-08-04T05:46:43.554Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 80,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/courses?page=3&limit=24",
    "first": "/api/v1/courses?page=1&limit=24",
    "last": "/api/v1/courses?page=4&limit=24",
    "next": "/api/v1/courses?page=4&limit=24",
    "prev": "/api/v1/courses?page=2&limit=24"
  }
}