← Viihde

Tietovisakysymykset

GET /trivia/questions

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.

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: Video Games",
      "correct_answer": "$4750",
      "difficulty": "medium",
      "incorrect_answers": [
        "$4500",
        "$4650",
        "$5000"
      ],
      "question": "How much does the 'AWP' cost in Counter-Strike: Global Offensive?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Video Games",
      "correct_answer": "False",
      "difficulty": "easy",
      "incorrect_answers": [
        "True"
      ],
      "question": "In \"Tony Hawk's Underground\", the main character's friend turned rival is named \"Jeff Sampson\"",
      "type": "boolean"
    },
    {
      "category": "Entertainment: Books",
      "correct_answer": "Badger",
      "difficulty": "hard",
      "incorrect_answers": [
        "Fox",
        "Frog",
        "Rabbit"
      ],
      "question": "In the Beatrix Potter books, what type of animal is Tommy Brock?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Japanese Anime & Manga",
      "correct_answer": "Kinema Citrus",
      "difficulty": "easy",
      "incorrect_answers": [
        "Trigger",
        "Studio 3hz",
        "8bit"
      ],
      "question": "What anime studio was in charge of the hit anime \"Made in Abyss\"?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Film",
      "correct_answer": "The Hateful Eight",
      "difficulty": "easy",
      "incorrect_answers": [
        "Tron: Legacy",
        "The Giver",
        "True Grit"
      ],
      "question": "Which of these movies did Jeff Bridges not star in?",
      "type": "multiple"
    }
  ],
  "success": true
}