← 娱乐

日期趣闻

GET /fun/date/:month/:day

获取特定日期(月和日)的历史知识。返回该日期在历史上发生的有趣事件,例如「3 月 24 日是 1989 年 Exxon Valdez 石油泄漏事故发生的日子」。适用于每日历史问答功能、生日趣闻、教育日历应用和「历史上的今天」小组件。数据来自 Numbers API。

参数

month 必填

Month

day 必填

Day

请求示例

基本用法
curl https://nordapi.ee/api/v1/fun/date/3/24
Historical fact about March 24
curl https://nordapi.ee/api/v1/fun/date/3/24
What happened on January 1
curl https://nordapi.ee/api/v1/fun/date/1/1
Historical fact about December 25
curl https://nordapi.ee/api/v1/fun/date/12/25

实时响应

HTTP 502: {
  "error": "numbersapi returned 404",
  "success": false
}