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: Music",
"correct_answer": "True",
"difficulty": "medium",
"incorrect_answers": [
"False"
],
"question": "The Beatles' band name was inspired by the band The Crickets.",
"type": "boolean"
},
{
"category": "Entertainment: Music",
"correct_answer": "New Musical Express",
"difficulty": "easy",
"incorrect_answers": [
"New Metro Entertainment",
"Next Musical Enterprise",
"North Manchester Express"
],
"question": "Which music publication is often abbreviated to NME?",
"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": "Hoatzin",
"difficulty": "hard",
"incorrect_answers": [
"Cormorant",
"Cassowary",
"Secretary bird"
],
"question": "What bird is born with claws on its wing digits?",
"type": "multiple"
},
{
"category": "Sports",
"correct_answer": "Hammer",
"difficulty": "hard",
"incorrect_answers": [
"Wrench",
"Drill",
"Screwdriver"
],
"question": "What tool lends it's name to a last-stone advantage in an end in Curling?",
"type": "multiple"
}
],
"success": true
}