D黑奴背锅 文档中心
公共 OpenAPI内容
GET/openapi/v1/get_storytoday

返回当天历史事件,服务端自动使用当天日期。

注意事项

  • 不支持传入自定义日期。

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

type?string

默认 events;支持 all、selected、events、births、deaths、holidays。

Response Body

application/json

curl -X GET "https://example.com/openapi/v1/get_storytoday"
{  "code": 0,  "message": "获取历史上的今天成功",  "data": {    "date": "2026-05-23",    "type": "events",    "items": [      {        "type": "events",        "year": 1949,        "text": "..."      }    ],    "count": 12  },  "time": 1779502528}