GET /trivia/questions
Sæktu handahófskenndar fróðleiksspurningar með fjölvalsspurningum eða satt/ósatt svörum. Stillanlegt eftir magni (allt að 50), flokki og erfiðleikastigi (auðvelt/miðlungs/erfitt). Skilar spurningum með réttum og röngum svörum, flokki og erfiðleikastigi. Gagnlegt fyrir spurningakeppnir, fróðleiksleiki, fræðsluverkfæri, liðsmyndunarverkefni og skemmtanaaðgerðir spjallþjarka. Gögn frá Open Trivia Database með yfir 4.000 staðfestum spurningum.
amount
valfrjálst
sjálfgefið: 10
Count
category
valfrjálst
Category
difficulty
valfrjálst
easy/medium/hard
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
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": "Geography",
"correct_answer": "Altaic",
"difficulty": "medium",
"incorrect_answers": [
"Sino-Tibetan",
"Dravidian",
"Indo-European"
],
"question": "Which of the following language families is the most controversial amongst modern linguists?",
"type": "multiple"
},
{
"category": "Entertainment: Music",
"correct_answer": "1984",
"difficulty": "medium",
"incorrect_answers": [
"1979",
"1983",
"1981"
],
"question": "When was the Prince album \"Purple Rain\" released?",
"type": "multiple"
},
{
"category": "General Knowledge",
"correct_answer": "Zima",
"difficulty": "medium",
"incorrect_answers": [
"Leto",
"Vesna",
"Osen'"
],
"question": "What is the romanized Russian word for \"winter\"?",
"type": "multiple"
},
{
"category": "Science & Nature",
"correct_answer": "Titan",
"difficulty": "hard",
"incorrect_answers": [
"Europa",
"Miranda",
"Callisto"
],
"question": "Which moon is the only satellite in our solar system to possess a dense atmosphere?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "Goldsboro, North Carolina",
"difficulty": "medium",
"incorrect_answers": [
"Hicksville, New York",
"Jacksonville, Florida",
"Conway, Arkansas"
],
"question": "In 1961, an American B-52 aircraft crashed and nearly detonated two 4mt nuclear bombs over which US city?",
"type": "multiple"
}
],
"success": true
}