历史上的今天API接口
获取历史上的今天发生的事件
接口文档
今天发生的事件
指定日期查询
指定月份查询
接口信息
接口功能:
查询今天发生的历史事件
调用费用:免费
VIP免费:是
请求方式:GET,POST
返回格式:JSON
接口状态:正常
调用次数:0
接口地址
GET,POSThttps://www.szxk365.com/api/openapi.historytoday/today
请求参数
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
apikey | string | 是 | 用户请求APIKEY |
请求示例
https://www.szxk365.com/api/openapi.historytoday/today
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
code | int | 1=成功,0=失败 |
msg | string | 消息 |
time | string | 响应时间戳 |
data | array | 数据列表 |
data[0].year | string | 年份 |
data[0].month | string | 月份 |
data[0].day | string | 日期 |
data[0].title | string | 标题 |
data[0].description | string | 描述 |
data[0].cover_list | string | 封面图,可能为空 |
data[0].festival | string | 节假日 |
data[0].type | string | 事件类型 |
返回结果示例
接口信息
接口功能:
可根据指定月份日期查询
免费额度:3次/天
调用费用:0.01/次
VIP免费:是
请求方式:GET,POST
返回格式:JSON
接口状态:正常
调用次数:0
接口地址
GET,POSThttps://www.szxk365.com/api/openapi.historytoday/date
请求参数
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
apikey | string | 是 | 用户请求APIKEY |
month | string | 是 | 月份,2位数 |
day | string | 是 | 天数,2位数 |
请求示例
https://www.szxk365.com/api/openapi.historytoday/date?month=10&day=01
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
code | int | 1=成功,0=失败 |
msg | string | 消息 |
time | string | 响应时间戳 |
data | array | 数据列表 |
data[0].year | string | 年份 |
data[0].month | string | 月份 |
data[0].day | string | 日期 |
data[0].title | string | 标题 |
data[0].description | string | 描述 |
data[0].cover_list | string | 封面图,可能为空 |
data[0].festival | string | 节假日 |
data[0].type | string | 事件类型 |
返回结果示例
接口信息
接口功能:
查询出月份下所有的事件
调用费用:0.1/次
VIP免费:是
请求方式:GET,POST
返回格式:JSON
接口状态:正常
调用次数:0
接口地址
GET,POSThttps://www.szxk365.com/api/openapi.historytoday/month
请求参数
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
apikey | string | 是 | 用户请求APIKEY |
month | string | 是 | 指定月份,2位数 |
请求示例
https://www.szxk365.com/api/openapi.historytoday/month?month=10
返回参数说明
名称 | 类型 | 说明 |
---|---|---|
code | int | 1=成功,0=失败 |
msg | string | 消息 |
time | string | 响应时间戳 |
data | array | 数据列表 |
data[0].year | string | 年份 |
data[0].month | string | 月份 |
data[0].day | string | 日期 |
data[0].title | string | 标题 |
data[0].description | string | 描述 |
data[0].cover_list | string | 封面图,可能为空 |
data[0].festival | string | 节假日 |
data[0].type | string | 事件类型 |
返回结果示例
{"code": 1,"msg":"查询成功","time":"1760600987","data": [ {"year":"1472","month":"10","day":"31","title":"我国明代著名的哲学家、心学创始人王守仁出生","description":"王守仁也称王阳明,是明代著名哲学家。他继承陆九渊心学一脉,是陆王心学的集大成者。他提出“致良知”作为其心学的核心命题,并提出著名的“王门四句教”,精炼阐述了他的心学思想。","cover_list":"https://baike.bdimg.com/cms/rc/r/image/2014-08-31/b0318529f3b1b7f65007d6e0ee6dd003_360_212.jpg","festival":"世界城市日","type":"出生","recommend_text":"","status_text":"" }, //这里只展示一条 ]}