D黑奴背锅 文档中心
公共 OpenAPI日历
GET/openapi/v1/calendar/get_holiday

返回指定年份的中国节假日和调休数据。

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

year?number

年份,默认当前年份,范围 1900-2100。

Response Body

application/json

curl -X GET "https://example.com/openapi/v1/calendar/get_holiday"
{  "code": 0,  "message": "获取节假日数据成功",  "data": [    {      "name": "端午节",      "date": "2026-06-19",      "isOffDay": true    }  ],  "time": 1779502528}