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: Film",
"correct_answer": "Kurt Russell",
"difficulty": "easy",
"incorrect_answers": [
"Patrick Swayze",
"John Cusack",
"Harrison Ford"
],
"question": "Who plays Jack Burton in the movie \"Big Trouble in Little China?\"",
"type": "multiple"
},
{
"category": "Geography",
"correct_answer": "Suriname",
"difficulty": "hard",
"incorrect_answers": [
"Georgia",
"Russia",
"Singapore"
],
"question": "Which of these countries is NOT a part of the Asian continent?",
"type": "multiple"
},
{
"category": "General Knowledge",
"correct_answer": "Daigaku",
"difficulty": "medium",
"incorrect_answers": [
"Toshokan",
"Jimusho",
"Shokudou"
],
"question": "What is the romanized Japanese word for \"university\"?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Keita Takahashi",
"difficulty": "medium",
"incorrect_answers": [
"Hideki Kamiya",
"Shu Takumi",
"Shinji Mikami"
],
"question": "Which of the following created and directed the Katamari Damacy series?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "2",
"difficulty": "easy",
"incorrect_answers": [
"4",
"3",
"1"
],
"question": "How many Sister Ships were related to the TItanic?",
"type": "multiple"
}
],
"success": true
}