所谓老黄历,是一种能同时显示公历、农历和干支历等多套历法,并附加大量与趋吉避凶相关的规则和内容的历书。
https://api.yuanfenju.com/index.php/v1/Gongju/laohuangli
仅支持公历,且只能查询过去或者未来90天内的数据
$request_data = [ 'api_key' => 'FsF1CsVevk3N17w7oBkSydfSk', 'title_laohuangli' => '1988-02-20', ];
{ "errcode": 0, "errmsg": "请求成功", "notice":"本次测算结果仅供娱乐使用,请勿用于封建迷信和违法用途。", "data": { "yangli": "1988-02-20", //阳历 "yinli": "一九八八年正月初四日(农历)", //阴历 "wuxing": "大林木(年) 大溪水(月) 覆灯火(日)",//五行纳音 "chongsha": "冲(己亥)猪煞东",//冲煞 "baiji": "乙不栽植千株不长 巳不远行财物伏藏",//彭祖百忌 "xingxiu": "柳獐凶", //28星宿 "xingxiuge": "柳星造作主遭官,昼夜偷闭不暂安,埋葬瘟惶多疾病,田园退尽守冬寒,开门放水遭聋瞎,腰驼背曲似弓弯,更有棒刑宜谨慎,妇人随客走盘桓。",//星宿歌 "guishenfangwei": "阳贵神:西南 阴贵神:正北", "xishenfangwei": "西北", "fushenfangwei": "西南", "caishenfangwei": "东北", "benyuetaishen": "占房床", "jinritaishen": "碓磨床 房内东", "zhixing": "平", //值星 12建神 "ganzhi": { //干支 "yeargan": "戊", //年天干 "yearzhi": "辰", //年地支 "monthgan": "甲", //月天干 "monthzhi": "寅", //月地支 "daygan": "乙", //日天干 "dayzhi": "巳", //日地支 "timegan": "丙", //时天干 "timezhi": "子" //时地支 }, "jishen": "相日 宝光 ", //吉神 "xiongshen": "天罡 死神 月刑 月害 游祸 五虚 重日 ", //凶神 "yi": "作灶 解除 平治道涂 ", //本日宜 "ji": "栽种 出行 祈福 行丧 纳畜 安葬 安门 伐木 作梁 牧养 ",//本日忌 "xingqi": "星期六", "liuyao": "赤口", //六曜 "qizheng": "火", //七曜 又称七政 "wuhou": "候雁北", //物候 "gongshou": "北方玄武",//四宫+神兽 "yuexiang": "夕月", //月相 "jieqi": "无", //节气,如果有节气显示对应节气,比如冬至,如果没有就显示无 "tianshen": "金匮", //获取当日的天神 "huanghei": "黄道", //获取当日的天神是黄道还是黑道 "jixiong": "吉", //获取当日的天神是吉还是凶 "detail_info": [{ //该日对应12时辰的凶吉宜忌 //子时信息 "time_shichen": "子时", //时辰 "time_ganzhi": "壬子", //时辰干支 "time_region": "23:00~00:59", //时辰范围 "time_yi": "订婚 嫁娶 出行 求财 开市 交易 安床", //时辰宜 "time_ji": "祈福 求嗣", //时辰忌 "time_guishenfangwei": "阳贵神:正东 阴贵神:东南", //时辰阳贵神和阴贵神方位 "time_xishenfangwei": "正南", //时辰喜神方位 "time_fushenfangwei": "东南", //时辰福神方位 "time_caishenfangwei": "正南", //时辰财神方位 "time_chong": "(丙午)马", //时冲描述 "time_sha": "南", //时煞 "time_xun": "甲辰", //时辰所在旬 "time_xunkong": "寅卯" //值时空亡 "time_tianshen": "朱雀", //获取值时的天神 "time_huanghei": "黑道", //获取值时的天神是黄道还是黑道 "time_jixiong": "凶" //获取值时的天神是吉还是凶 }, {}, //丑时信息 {}, //寅时信息 ...... {}, //亥时信息 } } }
{ "errcode": -1, "errmsg": "日期有误", }