年度财运报告API文档
接口说明
本接口生成指定年份的年度财运分析报告:包含主财(正财收入)情况、财运机遇与挑战、意外之财、投资情况解读,以及12个月的逐月财运分析(各月财运分数等)。只需按下方参数说明传入出生信息与目标年份,即可获得 JSON 格式的报告数据;单次请求约需 10~60 秒,请设置足够的超时时间。解读文本中可能包含 Markdown 标记(如 ##)
基本信息
| 参数 | 值 |
|---|---|
| Base URL | https://chart.12sign.top |
| 接口URL | POST /yearwealth |
| Content-Type | application/json |
| 返回格式 | application/json |
请求参数
| 参数名 | 类型 | 必选 | 说明 |
|---|---|---|---|
| birth_date | string | 是 | 出生日期,格式 YYYY/MM/DD,如 "1990/01/01" |
| birth_time | string | 是 | 出生时间,格式 HH:MM,如 "12:00" |
| utc_offset | string | 是 | 时区偏移(UTC 偏移格式,带符号),如 "+08:00" |
| latitude | number | 是 | 出生地纬度 |
| longitude | number | 是 | 出生地经度 |
| year | number | 是 | 目标分析年份,如 2025 |
请求示例
POST https://chart.12sign.top/yearwealth
Content-Type: application/json
{
"birth_date": "1990/01/01",
"birth_time": "12:00",
"utc_offset": "+08:00",
"latitude": 39.9042,
"longitude": 116.4074,
"year": 2025
}
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| main_wealth | string | 主财(正财收入)情况解释 |
| wealth_opportunities | array[string] | 财运机遇解释列表 |
| wealth_challenges | array[string] | 财运挑战解释列表 |
| unexpected_wealth | string | 意外之财解释 |
| investment_situation | string | 投资情况解释 |
| monthly_analysis | array | 逐月分析数组(各月财运分数与解读,结构同年度爱情报告的 monthly_analysis) |
| solar_return_info | object | 同上 |
返回示例(节选)
// /yearwealth
{
"main_wealth": "主财(正财收入)情况解释……",
"wealth_opportunities": ["财运机遇解释……"],
"wealth_challenges": ["财运挑战解释……"],
"unexpected_wealth": "意外之财解释……",
"investment_situation": "## 核心优势\n您这个月拥有敏锐的直觉……",
"monthly_analysis": [ { "month": 1, "lunar_returns": {} } ],
"solar_return_info": { "solar_return_date": "…", "which_solar_return": "…" }
}
Python测试代码示例
import requests
BASE = "https://chart.12sign.top"
def test_yearwealth():
payload = {
"birth_date": "1990/01/01", "birth_time": "12:00",
"utc_offset": "+08:00", "latitude": 39.9042, "longitude": 116.4074,
"year": 2025
}
r = requests.post(f"{BASE}/yearwealth", json=payload, timeout=120)
d = r.json()
print(f"主财: {d['main_wealth'][:80]}...")
print(f"投资: {d['investment_situation'][:80]}...")
if __name__ == "__main__":
test_yearwealth()
在线测试 — 年度财运分析
请求地址:
https://chart.12sign.top/yearwealth
请求参数(JSON):
约需10~60秒
返回结果(摘要):
点击"发送请求"后在此显示结果