example-data.com
Menu
Browse docs and collections

quizzes

quizzes

Page 3 of 6.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 49,
      "courseId": 34,
      "lessonId": 228,
      "title": "Concept Review — Mastering Mixing",
      "description": "Nisi socius cornu alius antiquus vehemens apto amoveo arto amo.",
      "passingScorePercent": 80,
      "timeLimitMinutes": null,
      "createdAt": "2025-06-13T12:17:06.011Z",
      "updatedAt": "2025-06-17T23:51:26.177Z"
    },
    {
      "id": 50,
      "courseId": 34,
      "lessonId": 235,
      "title": "Knowledge Check — Mastering Mixing",
      "description": "Cernuus adicio combibo capio depono theca.",
      "passingScorePercent": 75,
      "timeLimitMinutes": 53,
      "createdAt": "2025-06-14T09:13:38.115Z",
      "updatedAt": "2025-07-23T00:26:36.367Z"
    },
    {
      "id": 51,
      "courseId": 34,
      "lessonId": null,
      "title": "Concept Review — Mastering Mixing",
      "description": "Caelum cilicium crapula.",
      "passingScorePercent": 80,
      "timeLimitMinutes": 36,
      "createdAt": "2025-06-23T10:29:35.503Z",
      "updatedAt": "2025-07-07T05:43:43.998Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 126,
    "totalPages": 6
  },
  "links": {
    "self": "/api/v1/quizzes?page=3&limit=24",
    "first": "/api/v1/quizzes?page=1&limit=24",
    "last": "/api/v1/quizzes?page=6&limit=24",
    "next": "/api/v1/quizzes?page=4&limit=24",
    "prev": "/api/v1/quizzes?page=2&limit=24"
  }
}