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": "History",
"correct_answer": "1789",
"difficulty": "hard",
"incorrect_answers": [
"1823",
"1756",
"1799"
],
"question": "When did the French Revolution begin?",
"type": "multiple"
},
{
"category": "Science & Nature",
"correct_answer": "False",
"difficulty": "easy",
"incorrect_answers": [
"True"
],
"question": "The Earth and the Moon roughly have the same mass.",
"type": "boolean"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Beta 1.8",
"difficulty": "hard",
"incorrect_answers": [
"Alpha 1.2.0",
"Release 1.12.1",
"Release 1.7.2"
],
"question": "In Minecraft, what update did foods like steak become stackable?",
"type": "multiple"
},
{
"category": "Entertainment: Japanese Anime & Manga",
"correct_answer": "Domino's",
"difficulty": "easy",
"incorrect_answers": [
"Papa John's",
"Pizza Hut",
"Sabarro's"
],
"question": "In 2013, virtual pop-star Hatsune Miku had a sponsorship with which pizza chain?",
"type": "multiple"
},
{
"category": "Animals",
"correct_answer": "2-3",
"difficulty": "hard",
"incorrect_answers": [
"10-15",
"5-8",
"15-18"
],
"question": "What is the average amount of chinchillas born into a single litter?",
"type": "multiple"
}
],
"success": true
}