GET /trivia/questions
Hent tilfeldige trivia-spørsmål med flervalgs- eller sant/usant-svar. Konfigurerbart etter antall (opptil 50), kategori og vanskelighetsnivå (lett/middels/vanskelig). Returnerer spørsmål med korrekte og feil svar, kategori og vanskelighetsgrad. Nyttig for quiz-apper, trivia-spill, utdanningsverktøy, teambyggingsaktiviteter og chatbot-underholdningsfunksjoner. Data fra Open Trivia Database med over 4 000 verifiserte spørsmål.
amount
valgfri
standard: 10
Count
category
valgfri
Category
difficulty
valgfri
easy/medium/hard
| Navn | Påkrevd | Standard | Beskrivelse |
|---|---|---|---|
amount |
Nei | 10 | Count |
category |
Nei | - | Category |
difficulty |
Nei | - | 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": "14",
"difficulty": "easy",
"incorrect_answers": [
"10",
"13",
"12"
],
"question": "In Kingdom Hearts, how many members does Organization XIII have in total?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "September 1, 1939",
"difficulty": "medium",
"incorrect_answers": [
"December 7, 1941",
"June 22, 1941",
"July 7, 1937"
],
"question": "On what day did Germany invade Poland?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Zun",
"difficulty": "easy",
"incorrect_answers": [
"Jun",
"Twilight Frontier",
"Tasofro"
],
"question": "Who is the creator of Touhou project?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "87 Bazillion ",
"difficulty": "medium",
"incorrect_answers": [
"87 Million",
"87 Trillion",
"87 Gazillion "
],
"question": "How many unique items does \"Borderlands 2\" claim to have?",
"type": "multiple"
},
{
"category": "Entertainment: Music",
"correct_answer": "True",
"difficulty": "easy",
"incorrect_answers": [
"False"
],
"question": "The 2011 movie \"The Adventures of Tintin\" was directed by Steven Spielberg.",
"type": "boolean"
}
],
"success": true
}