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": "Politics",
"correct_answer": "Wyoming",
"difficulty": "hard",
"incorrect_answers": [
"California",
"Delaware",
"Virginia"
],
"question": "Which US state was the first to allow women to vote in 1869?",
"type": "multiple"
},
{
"category": "Science & Nature",
"correct_answer": "Gossypiboma",
"difficulty": "hard",
"incorrect_answers": [
"Gongoozler",
"Jentacular",
"Meupareunia"
],
"question": "Which of the following is the term for \"surgical complications resulting from surgical sponges left inside the patient's body?",
"type": "multiple"
},
{
"category": "Entertainment: Music",
"correct_answer": "Earth",
"difficulty": "easy",
"incorrect_answers": [
"Venus",
"Mars",
"Uranus"
],
"question": "According to a song by Belinda Carlisle, Heaven is a place on what?",
"type": "multiple"
},
{
"category": "Entertainment: Japanese Anime & Manga",
"correct_answer": "Diane",
"difficulty": "easy",
"incorrect_answers": [
"Sakura",
"Ayano",
"Sheska"
],
"question": "In the anime Seven Deadly Sins what is the name of one of the sins?",
"type": "multiple"
},
{
"category": "Entertainment: Books",
"correct_answer": "The Day of the Locust",
"difficulty": "hard",
"incorrect_answers": [
"Catch-22",
"Of Mice and Men",
"A Separate Peace"
],
"question": "In which classic novel is there a character named Homer Simpson?",
"type": "multiple"
}
],
"success": true
}