GET /trivia/questions
获取带多选或判断题答案的随机问答题。可按数量(最多 50 题)、分类和难度级别(简单/中等/困难)配置。返回带正确和错误答案、分类和难度的题目。适用于问答应用、问答游戏、教育工具、团队建设活动和聊天机器人娱乐功能。数据来自拥有 4,000+ 验证题目的 Open Trivia Database。
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": "Science: Gadgets",
"correct_answer": "Sony",
"difficulty": "medium",
"incorrect_answers": [
"Panasonic",
"LG",
"Fujitsu"
],
"question": "Which company designed the \"Betamax\" video cassette format?",
"type": "multiple"
},
{
"category": "Entertainment: Video Games",
"correct_answer": "Halo 3: Recon",
"difficulty": "medium",
"incorrect_answers": [
"Halo 3: Helljumpers",
"Halo 3: Phantom",
"Halo 3: Guerilla"
],
"question": "When Halo 3: ODST was unveiled in 2008, it had a different title. What was the game formally called?",
"type": "multiple"
},
{
"category": "Entertainment: Film",
"correct_answer": "Edgar Wright",
"difficulty": "medium",
"incorrect_answers": [
"Phil Lord",
"Chris Miller",
"Seth Rogan"
],
"question": "Who was the director of \"Scott Pilgrim vs. the World (2010)\"?",
"type": "multiple"
},
{
"category": "Science: Computers",
"correct_answer": "False",
"difficulty": "easy",
"incorrect_answers": [
"True"
],
"question": "The NVidia GTX 1080 gets its name because it can only render at a 1920x1080 screen resolution.",
"type": "boolean"
},
{
"category": "General Knowledge",
"correct_answer": "South America",
"difficulty": "medium",
"incorrect_answers": [
"Hawaii",
"Europe",
"Asia"
],
"question": "Where did the pineapple plant originate?",
"type": "multiple"
}
],
"success": true
}