← 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: Board Games",
      "correct_answer": "Go to jail",
      "difficulty": "medium",
      "incorrect_answers": [
        "Get paid $200",
        "Pay $200",
        "Move to Free Parking"
      ],
      "question": "What happens when you roll 3 doubles in a row in Monopoly?",
      "type": "multiple"
    },
    {
      "category": "Sports",
      "correct_answer": "Steve Yzerman",
      "difficulty": "hard",
      "incorrect_answers": [
        "Chris Pronger",
        "Jose Theodore",
        "Henrik Sedin"
      ],
      "question": "Which of these NHL players have never won a Hart Trophy for Regular Season MVP?",
      "type": "multiple"
    },
    {
      "category": "Sports",
      "correct_answer": "Chile",
      "difficulty": "medium",
      "incorrect_answers": [
        "Argentina",
        "Brazil",
        "Colombia"
      ],
      "question": "Which soccer team won the Copa América Centenario 2016?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Video Games",
      "correct_answer": "Square Enix",
      "difficulty": "medium",
      "incorrect_answers": [
        "Capcom",
        "Konami",
        "Blizzard"
      ],
      "question": "Which company made the Japanese RPG \"Dragon Quest\"?",
      "type": "multiple"
    },
    {
      "category": "Entertainment: Japanese Anime & Manga",
      "correct_answer": "Ley Batenkaitos",
      "difficulty": "medium",
      "incorrect_answers": [
        "Roy Alphard",
        "Petelgeuse Romanee-Conti",
        "Louis Arneb"
      ],
      "question": "In the \"Re:Zero\" manga series, which of the following Sin Archbishops eats Rem's existence?",
      "type": "multiple"
    }
  ],
  "success": true
}