## **中国老黄历接口示例** ### **请求地址** http://api.tianapi.com/txapi/lunar/ ### **请求方法** HTTP/HTTPS GET ### **使用帮助** 按公历查询请直接传时间戳,按农历查询请传日期如2019-1-14(日期前不得有0) ### **参数表** | 请求参数 | 类型 | 必填 | 参数位置 | 描述 | 备注说明 | | --- | --- | --- | --- | --- | --- | | key | string | 是 | urlParam | API密钥(请在个人中心获取) | 用户自己的key | | date | time | 是 | urlParam | 日期 | 此参数必须 | ### **返回示例** ~~~ { "code": 200, "msg": "success", "newslist": [ { "gregoriandate": "2019-01-13 00:00:00", //公历日期 "lunardate": "2018-12-8", //对应的农历日期 "lunar_festival": "腊八节", //农历节日 "festival": "",//公历节日 "fitness": "祭祀.求财.签约.嫁娶.订盟", "taboo": "开市.安床.安葬.入宅.破土", "shenwei": "喜神:西北 福神:西南 财神:正东阳贵:东北 阴贵:西南 ", "taishen": "碓磨莫移动,鸡栖,床栖胎神在外东北停留6天", "chongsha": "狗日冲(甲辰)龙", "suisha": "岁煞北", "wuxingjiazi": "木", "wuxingnayear": "平地木", "wuxingnamonth": "海中金", "xingsu": "南方星日马-凶", "pengzu": "庚不经络 戌不吃犬", "jianshen": "收", "tiangandizhiyear": "戊戌", "tiangandizhimonth": "乙丑", "tiangandizhiday": "庚戌", "lmonthname": "季冬", "shengxiao": "狗", //生肖 "lubarmonth": "腊月", //农历月 "lunarday": "初八", //农历日 "jieqi": "" //农历节气 } ] } ~~~