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.
amount
opcional
predeterminado: 10
Count
category
opcional
Category
difficulty
opcional
easy/medium/hard
| Nombre | Requerido | Predeterminado | Descripcion |
|---|---|---|---|
amount |
No | 10 | Count |
category |
No | - | Category |
difficulty |
No | - | easy/medium/hard |
curl "https://nordapi.ee/api/v1/trivia/questions?amount=5"
curl "https://nordapi.ee/api/v1/trivia/questions?amount=5"
curl "https://nordapi.ee/api/v1/trivia/questions?amount=10&category=17&difficulty=easy"
curl "https://nordapi.ee/api/v1/trivia/questions?amount=20&category=23&difficulty=hard"
{
"count": 5,
"data": [
{
"category": "Entertainment: Video Games",
"correct_answer": "The Lead Programmer's birthday",
"difficulty": "hard",
"incorrect_answers": [
"The first release date of \"Sonic the Hedgehog\"",
"The date Sonic Team was founded",
"The first release date of \"Sonic the Hedgehog 2\""
],
"question": "In \"Sonic the Hedgehog 2\" for the Sega Genesis, what do you input in the sound test screen to access the secret level select?",
"type": "multiple"
},
{
"category": "Science: Mathematics",
"correct_answer": "1",
"difficulty": "easy",
"incorrect_answers": [
"2",
"3",
"4"
],
"question": "How many sides does a Möbius strip have?",
"type": "multiple"
},
{
"category": "Animals",
"correct_answer": "Ursus Maritimus",
"difficulty": "medium",
"incorrect_answers": [
"Polar Bear",
"Ursus Spelaeus",
"Ursus Arctos"
],
"question": "What is the scientific name for the \"Polar Bear\"?",
"type": "multiple"
},
{
"category": "Entertainment: Music",
"correct_answer": "True",
"difficulty": "easy",
"incorrect_answers": [
"False"
],
"question": "Muse is a British (English) rock band",
"type": "boolean"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Cardboard Box",
"difficulty": "easy",
"incorrect_answers": [
"Cloaking Device",
"Metal Crate",
"Cardboard cut-out"
],
"question": "What does Solid Snake use to hide himself with?",
"type": "multiple"
}
],
"success": true
}