冷知识API
用全面的冷知识API发现无尽知识。
概述
我们的冷知识API即时获取多类别趣味冷知识。 知识问答爱好者、好奇学习者或内容开发者,广泛话题独到洞察。
主要功能
- 多类别覆盖:众多类别冷知识
- 随机获取:即时获得灵感
- 结构化数据:易用JSON无缝集成
- 定制洞察:按需定制数据
- 可扩展方案:高效处理海量请求
- 易于集成:简单的RESTful设计
API用法
极致简单:
# Example API Requests
GET /v1/facts/categories
GET /v1/facts/categories/{category}/random
GET /v1/facts/random
# Response Structure
Categories Endpoint:
[
"Animals",
"History",
"Science",
"Technology",
"Sports",
// ... more categories
]
Random Fact Endpoint:
{
"text": "The shortest war in history was between Britain and Zanzibar on August 27, 1896, and lasted only 38 minutes.",
"category": "History"
}
Random Fact Endpoint:
{
"text": "The longest word in the English language, according to the Oxford English Dictionary, is pneumonoultramicroscopicsilicovolcanoconiosis, a lung disease caused by inhaling very fine particles of silica.",
"category": "Health and Fitness"
}
为什么选择我们
- 完整库:多主题趣味冷知识
- 灵活获取:按类别、随机或混合
- 实时更新:新冷知识不断
- 可扩展方案:高效处理海量请求
- 教育专注:学习应用、知识问答游戏与自学皆宜