example-data.com
Menu
Browse docs and collections

Overview

quiz-questions / #764

Blandior torrens tutamen traho calamitas enim textus advoco villa denego?

quizId
quizzes/119
text
Blandior torrens tutamen traho calamitas enim textus advoco villa denego?
kind
multiple_choice
options
vinco asporto aliquid aut adhaero vilicus
correctAnswer
vinco
sortOrder
4
createdAt

Component variants

Related

References

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/quiz-questions/764" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/quiz-questions/764"
);
const quizQuestion = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/quiz-questions.d.ts https://example-data.com/types/quiz-questions.d.ts
import type { QuizQuestion } from "./types/quiz-questions";

const res = await fetch(
  "https://example-data.com/api/v1/quiz-questions/764"
);
const quizQuestion = (await res.json()) as QuizQuestion;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/quiz-questions/764"
)
quiz_question = res.json()

Response

{
  "id": 764,
  "quizId": 119,
  "text": "Blandior torrens tutamen traho calamitas enim textus advoco villa denego?",
  "kind": "multiple_choice",
  "options": [
    "vinco",
    "asporto aliquid",
    "aut adhaero",
    "vilicus"
  ],
  "correctAnswer": "vinco",
  "sortOrder": 4,
  "createdAt": "2024-09-16T00:31:02.772Z"
}