星座运势
访问 AI 生成的星座运势内容,包括所有星座的每日、每周和年度运势。
AI 生成内容
星座运势使用 Cloudflare AI(LLaMA 3.3-70B)生成,并按计划自动刷新。
星座
所有星座运势端点接受以下星座标识符:
aries、taurus、gemini、cancer、leo、virgo、libra、scorpio、sagittarius、capricorn、aquarius、pisces
每日星座运势
获取 12 个星座的 AI 生成每日运势。
所需模块
需要 module:daily-report 模块。
bash
curl "https://api.astroapi.cloud/api/horoscope/daily/2024-06-15" \
-H "X-Api-Key: your-api-key"指定语言:
bash
curl "https://api.astroapi.cloud/api/horoscope/daily/2024-06-15?language=nl" \
-H "X-Api-Key: your-api-key"路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
date | string | 是 | 日期,格式为 YYYY-MM-DD |
查询参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
language | string | 否 | 运势文本的语言代码(默认:"en") |
响应
每日端点返回所有 12 个星座的运势:
json
{
"data": {
"date": "2024-06-15",
"language": "en",
"horoscopes": {
"aries": {
"sign": "aries",
"text": "Today brings a surge of energy and motivation. Mars, your ruling planet, aligns favorably with Jupiter, opening doors for bold action and new beginnings..."
},
"taurus": {
"sign": "taurus",
"text": "Venus highlights your financial sector today, making this an excellent time to review your long-term plans..."
}
}
}
}内容可用性
每日星座运势按计划生成,可能无法获取超过 4 个月前的日期内容。
每周星座运势
获取特定星座的每周运势。
所需模块
需要 module:weekly-report 模块。
bash
curl "https://api.astroapi.cloud/api/horoscope/weekly/2024/24/aries" \
-H "X-Api-Key: your-api-key"路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
year | number | 是 | 年份(例如 2024) |
week | string | 是 | ISO 周数,补零(01–53) |
zodiacSign | string | 是 | 星座标识符(见上方列表) |
查询参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
language | string | 否 | 运势文本的语言代码(默认:"en") |
响应
json
{
"data": {
"year": 2024,
"week": 24,
"zodiacSign": "aries",
"language": "en",
"text": "This week marks an important turning point for Aries. The Sun's position in Gemini activates your communication house, making this the ideal time to speak your truth and connect with others..."
}
}内容可用性
每周运势可用于当前周及约 4 个月前的内容。
年度星座运势
获取特定星座的年度运势。
所需模块
需要 module:yearly-report 模块。
bash
curl "https://api.astroapi.cloud/api/horoscope/yearly/2024/aries" \
-H "X-Api-Key: your-api-key"路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
year | number | 是 | 年份(仅支持当前年份) |
zodiacSign | string | 是 | 星座标识符 |
查询参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
language | string | 否 | 运势文本的语言代码(默认:"en") |
响应
json
{
"data": {
"year": 2024,
"zodiacSign": "aries",
"language": "en",
"text": "2024 is a year of transformation and expansion for Aries. Saturn's continued presence in Pisces asks you to confront hidden patterns, while Jupiter in Taurus brings tangible rewards for past efforts..."
}
}内容可用性
年度星座运势仅适用于当前日历年。
年度上升星座运势
获取以上升星座(上升点)视角为主的年度运势。
所需模块
需要 module:yearly-ascendant-report 模块。
bash
curl "https://api.astroapi.cloud/api/horoscope/yearly-ascendant/2024/aries" \
-H "X-Api-Key: your-api-key"路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
year | number | 是 | 年份(仅支持当前年份) |
zodiacSign | string | 是 | 上升星座标识符 |
查询参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
language | string | 否 | 运势文本的语言代码(默认:"en") |
响应
json
{
"data": {
"year": 2024,
"zodiacSign": "aries",
"language": "en",
"text": "For those with Aries rising, 2024 activates your chart in powerful ways. Pluto's move into your 11th house reshapes your social circle and long-term goals..."
}
}内容可用性
年度上升星座运势仅适用于当前日历年。
可用性摘要
| 端点 | 所需模块 | 可用时间窗口 |
|---|---|---|
| 每日 | module:daily-report | 最多约 4 个月前 |
| 每周 | module:weekly-report | 最多约 4 个月前 |
| 年度 | module:yearly-report | 仅当前年度 |
| 年度上升 | module:yearly-ascendant-report | 仅当前年度 |