万年历正常
查询万年历农历接口-以正月初一作为新年的开始算起,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、星宿、八字、五行、十神、建除十二值星、等十二神、黄道日及吉凶等
调用次数
270 次
请求频率限制
5 次/秒
计费单价
免费
API文档
接口调试
接口地址
https://api.29783.com/calendar/almanac 复制
返回格式
JSON
请求方式
HTTPSGETPOST
Header参数
| 名称 | 类型 | 必须 | 示例值 | 说明 |
|---|---|---|---|---|
| id | String | 是 | 您自己的Api ID(注册登录后在秘钥管理中获得) | 是 |
| key | String | 是 | 您自己的Api Key(注册登录后在秘钥管理中获得) | 是 |
请求参数
| 名称 | 类型 | 必须 | 示例值 | 说明 |
|---|---|---|---|---|
| year | Number | 可选 | 2024 | 请求年份,入不填写默认当年 |
| month | Number | 可选 | 10 | 请求月份,入不填写默认当月 |
| day | Number | 可选 | 14 | 请求日,入不填写默认当天 |
| hour | Number | 可选 | 12 | 请求时,入不填写默认当前小时 |
| minute | Number | 可选 | 40 | 请求分,入不填写默认当前分钟 |
| second | Number | 可选 | 15 | 请求秒,入不填写默认秒数 |
返回参数
| 名称 | 类型 | 示例值 | 说明 |
|---|---|---|---|
| 返回结果公共参数 | |||
| code | Number | 0 | 接口返回状态码,0为成功 |
| message | String | 成功 | 接口返回文本信息 |
| data | Object/Array | 返回结果数据集/数组 | |
| request_ip | String | 123.152.251.58 | 请求接口的终端IP |
| request_time | Number | 1719145459 | 接口请求时间(默认为时间戳) |
| 返回结果数据集 | |||
| zodiac | String | 龙 | 生肖 |
| week | String | 周一 | 星期 |
| weekIndex | Number | 42 | 全年第几周 |
| phase | String | 宵月 | 月相 |
| constellation | String | 天秤 | 星座 |
| sound | Object/Array | 钗钏金 | 纳音:支持年月日时 |
| hours | Object/Array | 子时凶 | 十二时辰凶吉 |
| ganZhi | Object/Array | 甲辰 | 天干地支:年月日时 |
| solar | Object/Array | 2024 | 阳历:年月日 |
| lunar | Object/Array | 初二 | 阴历:年月日 |
| festival | Object/Array | 农历阳历节日 | |
| pengZu | Object/Array | 辛不合酱主人不尝 亥不嫁娶不利新郎 | 彭祖百忌 |
| term | Object/Array | 寒露 | 二十四节气 |
| julianDay | String | 2460598.0265625 | 儒略日 |
| phenology | String | 雀入大水为蛤 | 三候 |
| twenty | String | 下元九运 | 三元九运 |
| sevenStar | String | 月 | 七曜 |
| luckyDay | Object/Array | 当日凶吉 | |
| luckyHours | Object/Array | 当时凶吉 | |
| gods | Object/Array | 吉神凶神 | |
| sixStar | String | 友引 | 日本引用中国小六壬制作的 |
| minorRen | Object/Array | 小六壬:月天时 | |
| twentyEightStar | Object/Array | 二十八宿 | |
| duty | String | 除 | 建除十二值神 |
| twelveStar | Object/Array | 黄道黑道十二神 | |
| collide | Object/Array | 每日相冲 | |
| direction | Object/Array | 胎神方位:喜神、福神、财神、贵神 | |
| fetus | Object/Array | 今日胎神 | |
| jupiter | Object/Array | 太岁方位:年月日 | |
返回实例
{
"code": 0,
"message": "成功",
"data": {
"zodiac": "龙",
"week": "周一",
"weekIndex": 42,
"phase": "宵月",
"constellation": "天秤",
"sound": {
"year": "覆灯火",
"month": "山头火",
"day": "钗钏金",
"hour": "沙中金"
},
"hours": [
"子时凶",
"丑时吉",
"寅时凶",
"卯时凶",
"辰时吉",
"巳时凶",
"午时吉",
"未时吉",
"申时凶",
"酉时凶",
"戌时吉",
"亥时吉"
],
"ganZhi": {
"year": "甲辰",
"month": "甲戌",
"day": "辛亥",
"hour": "乙未"
},
"solar": {
"year": 2024,
"month": 10,
"day": 14
},
"lunar": {
"year": 2024,
"month": 9,
"day": 12,
"monthName": "九月",
"dayName": "十二"
},
"festival": {
"solar": null,
"lunar": null,
"holiday": {
"name": null,
"isWork": null
}
},
"pengZu": {
"tianGan": "辛不合酱主人不尝",
"diZhi": "亥不嫁娶不利新郎"
},
"term": {
"name": "寒露",
"index": 6
},
"julianDay": 2460598.0797337964,
"phenology": "雀入大水为蛤",
"twenty": "下元九运",
"sevenStar": "月",
"luckyDay": {
"proper": [
"祭祀",
"祈福",
"求嗣",
"开光",
"出行",
"解除",
"移徙",
"伐木",
"安床",
"纳畜",
"出火",
"拆卸"
],
"taboo": [
"安葬",
"修坟",
"作灶",
"破土",
"造庙",
"动土",
"嫁娶",
"纳采"
]
},
"luckyHours": {
"proper": [
"嫁娶",
"出行",
"移徙",
"交易",
"开市",
"祈福",
"安床",
"盖屋",
"祭祀",
"修造",
"作灶",
"求嗣",
"求财"
],
"taboo": []
},
"gods": {
"good": [
"天德合",
"月德合",
"天恩",
"相日",
"吉期",
"五富",
"敬安",
"玉堂"
],
"bad": [
"劫煞",
"四穷",
"九虎",
"五虚",
"土符",
"重日"
]
},
"sixStar": "友引",
"minorRen": {
"month": "速喜",
"day": "留连",
"hours": "速喜"
},
"twentyEightStar": {
"star": "张",
"animal": "鹿",
"lucky": "吉",
"song": "张星日好造龙轩,年年并见进庄田,埋葬不久升官职,代代为官近帝前,开门放水招财帛,婚姻和合福绵绵,田蚕人满仓库满,百般顺意自安然。"
},
"duty": "除",
"twelveStar": {
"star": "玉堂",
"starType": "黄道",
"lucky": "吉"
},
"collide": {
"day": "辛亥",
"gan": "乙",
"zhi": "巳",
"zodiac": "蛇",
"sha": "西"
},
"direction": {
"xi": {
"diagrams": "坤",
"direction": "西南"
},
"cai": {
"diagrams": "震",
"direction": "东"
},
"gui": {
"yang": {
"diagrams": "艮",
"direction": "东北"
},
"yin": {
"diagrams": "离",
"direction": "南"
}
},
"fu": {
"diagrams": "坤",
"direction": "西南"
}
},
"fetus": {
"month": "占门房",
"day": "厨灶床 外东北"
},
"jupiter": {
"year": {
"diagrams": "巽",
"direction": "东南"
},
"month": {
"diagrams": "艮",
"direction": "东北"
},
"day": {
"diagrams": "巽",
"direction": "东南"
}
}
},
"request_ip": "123.152.254.216",
"request_time": 1728885289
}