GET /trivia/questions
Saage random trivia questions with multiple-choice or true/false answers. Configurable by amount (up to 50), category, and difficulty level (easy/medium/hard). Tagastab questions with correct and incorrect answers, category, and difficulty. Kasulik quiz apps, trivia games, educational tools, team-building activities, and chatbot entertainment features. Andmed Open Trivia Database with 4,000+ verified questions.
amount
valikuline
vaikeväärtus: 10
Count
category
valikuline
Category
difficulty
valikuline
easy/medium/hard
| Nimi | Kohustuslik | Vaikeväärtus | Kirjeldus |
|---|---|---|---|
amount |
Ei | 10 | Count |
category |
Ei | - | Category |
difficulty |
Ei | - | 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": "Vehicles",
"correct_answer": "True",
"difficulty": "hard",
"incorrect_answers": [
"False"
],
"question": "In 1993 Swedish car manufacturer Saab experimented with replacing the steering wheel with a joystick in a Saab 9000.",
"type": "boolean"
},
{
"category": "History",
"correct_answer": "1905",
"difficulty": "medium",
"incorrect_answers": [
"1925",
"1814",
"1834"
],
"question": "When did Norway become free from Sweden?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "Jamestown",
"difficulty": "medium",
"incorrect_answers": [
"New York",
"St. John's",
"Plymouth"
],
"question": "What was the name of the first permanent English settlement in America?",
"type": "multiple"
},
{
"category": "History",
"correct_answer": "Martin Van Buren",
"difficulty": "medium",
"incorrect_answers": [
"John Adams",
"George Washington",
"James Monroe "
],
"question": "Who was the first president born in the independent United States?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Hideo Kojima",
"difficulty": "easy",
"incorrect_answers": [
"Hiroshi Yamauchi",
"Shigeru Miyamoto",
"Gunpei Yokoi"
],
"question": "Who created the \"Metal Gear\" Series?",
"type": "multiple"
}
],
"success": true
}