← Afþreying

Þrautaspurningar

GET /trivia/questions

Sæktu handahófskenndar fróðleiksspurningar með fjölvalsspurningum eða satt/ósatt svörum. Stillanlegt eftir magni (allt að 50), flokki og erfiðleikastigi (auðvelt/miðlungs/erfitt). Skilar spurningum með réttum og röngum svörum, flokki og erfiðleikastigi. Gagnlegt fyrir spurningakeppnir, fróðleiksleiki, fræðsluverkfæri, liðsmyndunarverkefni og skemmtanaaðgerðir spjallþjarka. Gögn frá Open Trivia Database með yfir 4.000 staðfestum spurningum.

Sjáðu það myndrænt

Breytur

amount valfrjálst sjálfgefið: 10

Count

category valfrjálst

Category

difficulty valfrjálst

easy/medium/hard

Dæmi um fyrirspurnir

Grunnnotkun
curl "https://nordapi.ee/api/v1/trivia/questions?amount=5"
5 random trivia questions
curl "https://nordapi.ee/api/v1/trivia/questions?amount=5"
10 easy science questions
curl "https://nordapi.ee/api/v1/trivia/questions?amount=10&category=17&difficulty=easy"
20 hard history questions
curl "https://nordapi.ee/api/v1/trivia/questions?amount=20&category=23&difficulty=hard"

Lifandi svar

{
  "count": 5,
  "data": [
    {
      "category": "Geography",
      "correct_answer": "Altaic",
      "difficulty": "medium",
      "incorrect_answers": [
        "Sino-Tibetan",
        "Dravidian",
        "Indo-European"
      ],
      "question": "Which of the following language families is the most controversial amongst modern linguists?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Music",
      "correct_answer": "1984",
      "difficulty": "medium",
      "incorrect_answers": [
        "1979",
        "1983",
        "1981"
      ],
      "question": "When was the Prince album \"Purple Rain\" released?",
      "type": "multiple"
    },
    {
      "category": "General Knowledge",
      "correct_answer": "Zima",
      "difficulty": "medium",
      "incorrect_answers": [
        "Leto",
        "Vesna",
        "Osen'"
      ],
      "question": "What is the romanized Russian word for \"winter\"?",
      "type": "multiple"
    },
    {
      "category": "Science & Nature",
      "correct_answer": "Titan",
      "difficulty": "hard",
      "incorrect_answers": [
        "Europa",
        "Miranda",
        "Callisto"
      ],
      "question": "Which moon is the only satellite in our solar system to possess a dense atmosphere?",
      "type": "multiple"
    },
    {
      "category": "History",
      "correct_answer": "Goldsboro, North Carolina",
      "difficulty": "medium",
      "incorrect_answers": [
        "Hicksville, New York",
        "Jacksonville, Florida",
        "Conway, Arkansas"
      ],
      "question": "In 1961, an American B-52 aircraft crashed and nearly detonated two 4mt nuclear bombs over which US city?",
      "type": "multiple"
    }
  ],
  "success": true
}