GET /trivia/questions
Get slumpmässig triviafrågor med multiple-choice or true/false answers. Configurable by amount (up to 50), category, and difficulty nivå (easy/medium/hard). Returnerar questions med correct and incorrect answers, category, and difficulty. Användbart för frågesportsappar, triviaspel, pedagogisk verktyg, team-att bygga aktiviteter, and chatbot underhållning funktioner. Data från Open Trivia Database med 4 000+ verified questions.
amount
valfri
standard: 10
Count
category
valfri
Category
difficulty
valfri
easy/medium/hard
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
amount |
Nej | 10 | Count |
category |
Nej | - | Category |
difficulty |
Nej | - | 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: Japanese Anime & Manga",
"correct_answer": "Tohru",
"difficulty": "easy",
"incorrect_answers": [
"Lucoa",
"Kanna",
"Elma"
],
"question": "In Ms. Kobayashi's Dragon Maid, who is Kobayashi's maid?",
"type": "multiple"
},
{
"category": "Entertainment: Books",
"correct_answer": "True",
"difficulty": "easy",
"incorrect_answers": [
"False"
],
"question": "Stephen Chbosky wrote the book 'The Perks of Being A Wallflower'.",
"type": "boolean"
},
{
"category": "General Knowledge",
"correct_answer": "Crypton Future Media",
"difficulty": "easy",
"incorrect_answers": [
"Sega",
"Sony",
"Yamaha Corporation"
],
"question": "What company developed the vocaloid Hatsune Miku?",
"type": "multiple"
},
{
"category": "Science: Computers",
"correct_answer": "Application",
"difficulty": "easy",
"incorrect_answers": [
"Session",
"Network",
"Present"
],
"question": "What is the name of Layer 7 of the OSI model?",
"type": "multiple"
},
{
"category": "Entertainment: Japanese Anime & Manga",
"correct_answer": "True",
"difficulty": "easy",
"incorrect_answers": [
"False"
],
"question": "In the 1988 film \"Akira\", Tetsuo ends up destroying Tokyo.",
"type": "boolean"
}
],
"success": true
}