GET /trivia/questions
Obtenez des questions de quiz aléatoires avec multiple-choice ou true/false answers. Configurable by amount (up to 50), category, et difficulty level (easy/medium/hard). Renvoie questions avec correct et incorrect answers, category, et difficulty. Utile pour les quiz apps, trivia games, educational tools, team-building activities, et chatbot entertainment features. Données de Open Trivia Database avec 4,000+ verified questions.
amount
optionnel
par défaut: 10
Count
category
optionnel
Category
difficulty
optionnel
easy/medium/hard
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
amount |
Non | 10 | Count |
category |
Non | - | Category |
difficulty |
Non | - | 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": "General Knowledge",
"correct_answer": "True",
"difficulty": "medium",
"incorrect_answers": [
"False"
],
"question": "Francis Bacon died from a fatal case of pneumonia while he was attempting to preserve meat by stuffing a chicken with snow.",
"type": "boolean"
},
{
"category": "General Knowledge",
"correct_answer": "False",
"difficulty": "easy",
"incorrect_answers": [
"True"
],
"question": "Scotland voted to become an independent country during the referendum from September 2014.",
"type": "boolean"
},
{
"category": "Entertainment: Music",
"correct_answer": "1995",
"difficulty": "medium",
"incorrect_answers": [
"1996",
"1994",
"1993"
],
"question": "In what year was the smash hit song \"Scatman's World\" released?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Lambda",
"difficulty": "easy",
"incorrect_answers": [
"Omega",
"Alpha",
"Sigma"
],
"question": "Which Greek letter represents the \"Half-Life\" logo?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "The Zin Empire",
"difficulty": "easy",
"incorrect_answers": [
"The Brotherhood",
"The Ronin",
"The Sons of Samedi"
],
"question": "Which of these is NOT the name of a rival gang in the video game Saint's Row 2?",
"type": "multiple"
}
],
"success": true
}