API 接口文档
API 接入
ApiWorks Astro API
开源演示项目 vue-astro 基于 Vue 3,对接本服务 API,涵盖星座、运势、星盘、紫微、星宿、八字、奇门、六壬等模块,可作为请求参数与联调参考。
星座相关接口
前端调用示例见开源演示项目 vue-astro:
我的星座
查询我的星座
- uid 用户ID
- 请求体可选 lang,默认 zh-Hans,与旧客户端兼容
return
- ApiResp: 我的星座
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 用户ID |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/mySign/{uid}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
星座列表
查询星座列表
- 可选查询参数 lang,默认 zh-Hans
return
- ApiResp: 星座列表
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| lang | string | query | 否 | 语言 支持zh-Hant(繁体中文)、zh-Hans(简体中文)、en(English) 默认zh-Hans |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X GET "https://cloud.apiworks.com/open/astro/signs" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key"响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
星座信息
查询指定星座的信息
- sign_id 星座列表返回的星座id, 1-12
- 可选查询参数 lang,默认 zh-Hans
return
- ApiResp: 星座信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| sign_id | integer | path | 是 | 星座列表返回的星座id, 1-12 |
| lang | string | query | 否 | 语言 支持zh-Hant(繁体中文)、zh-Hans(简体中文)、en(English) 默认zh-Hans |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X GET "https://cloud.apiworks.com/open/astro/signs/{sign_id}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key"响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
星座配对
查询指定星座的配对信息
- sign_id 星座列表返回的星座id, 1-12
- 可选查询参数 lang,默认 zh-Hans
return
- ApiResp: 星座配对信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| sign_id | integer | path | 是 | 星座列表返回的星座id, 1-12 |
| lang | string | query | 否 | 语言 支持zh-Hant(繁体中文)、zh-Hans(简体中文)、en(English) 默认zh-Hans |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X GET "https://cloud.apiworks.com/open/astro/signs/{sign_id}/compat" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key"响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
运势相关接口
前端调用示例见开源演示项目 vue-astro:
每日心情
查询每日心情
- ScopeQryReq 查询每日心情(提供出生时间地点和推运时间)
return
- ApiResp: 每日心情信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/scope/daily_mood" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
日运势
查询日运势
requestBody
- ScopeQryReq 运势查询参数(提供出生时空点和推运时空点,transit 会自动转换为日对齐)
return
- ApiResp: 运势信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 用户ID |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/scope/day/{uid}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
周运势
查询周运势
requestBody
- ScopeQryReq 运势查询参数(提供出生时空点和推运时空点,transit 会自动转换为周对齐)
return
- ApiResp: 运势信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 用户ID |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/scope/week/{uid}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
月运势
查询月运势
requestBody
- ScopeQryReq 运势查询参数(提供出生时空点和推运时空点,transit 会自动转换为月初对齐)
return
- ApiResp: 运势信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 用户ID |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/scope/month/{uid}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
年运势
查询年运势
requestBody
- ScopeQryReq 运势查询参数(提供出生时空点和推运时空点,transit 会自动转换为年初对齐)
return
- ApiResp: 运势信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 用户ID |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/scope/year/{uid}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
单点星盘接口
前端调用示例见开源演示项目 vue-astro(本命盘、天象盘等):
本命盘查询
requestBody
- SinglePointQry 本命盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/natal" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
天象盘查询
requestBody
- SinglePointQry 天象盘查询参数(查询给定时间地点的天象)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/current" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
双点星盘接口
前端调用示例见开源演示项目 vue-astro(行运、比较、组合、返照等):
行运盘查询
requestBody
- DoublePointQry 行运盘查询参数(需要两个时空点:user_list[0]为出生信息,user_list[1]为推运时空信息)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/transit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
迁徙盘查询
requestBody
- DoublePointQry 迁徙盘查询参数(需要两个时空点:user_list[0]为出生信息,user_list[1]为推运时空信息)
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/relocation" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
比较盘查询
requestBody
- DoublePointQry 比较盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/comparison" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
组合盘查询
requestBody
- DoublePointQry 组合盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/composite" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
时空中点盘查询
requestBody
- DoublePointQry 时空中点盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/timesMidPoint" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
马克盘查询
requestBody
- DoublePointQry 马克盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/marks" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
月返盘查询
requestBody
- DoublePointQry 月返盘查询参数(user_list[0]为出生时间地点信息,user_list[1]为目标时间地点信息)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/lunarReturn" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
日返盘查询
requestBody
- DoublePointQry 日返盘查询参数(user_list[0]为出生时间地点信息,user_list[1]为目标时间地点信息)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/solarReturn" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
有推运时间的单点星盘接口
前端调用示例见开源演示项目 vue-astro(三限、次限、法达等):
三限盘查询
requestBody
- SpTransitDateQry 三限盘查询参数(一天对应一个月)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/tripleLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042,
"transit_dt": "2026-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
次限盘查询
requestBody
- SpTransitDateQry 次限盘查询参数(一天对应一年)
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/secondaryLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042,
"transit_dt": "2026-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
法达盘查询
requestBody
- SpTransitDateQry 法达盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/firdaria" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042,
"transit_dt": "2026-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
小限盘查询
requestBody
- SpTransitDateQry 小限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/smallLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042,
"transit_dt": "2026-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
日弧盘查询
requestBody
- SpTransitDateQry 日弧盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/solarArc" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042,
"transit_dt": "2026-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
有推运时间的双点星盘接口
前端调用示例见开源演示项目 vue-astro(组合/马盘/时空三限次限等):
组合三限盘查询
requestBody
- DpTransitDateQry 组合三限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/composeTripleLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
组合次限盘查询
requestBody
- DpTransitDateQry 组合次限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/composeSecLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
马盘三限盘查询
requestBody
- DpTransitDateQry 马盘三限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/marksTripleLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
马盘次限盘查询
requestBody
- DpTransitDateQry 马盘次限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/marksSecLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
时空三限盘查询
requestBody
- DpTransitDateQry 时空中点三限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/tmpTripleLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
时空次限盘查询
requestBody
- DpTransitDateQry 时空中点次限盘查询参数
return
- ApiResp[AstroDataVo]: 星盘信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/chart/tmpSecLimit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_list": [
{
"birth_dt": "1999-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
},
{
"birth_dt": "2001-10-17 21:00:00",
"latitude": 39.9042,
"longitude": 116.4074,
"tz": 8
}
],
"transit_dt": "2025-10-17 21:00:00"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
星象事件相关接口
行运星象事件查询
行运盘星象事件
查询行运盘星象事件
requestBody
- ScopeQryReq 运势查询参数
return
- ApiResp: 星象信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/event/transit" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
}
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
八字相关接口
前端调用示例见开源演示项目 vue-astro:
八字命盘
八字命盘接口。lang 支持 zh-Hans(默认)、zh-Hant。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/bazi/natal" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
八字流盘
八字流盘接口。lang 支持 zh-Hans(默认)、zh-Hant。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/bazi/flow" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
八字合盘
八字合盘接口。合盘解读从 bazi_interpret_corpus 按五因素组合取文案。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/bazi/match" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male",
"other_birth_dt": "1998-10-16 21:00:00",
"other_gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
八字总结
八字总结接口。lang 支持 zh-Hans(默认)、zh-Hant。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/bazi/summary" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
紫微斗数接口
前端调用示例见开源演示项目 vue-astro:
紫微斗数本命盘
紫微斗数本命盘接口(不包含运限数据),适用于只需要查看本命盘信息的场景。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/ziwei/natal" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
紫微斗数排盘
紫微斗数排盘接口,含本命/大限/流年/流月/流日/流时各个盘的数据
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/ziwei/chart" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
含信息解读的紫微排盘
紫薇斗数详细信息接口,包括各个盘数据,以及星耀落宫的解读信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/ziwei/detail" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_dt": "1999-10-17 21:00:00",
"gender": "male"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
星宿相关接口
前端调用示例见开源演示项目 vue-astro:
星宿关系查询
查询星宿信息,包括个人的本命星宿和值日星宿,以及二者与他人的本命星宿相互间的关系。
六大关系类型(按亲密度排序):
- 友衰(最轻松):像朋友/玩伴,轻松愉快但深度不足
- 荣亲(最舒适):如家人般温馨,照顾与被照顾的关系
- 危成(利益相关):带有滤镜色彩,涉及现实利益
- 命之星(最相似):如同另一个自己,默契但需自我接纳
- 安坏(最不平衡):主人与宠物,强烈的吸引与业力纠葛
- 业胎(最深刻):双生火焰,心灵感应但易互相消耗
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/naks/relations" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"birth_info": {
"birth_dt": "1990-01-15 00:00:00",
"latitude": 39.92,
"longitude": 116.46,
"tz": 8,
"user_id": "user_12345"
},
"niu_xiu_handle": "nvxiu",
"others_birth_info": [
{
"birth_dt": "1992-03-20 00:00:00",
"latitude": 39.92,
"longitude": 116.46,
"tz": 8,
"user_id": "user_67890"
}
]
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
三式·奇门遁甲
前端调用示例见开源演示项目 vue-astro:
奇门遁甲排盘
请求体为 QimenQry:起局类型、排盘方式、定局方法、lang(zh-Hans/zh-Hant)、dingju_*(按 ju_method 取用,多余字段忽略)、时柱来源等。
成功时 data 为统一模型 QimenResultVo(pan_variant 区分时家 / 日家金函玉镜 / 日家传统日盘等)。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/qimen" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"ju_method": "chaibu",
"pai_method": "zhuanpan",
"qry_dt": "1999-10-17 21:00:00",
"type": "shijia",
"tz": 8
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
三式·大六壬
前端调用示例见开源演示项目 vue-astro:
大六壬排盘
请求体为 LiurenQry:术式类型、贵人起法、查询时间、时区与 lang(zh-Hans/zh-Hant)等。
支持 daliuren(大六壬)与 jinkoujue(金口诀,可选 di_fen 地分)。
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/liuren" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"gui_method": "tian",
"qry_dt": "1999-10-17 21:00:00",
"type": "daliuren",
"tz": 8
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
AI报告接口
AI报告接口
桃花报告
桃花报告请求参数
提供用户的出生及当前时空点信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/report/romantic" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"user_current_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"user_id": "12345"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
周运报告
周运势报告请求参数
带推运日期的查询参数
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/report/weeklyScope" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_dt": "2026-01-01 01:02:03",
"user_id": "12345"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
年运报告
年运势报告请求参数
带推运日期的查询参数
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/report/yearlyScope" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"transit_dt": "2026-01-01 01:02:03",
"user_id": "12345"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
合盘报告
合盘报告请求参数
用户及对方的出生时空点信息
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/report/together" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"other_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"user_id": "12345"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
财运报告
财运报告请求参数
单时空点查询参数
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X POST "https://cloud.apiworks.com/open/astro/report/wealth" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key" \
-H "Content-Type: application/json" \
-d '{
"user_birth_point": {
"birth_dt": "1999-10-17 21:00:00",
"longitude": 116.4074,
"latitude": 39.9042
},
"user_id": "12345"
}'响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
查询报告(JSON格式)
查询报告接口,返回JSON格式
这是默认的报告查询接口,向后兼容原有接口
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 创建报告时提供的用户ID |
| serial_no | string | path | 是 | 创建报告接口返回的序号 |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X GET "https://cloud.apiworks.com/open/astro/report/{uid}/{serial_no}" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key"响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}响应数据结构
点击查看详细的响应数据结构定义
查询报告(HTML格式)
查询报告接口,返回HTML格式
返回格式化的HTML页面,适合在浏览器中直接查看
请求参数
| 参数名 | 类型 | 位置 | 必填 | 描述 |
|---|---|---|---|---|
| uid | string | path | 是 | 创建报告时提供的用户ID |
| serial_no | string | path | 是 | 创建报告接口返回的序号 |
| X-App-Id | string | header | 是 | Token管理页面的 |
| X-App-Key | string | header | 是 | Token管理页面的 |
请求示例
curl -X GET "https://cloud.apiworks.com/open/astro/report/{uid}/{serial_no}/html" \
-H "X-App-Id: your_app_id" \
-H "X-App-Key: your_app_key"响应示例
{
"code": 200,
"message": "success",
"data": {
"result": "API响应数据"
}
}