万站API
输出当前历史的今天全部信息
历史的今天 是万站API开放平台提供的免费接口,支持 GET 请求,返回格式为 JSON。
你可以直接通过接口地址 https://wzapi.com/api/lishi 进行调用,下方提供参数说明、返回示例与多语言代码样例,便于快速接入。
接口地址: https://wzapi.com/api/lishi
返回格式: JSON
请求方式: GET
请求示例: https://wzapi.com/api/lishi?num=5&format=json
| 参数名 | 必填 | 类型 | 说明 |
|---|---|---|---|
| format | 否 | string | 输出格式,json、js 或留空返回文本/HTML |
| num | 否 | int | 返回条数,默认 1,最大 20 |
| apiKey | 付费接口必填 | string | 用户密钥,免费接口可不传 |
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | string | 状态码,200 表示成功 |
| day | string | 当前日期 |
| total | int | 当天历史事件总数 |
| count | int | 本次返回条数 |
| data[].title | string | 历史事件标题 |
| data[].year | string | 事件年份 |
| data[].type | string | 事件类型 |
| 参数名 | 参数值 | 操作 |
|---|