农历信息

GET
https://apix.iqfk.top/api/lunar

接口描述

农历信息

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: ''
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
  "code": 200,
  "data": {
    "solar": {
      "year": 2025,
      "month": 11,
      "day": 10,
      "hour": 15,
      "minute": 31,
      "second": 2,
      "full": "2025-11-10",
      "full_with_time": "2025-11-10 15:31:02",
      "week": 1,
      "week_desc": "星期一",
      "week_desc_short": "一",
      "season": 4,
      "season_desc": "四季度",
      "season_desc_short": "四",
      "season_name": "冬",
      "season_name_desc": "冬天",
      "is_leap_year": false
    },
    "lunar": {
      "year": "乙巳",
      "month": "九",
      "day": "廿一",
      "hour": "申",
      "full_with_hour": "农历乙巳年九月廿一申时",
      "desc_short": "农历乙巳年九月廿一",
      "year_desc": "农历乙巳年",
      "month_desc": "九月",
      "day_desc": "廿一",
      "hour_desc": "申时",
      "is_leap_month": false
    },
    "stats": {
      "day_of_year": 314,
      "week_of_year": 46,
      "week_of_month": 3,
      "percents": {
        "year": 0.8575342465753425,
        "month": 0.3333333333333333,
        "week": 0.14285714285714285,
        "day": 0.6465607060185186
      },
      "percents_formatted": {
        "year": "85.75%",
        "month": "33.33%",
        "week": "14.29%",
        "day": "64.66%"
      }
    },
    "term": {
      "today": null,
      "stage": {
        "name": "立冬",
        "position": 4,
        "is_jie": true,
        "is_qi": false
      }
    },
    "zodiac": {
      "year": "蛇",
      "month": "狗",
      "day": "羊",
      "hour": "猴"
    },
    "sixty_cycle": {
      "year": {
        "heaven_stem": "乙",
        "earth_branch": "巳",
        "name": "乙巳年",
        "name_short": "乙巳"
      },
      "month": {
        "heaven_stem": "丙",
        "earth_branch": "戌",
        "name": "丙戌月",
        "name_short": "丙戌"
      },
      "day": {
        "heaven_stem": "癸",
        "earth_branch": "未",
        "name": "癸未日",
        "name_short": "癸未"
      },
      "hour": {
        "heaven_stem": "庚",
        "earth_branch": "申",
        "name": "庚申时",
        "name_short": "庚申"
      }
    },
    "legal_holiday": null,
    "festival": {
      "solar": null,
      "lunar": null,
      "both_desc": null
    },
    "phase": {
      "name": "亏凸月",
      "position": 6
    },
    "constellation": {
      "name": "天蝎座",
      "name_short": "天蝎"
    },
    "taboo": {
      "day": {
        "recommends": "祭祀.祈福.求嗣.开光.解除.理发.会亲友.栽种.纳畜.牧养.安葬.修坟.立碑.启钻",
        "avoids": "入宅.作灶.词讼.移徙.出行.赴任"
      },
      "hour": {
        "hour": "申时",
        "hour_short": "申",
        "avoids": "动土.修造",
        "recommends": "嫁娶.出行.移徙.赴任.祈福.安葬.祭祀.作灶.酬神.进人口.斋醮.求财"
      },
      "hours": [
        {
          "hour": "申时",
          "hour_short": "申",
          "recommends": "嫁娶.出行.移徙.赴任.祈福.安葬.祭祀.作灶.酬神.进人口.斋醮.求财",
          "avoids": "动土.修造"
        },
        {
          "hour": "酉时",
          "hour_short": "酉",
          "recommends": "",
          "avoids": "出行.赴任.求财"
        },
        {
          "hour": "戌时",
          "hour_short": "戌",
          "recommends": "嫁娶.移徙.入宅.安床.安葬.修造",
          "avoids": "出行.赴任.祈福.祭祀.开光.斋醮"
        },
        {
          "hour": "亥时",
          "hour_short": "亥",
          "recommends": "嫁娶.移徙.交易.开市.安床.盖屋.修造.作灶.求嗣.求财",
          "avoids": "出行.赴任.祈福.祭祀.开光.斋醮"
        },
        {
          "hour": "子时",
          "hour_short": "子",
          "recommends": "嫁娶.出行.交易.开市.赴任.祈福.安床.求嗣.求财",
          "avoids": ""
        },
        {
          "hour": "丑时",
          "hour_short": "丑",
          "recommends": "嫁娶.出行.移徙.入宅.开市.赴任.祈福.安床.盖屋.安葬.修造.作灶.求嗣.求财",
          "avoids": ""
        },
        {
          "hour": "寅时",
          "hour_short": "寅",
          "recommends": "",
          "avoids": "诸事不宜"
        },
        {
          "hour": "卯时",
          "hour_short": "卯",
          "recommends": "嫁娶.移徙.入宅.祈福.安葬.祭祀.修造.酬神.求嗣.斋醮",
          "avoids": "诸事不宜"
        },
        {
          "hour": "辰时",
          "hour_short": "辰",
          "recommends": "嫁娶.出行.入宅.安葬.祭祀.修造",
          "avoids": "祈福.求嗣"
        },
        {
          "hour": "巳时",
          "hour_short": "巳",
          "recommends": "嫁娶.祈福.祭祀.合脊",
          "avoids": "安葬.修造.开光"
        },
        {
          "hour": "午时",
          "hour_short": "午",
          "recommends": "嫁娶.移徙.入宅.祈福.安葬",
          "avoids": "出行.赴任.动土.修造"
        },
        {
          "hour": "未时",
          "hour_short": "未",
          "recommends": "嫁娶.出行.移徙.入宅.开市.安床.开仓.盖屋.修造.求财",
          "avoids": "祈福.祭祀.酬神.斋醮"
        }
      ]
    },
    "julian_day": 2460989.5,
    "nayin": {
      "year": "覆灯火",
      "month": "屋上土",
      "day": "杨柳木",
      "hour": "石榴木"
    },
    "baizi": {
      "year_baizi": "性格温和,为人正直诚信。",
      "day_baizi": "性格温和,为人正直诚信。"
    },
    "fortune": {
      "today_luck": "今日感情运势不错,单身者有桃花",
      "career": "工作中有贵人相助",
      "money": "理财有道,积累渐丰",
      "love": "感情稳定,恋人关系和谐"
    },
    "constants": {
      "legal_holiday_list": [
        {
          "name": "元旦节",
          "date": "2025-01-01",
          "start": "2025-01-01",
          "end": "2025-01-01"
        },
        {
          "name": "春节",
          "date": "2025-01-29",
          "start": "2025-01-26",
          "end": "2025-02-08"
        },
        {
          "name": "清明节",
          "date": "2025-04-04",
          "start": "2025-04-04",
          "end": "2025-04-06"
        },
        {
          "name": "劳动节",
          "date": "2025-05-01",
          "start": "2025-04-27",
          "end": "2025-05-05"
        },
        {
          "name": "端午节",
          "date": "2025-05-31",
          "start": "2025-05-31",
          "end": "2025-06-02"
        },
        {
          "name": "国庆中秋",
          "date": "2025-10-01",
          "start": "2025-09-28",
          "end": "2025-10-11"
        }
      ],
      "phase_list": [
        {
          "name": "新月",
          "lunar_day": 1
        },
        {
          "name": "蛾眉月",
          "lunar_day": 2
        },
        {
          "name": "上弦月",
          "lunar_day": 3
        },
        {
          "name": "盈凸月",
          "lunar_day": 4
        },
        {
          "name": "满月",
          "lunar_day": 5
        },
        {
          "name": "亏凸月",
          "lunar_day": 6
        },
        {
          "name": "下弦月",
          "lunar_day": 7
        },
        {
          "name": "残月",
          "lunar_day": 8
        }
      ],
      "zodiac_list": [
        "鼠",
        "牛",
        "虎",
        "兔",
        "龙",
        "蛇",
        "马",
        "羊",
        "猴",
        "鸡",
        "狗",
        "猪"
      ],
      "constellation_list": [
        {
          "name": "白羊",
          "desc": "白羊座",
          "start": "3月21日",
          "end": "4月19日",
          "range": "3月21日~4月19日",
          "start_month": 3,
          "start_day": 21,
          "end_month": 4,
          "end_day": 19
        },
        {
          "name": "金牛",
          "desc": "金牛座",
          "start": "4月20日",
          "end": "5月20日",
          "range": "4月20日~5月20日",
          "start_month": 4,
          "start_day": 20,
          "end_month": 5,
          "end_day": 20
        },
        {
          "name": "双子",
          "desc": "双子座",
          "start": "5月21日",
          "end": "6月21日",
          "range": "5月21日~6月21日",
          "start_month": 5,
          "start_day": 21,
          "end_month": 6,
          "end_day": 21
        },
        {
          "name": "巨蟹",
          "desc": "巨蟹座",
          "start": "6月22日",
          "end": "7月22日",
          "range": "6月22日~7月22日",
          "start_month": 6,
          "start_day": 22,
          "end_month": 7,
          "end_day": 22
        },
        {
          "name": "狮子",
          "desc": "狮子座",
          "start": "7月23日",
          "end": "8月22日",
          "range": "7月23日~8月22日",
          "start_month": 7,
          "start_day": 23,
          "end_month": 8,
          "end_day": 22
        },
        {
          "name": "处女",
          "desc": "处女座",
          "start": "8月23日",
          "end": "9月22日",
          "range": "8月23日~9月22日",
          "start_month": 8,
          "start_day": 23,
          "end_month": 9,
          "end_day": 22
        },
        {
          "name": "天秤",
          "desc": "天秤座",
          "start": "9月23日",
          "end": "10月23日",
          "range": "9月23日~10月23日",
          "start_month": 9,
          "start_day": 23,
          "end_month": 10,
          "end_day": 23
        },
        {
          "name": "天蝎",
          "desc": "天蝎座",
          "start": "10月24日",
          "end": "11月22日",
          "range": "10月24日~11月22日",
          "start_month": 10,
          "start_day": 24,
          "end_month": 11,
          "end_day": 22
        },
        {
          "name": "射手",
          "desc": "射手座",
          "start": "11月23日",
          "end": "12月21日",
          "range": "11月23日~12月21日",
          "start_month": 11,
          "start_day": 23,
          "end_month": 12,
          "end_day": 21
        },
        {
          "name": "摩羯",
          "desc": "摩羯座",
          "start": "12月22日",
          "end": "1月19日",
          "range": "12月22日~1月19日",
          "start_month": 12,
          "start_day": 22,
          "end_month": 1,
          "end_day": 19
        },
        {
          "name": "水瓶",
          "desc": "水瓶座",
          "start": "1月20日",
          "end": "2月18日",
          "range": "1月20日~2月18日",
          "start_month": 1,
          "start_day": 20,
          "end_month": 2,
          "end_day": 18
        },
        {
          "name": "双鱼",
          "desc": "双鱼座",
          "start": "2月19日",
          "end": "3月20日",
          "range": "2月19日~3月20日",
          "start_month": 2,
          "start_day": 19,
          "end_month": 3,
          "end_day": 20
        }
      ],
      "heaven_stems": [
        "甲",
        "乙",
        "丙",
        "丁",
        "戊",
        "己",
        "庚",
        "辛",
        "壬",
        "癸"
      ],
      "earth_branches": [
        "子",
        "丑",
        "寅",
        "卯",
        "辰",
        "巳",
        "午",
        "未",
        "申",
        "酉",
        "戌",
        "亥"
      ],
      "solar_terms": [
        {
          "name": "立春",
          "desc": "春季开始"
        },
        {
          "name": "雨水",
          "desc": "降雨增多"
        },
        {
          "name": "惊蛰",
          "desc": "春雷乍响"
        },
        {
          "name": "春分",
          "desc": "昼夜等长"
        },
        {
          "name": "清明",
          "desc": "天清地明"
        },
        {
          "name": "谷雨",
          "desc": "雨生百谷"
        },
        {
          "name": "立夏",
          "desc": "夏季开始"
        },
        {
          "name": "小满",
          "desc": "麦粒渐满"
        },
        {
          "name": "芒种",
          "desc": "麦类收割"
        },
        {
          "name": "夏至",
          "desc": "白昼最长"
        },
        {
          "name": "小暑",
          "desc": "天气渐热"
        },
        {
          "name": "大暑",
          "desc": "一年最热"
        },
        {
          "name": "立秋",
          "desc": "秋季开始"
        },
        {
          "name": "处暑",
          "desc": "暑热结束"
        },
        {
          "name": "白露",
          "desc": "露水增多"
        },
        {
          "name": "秋分",
          "desc": "昼夜等长"
        },
        {
          "name": "寒露",
          "desc": "露水渐凉"
        },
        {
          "name": "霜降",
          "desc": "开始降霜"
        },
        {
          "name": "立冬",
          "desc": "冬季开始"
        },
        {
          "name": "小雪",
          "desc": "开始降雪"
        },
        {
          "name": "大雪",
          "desc": "降雪增多"
        },
        {
          "name": "冬至",
          "desc": "白昼最短"
        },
        {
          "name": "小寒",
          "desc": "天气渐冷"
        },
        {
          "name": "大寒",
          "desc": "一年最冷"
        }
      ]
    }
  }
}