← Entretenimiento

Preguntas de trivia

GET /trivia/questions

Obtenga preguntas de trivial aleatorias con respuestas de opción múltiple o de verdadero/falso. Configurable por cantidad (hasta 50), categoría y nivel de dificultad (fácil/medio/difícil). Devuelve las preguntas con las respuestas correctas e incorrectas, la categoría y la dificultad. Útil para aplicaciones de cuestionarios, juegos de trivial, herramientas educativas, actividades de team building y funciones de entretenimiento con chatbots. Datos de Open Trivia Database con más de 4.000 preguntas verificadas.

Véalo visualizado

Parametros

amount opcional predeterminado: 10

Count

category opcional

Category

difficulty opcional

easy/medium/hard

Ejemplos de solicitudes

Uso basico
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"

Respuesta en vivo

{
  "count": 5,
  "data": [
    {
      "category": "Entertainment: Video Games",
      "correct_answer": "Counter-Strike",
      "difficulty": "hard",
      "incorrect_answers": [
        "Portal",
        "Half-Life 2: Episode Two",
        "Team Fortress 2"
      ],
      "question": "Which of the following games was NOT included in Valve's Orange Box?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Video Games",
      "correct_answer": "Madonna",
      "difficulty": "hard",
      "incorrect_answers": [
        "Celeste",
        "Sierra",
        "Nina"
      ],
      "question": "What was the name of Sonic the Hedgehog's original human girlfriend?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Video Games",
      "correct_answer": "Second World War",
      "difficulty": "medium",
      "incorrect_answers": [
        "Manga",
        "World of Warcraft",
        "An Anime"
      ],
      "question": "What is the browser game Kantai Collection heavily inspired by?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Japanese Anime & Manga",
      "correct_answer": "True",
      "difficulty": "easy",
      "incorrect_answers": [
        "False"
      ],
      "question": "Clefairy was intended to be Ash's starting Pokémon in the pilot episode of the cartoon.",
      "type": "boolean"
    },
    {
      "category": "Sports",
      "correct_answer": "Minneapolis",
      "difficulty": "medium",
      "incorrect_answers": [
        "Philadelphia",
        "Chicago",
        "San Francisco"
      ],
      "question": "What city did the Lakers represent before relocating to Los Angeles?",
      "type": "multiple"
    }
  ],
  "success": true
}