GET
实用工具
五行穿衣(娱乐请勿当真)
娱乐请勿当真
累计调用 10
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/FiveElementsDressingGuide
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| date | string | 可选 | 日期 | 2025-08-08 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | object | 返回数据 |
| data.date | string | 日期 |
| data.day_element | string | 五行属性 |
| data.best_colors | string | 宜色 |
| data.good_colors | string | 助色 |
| data.avoid_colors | string | 不宜色 |
| data.description | string | 解释说明 |
响应示例
200 OK
{
"code": 1,
"message": "2025-08-08 五行穿衣指南:\n今日五行:木\n大吉颜色:红色(#FF0000)、紫色(#800080)、粉色(#FFC0CB)\n次吉颜色:绿色(#008000)、青色(#00FFFF)、碧色(#4A90E2)\n不宜颜色:黄色(#FFFF00)、棕色(#A52A2A)、卡其色(#F0E68C)\n说明:今日五行属木,宜穿红色、紫色、粉色系(相生)和绿色、青色、碧色系(相助),避免黄色、棕色、卡其色系(相克)",
"data": {
"date": "2025-08-08",
"day_element": "木",
"best_colors": {
"红色": "#FF0000",
"紫色": "#800080",
"粉色": "#FFC0CB"
},
"good_colors": {
"绿色": "#008000",
"青色": "#00FFFF",
"碧色": "#4A90E2"
},
"avoid_colors": {
"黄色": "#FFFF00",
"棕色": "#A52A2A",
"卡其色": "#F0E68C"
},
"description": "今日五行属木,宜穿红色、紫色、粉色系(相生)和绿色、青色、碧色系(相助),避免黄色、棕色、卡其色系(相克)"
}
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/FiveElementsDressingGuide?date=2025-08-08"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/FiveElementsDressingGuide?date=2025-08-08");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/FiveElementsDressingGuide?date=2025-08-08");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/FiveElementsDressingGuide?date=2025-08-08", timeout=10)
print(r.json())