GET /trivia/questions
Fáðu random trivia questions with multiple-choice or true/false answers. Stillanleg by amount (allt að 50), category, and difficulty level (easy/medium/hard). Skilar questions with correct and incorrect answers, category, and difficulty. Gagnlegt fyrir quiz forrit, trivia games, educational verkfæri, team-building activities, and chatbot entertainment eiginleika. Gögn frá Open Trivia Database with 4.000+ verified questions.
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": "General Knowledge",
"correct_answer": "Thing",
"difficulty": "hard",
"incorrect_answers": [
"People",
"Place",
"Pineapple"
],
"question": "The Swedish word \"Grunka\" means what in English?",
"type": "multiple"
},
{
"category": "Geography",
"correct_answer": "Norway",
"difficulty": "medium",
"incorrect_answers": [
"Lithuania",
"Ireland",
"Czechia"
],
"question": "What European country is not a part of the EU?",
"type": "multiple"
},
{
"category": "Vehicles",
"correct_answer": "Koenigsegg",
"difficulty": "medium",
"incorrect_answers": [
"Bugatti",
"Lamborghini",
"McLaren"
],
"question": "Which supercar company is from Sweden?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "350,000",
"difficulty": "hard",
"incorrect_answers": [
"225,000",
"100,000",
"500,000"
],
"question": "How many women joined the United States Armed Services during World War II?",
"type": "multiple"
},
{
"category": "Science & Nature",
"correct_answer": "Coumadin",
"difficulty": "medium",
"incorrect_answers": [
"Aspirin",
"Eliquis",
"Tylenol"
],
"question": "What medication was once commonly used as rat poison?",
"type": "multiple"
}
],
"success": true
}