← Viihde

Tietovisakysymykset

GET /trivia/questions

Hae satunnaisia tietovisakysymyksiä monivalinta- tai tosi/epätosi-vastauksilla. Konfiguroitavissa määrän (enintään 50), kategorian ja vaikeustason (helppo/keskivaikea/vaikea) mukaan. Palauttaa kysymykset oikeine ja vääriine vastauksineen, kategorian ja vaikeusasteen. Hyödyllinen tietovisasovelluksille, tietovisapeleille, opetuksellisille työkaluille, ryhmäytymisaktiviteeteille ja chatbottien viihdeominaisuuksille. Data Open Trivia Databasesta yli 4 000 vahvistetulla kysymyksellä.Hae random trivia questions with multiple-choice or true/false answers. Määritettävä by amount (up to 50), category, and difficulty level (easy/medium/hard). Palauttaa questions with correct and incorrect answers, category, and difficulty. Hyödyllinen quiz apps, trivia games, educational tools, team-building activities, and chatbot entertainment features. Data Open Trivia Database with 4,000+ verified questions.

Katso se visualisoituna

Parametrit

amount valinnainen oletus: 10

Count

category valinnainen

Category

difficulty valinnainen

easy/medium/hard

Esimerkkipyynnöt

Peruskäyttö
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"

Reaaliaikainen vastaus

{
  "count": 5,
  "data": [
    {
      "category": "Entertainment: Film",
      "correct_answer": "1957",
      "difficulty": "hard",
      "incorrect_answers": [
        "1955",
        "1953",
        "1959"
      ],
      "question": "In the Friday The 13th series, what year did Jason drown in?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Film",
      "correct_answer": "As a joke",
      "difficulty": "medium",
      "incorrect_answers": [
        "For cheating",
        "Revenge",
        "To test him"
      ],
      "question": "In the 2002 film \"Kung Pow! Enter the Fist\", why was Wimp Lo purposely trained wrong?",
      "type": "multiple"
    },
    {
      "category": "General Knowledge",
      "correct_answer": "False",
      "difficulty": "easy",
      "incorrect_answers": [
        "True"
      ],
      "question": "The New York Subway is the oldest underground in the world.",
      "type": "boolean"
    },
    {
      "category": "Geography",
      "correct_answer": "True",
      "difficulty": "easy",
      "incorrect_answers": [
        "False"
      ],
      "question": "Vatican City is a country.",
      "type": "boolean"
    },
    {
      "category": "General Knowledge",
      "correct_answer": "A Tight Rope",
      "difficulty": "easy",
      "incorrect_answers": [
        "Broken Glass",
        "Balls",
        "The Moon"
      ],
      "question": "What does a funambulist walk on?",
      "type": "multiple"
    }
  ],
  "success": true
}