运势占扑,个性分析内容
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| msg | string | 是 | 星座名称(支持中文,英文大小写) | 白羊座 |
| time | string | 否 | 查询时间(查询时间,支持 today(今天)、week(本周)、month(本月)、year(今年),不填写默认为 today) | today |
| type | string | 否 | 返回数据格式,支持 json 和 text,不填写默认认为 json | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "msg",
"type": "string",
"required": true,
"description": "星座名称(支持中文,英文大小写)",
"example": "白羊座"
},
{
"name": "time",
"type": "string",
"required": false,
"description": "查询时间(查询时间,支持 today(今天)、week(本周)、month(本月)、year(今年),不填写默认为 today)",
"example": "today"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "返回数据格式,支持 json 和 text,不填写默认认为 json",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "星座运势配对",
"description": "运势占扑,个性分析内容",
"version": "1.0.0"
},
"paths": {
"/api/yljk/xzyspd/api.php": {
"get": {
"summary": "星座运势配对",
"description": "运势占扑,个性分析内容",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "msg",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "白羊座"
},
"description": "星座名称(支持中文,英文大小写)"
},
{
"name": "time",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "today"
},
"description": "查询时间(查询时间,支持 today(今天)、week(本周)、month(本月)、year(今年),不填写默认为 today)"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "返回数据格式,支持 json 和 text,不填写默认认为 json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "星座运势配对",
"description": "运势占扑,个性分析内容",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "msg",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "白羊座"
},
"description": "星座名称(支持中文,英文大小写)"
},
{
"name": "time",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "today"
},
"description": "查询时间(查询时间,支持 today(今天)、week(本周)、month(本月)、year(今年),不填写默认为 today)"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "返回数据格式,支持 json 和 text,不填写默认认为 json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"status": "success",
"constellation_name": "白羊座",
"constellation_en": "Aries",
"date_range": "03-21 - 04-19",
"element": "火",
"ruling_planet": "火星",
"personality_traits": [
"勇敢",
"热情",
"冲动",
"自信",
"领导力强"
],
"strengths": "勇敢、坚定、热情、诚实、充满活力",
"weaknesses": "急躁、冲动、好斗、缺乏耐心、自我中心",
"best_match": "射手座",
"best_match_en": "Sagittarius",
"good_matches": [
"双子座",
"水瓶座"
],
"fair_matches": [
"白羊座",
"天秤座",
"天蝎座"
],
"poor_matches": [
"巨蟹座",
"摩羯座"
],
"lucky_colors": [
"红色",
"橙色",
"金色"
],
"lucky_numbers": [
1,
8,
17,
19
],
"time_period": "today",
"love_advice": "保持你的热情,但学会倾听对方的想法。",
"general_fortune": "充满活力和冒险精神,适合主动出击。 综合评分:68/100",
"love_fortune": "感情状态较为稳定,但需要更多的耐心和包容。",
"work_fortune": "今天适合整理工作思路,为未来的项目做准备。",
"wealth_fortune": "今天适合检视个人财务状况,做好预算规划。",
"health_fortune": "今天适合进行轻度运动,保持身体活力。",
"desire_analysis": "今日性欲旺盛,充满激情与活力,适合与伴侣增进亲密关系。",
"lucky_direction": "东方",
"lucky_time": "上午9点-11点",
"generated_at": "2026-09-30 02:51:59"
}
星座运势配对接口提供星座运势查询与个性分析内容服务。适用于娱乐类应用、星座分析工具等场景,为用户提供星座相关的运势与匹配信息。
https://api-v2.317ak.com/api/yljk/xzyspd/api.php
GET、POST
本接口调用需要密钥认证。
首选鉴权方式:Query 参数传递,在请求中添加 key=…。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥 |
| msg | string | 是 | 星座名称,支持中文、英文大小写,例如:白羊座 |
| time | string | 否 | 查询时间,支持 today(今天)、week(本周)、month(本月)、year(今年);不填写时默认为 today |
| type | string | 否 | 返回数据格式,支持 json 和 text;不填写时默认为 json |
msg:填写需要查询的星座名称。time:用于指定运势查询周期,可根据需求选择对应时间范围。type:用于指定接口返回内容格式。{
"status": "success",
"constellation_name": "白羊座",
"constellation_en": "Aries",
"date_range": "03-21 - 04-19",
"element": "火",
"ruling_planet": "火星",
"personality_traits": [
"勇敢",
"热情",
"冲动",
"自信",
"领导力强"
],
"strengths": "勇敢、坚定、热情、诚实、充满活力",
"weaknesses": "急躁、冲动、好斗、缺乏耐心、自我中心",
"best_match": "射手座",
"best_match_en": "Sagittarius",
"good_matches": [
"双子座",
"水瓶座"
],
"fair_matches": [
"白羊座",
"天秤座",
"天蝎座"
],
"poor_matches": [
"巨蟹座",
"摩羯座"
],
"lucky_colors": [
"红色",
"橙色",
"金色"
],
"lucky_numbers": [
1,
8,
17,
19
],
"time_period": "today",
"love_advice": "保持你的热情,但学会倾听对方的想法。",
"general_fortune": "充满活力和冒险精神,适合主动出击。 综合评分:68/100",
"love_fortune": "感情状态较为稳定,但需要更多的耐心和包容。",
"work_fortune": "今天适合整理工作思路,为未来的项目做准备。",
"wealth_fortune": "今天适合检视个人财务状况,做好预算规划。",
"health_fortune": "今天适合进行轻度运动,保持身体活力。",
"desire_analysis": "今日性欲旺盛,充满激情与活力,适合与伴侣增进亲密关系。",
"lucky_direction": "东方",
"lucky_time": "上午9点-11点",
"generated_at": "2026-09-30 02:51:59"
}
| 字段 | 类型 | 说明 |
|---|---|---|
| status | string | 响应状态 |
| constellation_name | string | 星座名称 |
| constellation_en | string | 星座英文名称 |
| date_range | string | 星座日期范围 |
| element | string | 星座元素 |
| ruling_planet | string | 对应星体 |
| personality_traits | array | 个性特点列表 |
| strengths | string | 优势描述 |
| weaknesses | string | 劣势描述 |
| best_match | string | 推荐匹配星座 |
| best_match_en | string | 推荐匹配星座英文名称 |
| good_matches | array | 较适合匹配的星座列表 |
| fair_matches | array | 普通匹配的星座列表 |
| poor_matches | array | 匹配度较低的星座列表 |
| lucky_colors | array | 幸运颜色列表 |
| lucky_numbers | array | 幸运数字列表 |
| time_period | string | 运势时间范围 |
| love_advice | string | 情感建议 |
| general_fortune | string | 综合运势描述 |
| love_fortune | string | 感情运势描述 |
| work_fortune | string | 工作运势描述 |
| wealth_fortune | string | 财富运势描述 |
| health_fortune | string | 健康运势描述 |
| desire_analysis | string | 相关倾向分析 |
| lucky_direction | string | 幸运方向 |
| lucky_time | string | 幸运时间 |
| generated_at | string | 数据生成时间 |
请求失败时,接口返回统一错误结构:
{
"code":0,
"msg":"未提供调用密钥",
"errcode":11001
}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | 地址无效 |
| 11015 | 地址不允许 |
| 11016 | 请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用相关功能须提供有效密钥 |
| 11021 | 未配置可用服务 |
| 11022 | 服务不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/yljk/xzyspd/api.php" \
--data-urlencode "key=你的接口密钥" \
--data-urlencode "msg=白羊座" \
--data-urlencode "time=today" \
--data-urlencode "type=json"
## 注意事项
- 调用接口时必须提供有效调用密钥,请妥善保管 `key`,避免将密钥直接暴露在公开页面、前端代码或客户端资源中。
- 接口调用请使用 HTTPS 进行请求,以保障请求参数及返回内容传输安全。
- `msg` 为必填参数,请填写有效星座名称,支持中文及英文大小写。建议使用标准星座名称,避免因拼写错误导致查询结果异常。
- `time` 参数用于指定查询周期,可选值为 `today`、`week`、`month`、`year`。不填写时默认查询当天内容。
- `type` 参数用于指定返回格式,可填写 `json` 或 `text`。不填写时默认返回 JSON 格式数据。
- 请根据实际业务需求合理控制调用频率,避免短时间内大量重复请求影响接口正常使用。
- 本接口内容属于娱乐类运势与个性分析信息,仅供参考,不建议将返回内容作为现实决策依据。
- 接口免费提供服务,但请遵守正常调用规范,避免滥用接口资源。curl "https://api-v2.317ak.com/api/yljk/xzyspd/api.php?key=YOUR_API_KEY&msg=%E7%99%BD%E7%BE%8A%E5%BA%A7&time=today&type=json" \
-X GET