稳定、快速、免费的 API 接口服务
每日黄历
接口地址: https://api.52vmy.cn/api/wl/wnl/huangli
返回格式: JSON
请求方式: GET
请求示例: https://api.52vmy.cn/api/wl/wnl/huangli
接口定制: 点此加入用户群
默认QPS: 每2秒最多3次 携带Token可无视限制
接口备注:点击前往 万年历
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | 返回格式默认JSON可选text |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "code": 200, "msg": "成功", "data": { "date": "2025年02月10日 | 正月十三", "lunar": "乙巳年 戊寅月 庚戌日 [属蛇] 周一 第8周", "info": [ { "name": "五行", "index": "钗钏金" }, { "name": "值神", "index": "白虎" }, { "name": "建除十二神", "index": "满日" }, { "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);