维梦API - 提供免费接口调用平台
该API已经过安全认证,请放心使用
娱乐 · 黄历
每日黄历

接口地址: https://api.52vmy.cn/api/wl/wnl/huangli

返回格式: JSON

请求方式: GET

请求示例: https://api.52vmy.cn/api/wl/wnl/huangli

接口定制: 点此加入用户群

默认QPS: 每2秒最多4次 携带Token可无视限制

接口备注:点击前往 万年历

请求参数说明:

名称 必填 类型 说明
type string 返回格式默认JSON可选text

返回参数说明:

名称 类型 说明

返回示例:

{
    "code": 200,
    "msg": "成功",
    "data": {
        "date": "2025年09月19日 | 七月廿八",
        "lunar": "乙巳年 乙酉月 辛卯日 [属蛇] 周五 第39周",
        "info": [
            {
                "name": "五行",
                "index": "松柏木"
            },
            {
                "name": "值神",
                "index": "朱雀"
            },
            {
                "name": "建除十二神",
                "index": null
            },
            {
                "name": "二十八星宿",
                "index": "亢金龙宿星"
            },
            {
                "name": "今日胎神",
                "index": "厨灶门外正北"
            },
            {
                "name": "吉神宜趋",
                "index": "益后 五合 鸣吠对"
            },
            {
                "name": "凶神宜忌",
                "index": "天吏 致死 五虚 土符 朱雀"
            },
            {
                "name": "彭祖百忌",
                "index": "辛不合酱主人不尝 卯不穿井水泉不香"
            }
        ]
    }
}

PHP代码示例:

$type = $_GET["type"];
$url = "https://api.52vmy.cn/api/wl/wnl/huangli?type=".$type;
echo file_get_contents($url);