描述:获取指定日期、按年、按月的节假日和万年历信息
接口地址:https://www.zntool.cn/api/getHolidaysCalendar
返回格式:JSON
请求方式:POST
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
sign_token | string | 是 | 密钥(注册免费获取) |
date | string | 是 | 日期(20230802) |
名称 | 类型 | 说明 |
---|---|---|
date | string | 当前日期 |
weekDay | int | 当前周第几天 1-周一 2-周二 ... 7-周日 |
yearTips | string | 天干地支纪年法描述 例如:戊戌 |
type | int | 类型 0 工作日 1 假日 2 节假日 |
typeDes | string | 类型描述 比如 国庆,休息日,工作日 |
chineseZodiac | string | 属相 例如:狗 |
solarTerms | string | 节气描述 例如:小雪 |
lunarCalendar | string | 农历日期 |
suit | string | 宜事项 |
dayOfYear | int | 这一年的第几天 |
weekOfYear | int | 这一年的第几周 |
constellation | string | 星座 |
indexWorkDayOfMonth | int | 如果当前是工作日 则返回是当前月的第几个工作日,否则返回0 |
错误代码 | 说明 |
---|---|
200 | 成功 |
500 | 失败 |
{
"status": 200,
"msg": "获取成功",
"data": {
"date": "2023-08-03",
"weekDay": 4,
"yearTips": "癸卯",
"type": 0,
"typeDes": "工作日",
"chineseZodiac": "兔",
"solarTerms": "大暑后",
"avoid": "移徙.栽种.出行.行丧.破土.安葬.词讼",
"lunarCalendar": "六月十七",
"suit": "嫁娶.纳采.订盟.祭祀.祈福.求嗣.纳采.裁衣.冠笄.开光.安床.作梁.修造.动土.作灶.起基.上梁.盖屋.纳畜.牧养",
"dayOfYear": 215,
"weekOfYear": 31,
"constellation": "狮子座",
"indexWorkDayOfMonth": 3
}
}