GET /trivia/questions
Получение случайных вопросов викторины с ответами с множественным выбором или true/false. Настраиваемое количество (до 50), категория и уровень сложности (лёгкий/средний/сложный). Возвращает вопросы с правильными и неправильными ответами, категорией и сложностью. Полезно для приложений викторин, тривии, образовательных инструментов, тимбилдинга и развлекательных функций чат-ботов. Данные из Open Trivia Database с 4 000+ проверенных вопросов.
amount
необязательный
по умолчанию: 10
Count
category
необязательный
Category
difficulty
необязательный
easy/medium/hard
| Название | Обязательный | По умолчанию | Описание |
|---|---|---|---|
amount |
Нет | 10 | Count |
category |
Нет | - | Category |
difficulty |
Нет | - | 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": "Matra Djet",
"difficulty": "hard",
"incorrect_answers": [
"Porsche 911",
"Alpine A110",
"AC Cobra"
],
"question": "What model was the sports car gifted to Yuri Gagarin by the French government in 1965?",
"type": "multiple"
},
{
"category": "Entertainment: Comics",
"correct_answer": "Hergé",
"difficulty": "medium",
"incorrect_answers": [
"E.P. Jacobs",
"Rin Tin Tin",
"Chic Young"
],
"question": "Who authored The Adventures of Tintin?",
"type": "multiple"
},
{
"category": "Science: Computers",
"correct_answer": "center",
"difficulty": "medium",
"incorrect_answers": [
"static",
"absolute",
"relative"
],
"question": "In CSS, which of these values CANNOT be used with the \"position\" property?",
"type": "multiple"
},
{
"category": "General Knowledge",
"correct_answer": "True",
"difficulty": "easy",
"incorrect_answers": [
"False"
],
"question": "You can legally drink alcohol while driving in Mississippi.",
"type": "boolean"
},
{
"category": "Entertainment: Japanese Anime & Manga",
"correct_answer": "Eastern Police Station",
"difficulty": "hard",
"incorrect_answers": [
"The Center Mall",
"Komuro's House",
"On The Main Bridge"
],
"question": "In \"Highschool of the Dead\", where did Komuro and Saeko establish to meet after the bus explosion?",
"type": "multiple"
}
],
"success": true
}