紫微斗数

紫微斗数

会员服务

根据出生时间定紫薇斗数命盘,供命理研究,不得用于开展算命等封建迷信活动。基于传统中国命理学的服务,它能够根据用户的出生日期和时间生成紫微斗数命盘。这款API的设计理念是为命理研究者、文化爱好者和个人用户提供一个科学、客观的学习和研究工具,严格禁止用于开展算命等封建迷信活动。

会员资源包统一计费,无需单独购买,开通会员包后可直接调用。
排盘
接入点说明
提供求卦者阳历出生时间(精确到时)和性别,排出命盘。
接口地址
https://route.showapi.com/1647-1?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST/GET
更新频率每年年底会不定时的更新一次当年数据
请求参数
Header 参数
参数名称类型示例值必须描述
content-typeString
application/x-www-form-urlencoded
Post 表单
参数名称类型示例值必须描述
timeString
1993-10-27 06
阳历时间  格式按yyyy-MM-dd HH
genderString
m
求卦者性别:f为女,m为男
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://route.showapi.com/1647-1?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "time=1993-10-27%2006&gender=m"
返回示例
JSON
{
	"showapi_res_code": 0,
	"showapi_res_error": "",
	"showapi_res_id":"ce135f6739294c63be0c021b76b6fbff",
    "showapi_res_body": {
		    "ret_code":0,
    "remark":"success",
    "result":{
        "wx":"火6局",
        "mg":"子",
        "yy":"阴女",
        "mz":"贪狼",
        "sg":"子",
        "sz":"天相",
        "key":"20151210230",
        "pan":[
            {
                "sLimit":[
                    "9",
                    "21",
                    "33",
                    "45",
                    "57",
                    "69",
                    "81"
                ],
                "bLimit":"56 - 65",
                "assist":[
                    "天伤"
                ],
                "branch":"辛巳",
                "twelve":[
                    "临官",
                    "青龙",
                    "龙德",
                    "亡神"
                ],
                "palace":"仆役",
                "main":[
                    "武曲平",
                    "破军平",
                    "天马"
                ]
            },
            {
                "sLimit":[
                    "8",
                    "20",
                    "32",
                    "44",
                    "56",
                    "68",
                    "80"
                ],
                "bLimit":"66 - 75",
                "assist":[
                    "阴煞",
                    "解神",
                    "台辅",
                    "天厨"
                ],
                "branch":"壬午",
                "twelve":[
                    "帝旺",
                    "小耗",
                    "白虎",
                    "将星"
                ],
                "palace":"迁移",
                "main":[
                    "太阳旺",
                    "截路"
                ]
            },
            {
                "sLimit":[
                    "7",
                    "19",
                    "31",
                    "43",
                    "55",
                    "67",
                    "79"
                ],
                "bLimit":"76 - 85",
                "assist":[
                    "天刑",
                    "华盖",
                    "天才",
                    "天寿"
                ],
                "branch":"癸未",
                "twelve":[
                    "衰",
                    "将军",
                    "天德",
                    "攀鞍"
                ],
                "palace":"疾厄",
                "main":[
                    "天府庙",
                    "空亡",
                    "天使"
                ]
            },
            {
                "sLimit":[
                    "6",
                    "18",
                    "30",
                    "42",
                    "54",
                    "66",
                    "78"
                ],
                "bLimit":"86 - 95",
                "assist":[
                    "红鸾",
                    "天空",
                    "孤辰",
                    "天福"
                ],
                "branch":"甲申",
                "twelve":[
                    "病",
                    "奏书",
                    "吊客",
                    "岁驿"
                ],
                "palace":"财帛",
                "main":[
                    "天机得禄",
                    "太阴平忌",
                    "天钺"
                ]
            },
            {
                "sLimit":[
                    "10",
                    "22",
                    "34",
                    "46",
                    "58",
                    "70",
                    "82"
                ],
                "bLimit":"46 - 55",
                "assist":[
                    "寡宿",
                    "天德",
                    "天官"
                ],
                "branch":"庚辰",
                "twelve":[
                    "冠带",
                    "力士",
                    "大耗",
                    "月煞"
                ],
                "palace":"事业",
                "main":[
                    "天同平",
                    "文曲得",
                    "擎羊庙"
                ]
            },
            {
                "sLimit":[
                    "5",
                    "17",
                    "29",
                    "41",
                    "53",
                    "65",
                    "77"
                ],
                "bLimit":"96 - 105",
                "assist":[
                    "恩光"
                ],
                "branch":"乙酉",
                "twelve":[
                    "死",
                    "飞廉",
                    "病符",
                    "息神"
                ],
                "palace":"子女",
                "main":[
                    "紫微旺科",
                    "贪狼平",
                    "火星得"
                ]
            },
            {
                "sLimit":[
                    "11",
                    "23",
                    "35",
                    "47",
                    "59",
                    "71",
                    "83"
                ],
                "bLimit":"36 - 45",
                "assist":[
                    "凤阁",
                    "蜚廉",
                    "天贵"
                ],
                "branch":"己卯",
                "twelve":[
                    "沐浴",
                    "博士",
                    "小耗",
                    "咸池"
                ],
                "palace":"田宅",
                "main":[
                    "禄存庙"
                ]
            },
            {
                "sLimit":[
                    "4",
                    "16",
                    "28",
                    "40",
                    "52",
                    "64",
                    "76"
                ],
                "bLimit":"106 - 115",
                "assist":[
                    "天月"
                ],
                "branch":"丙戌",
                "twelve":[
                    "墓",
                    "喜神",
                    "岁建",
                    "华盖"
                ],
                "palace":"夫妻",
                "main":[
                    "巨门陷",
                    "文昌陷",
                    "铃星庙"
                ]
            },
            {
                "sLimit":[
                    "12",
                    "24",
                    "36",
                    "48",
                    "60",
                    "72",
                    "84"
                ],
                "bLimit":"26 - 35",
                "assist":[
                    "天巫",
                    "封诰",
                    "天喜",
                    "三台"
                ],
                "branch":"戊寅",
                "twelve":[
                    "长生",
                    "官府",
                    "官符",
                    "指背"
                ],
                "palace":"福德",
                "main":[
                    "左辅",
                    "陀罗陷"
                ]
            },
            {
                "sLimit":[
                    "1",
                    "13",
                    "25",
                    "37",
                    "49",
                    "61",
                    "73"
                ],
                "bLimit":"16 - 25",
                "assist":[
                    "破碎",
                    "天虚"
                ],
                "branch":"己丑",
                "twelve":[
                    "养",
                    "伏兵",
                    "贯索",
                    "天煞"
                ],
                "palace":"父母",
                "main":[
                    "廉贞平",
                    "七杀庙"
                ]
            },
            {
                "sLimit":[
                    "2",
                    "14",
                    "26",
                    "38",
                    "50",
                    "62",
                    "74"
                ],
                "bLimit":"6 - 15",
                "assist":[
                    "咸池",
                    "月德",
                    "八座"
                ],
                "branch":"戊子",
                "twelve":[
                    "胎",
                    "大耗",
                    "丧门",
                    "灾煞"
                ],
                "palace":"命宫",
                "main":[
                    "天梁庙权",
                    "右弼",
                    "天魁"
                ]
            },
            {
                "sLimit":[
                    "3",
                    "15",
                    "27",
                    "39",
                    "51",
                    "63",
                    "75"
                ],
                "bLimit":"116 - 125",
                "assist":[
                    "天姚",
                    "龙池",
                    "天哭"
                ],
                "branch":"丁亥",
                "twelve":[
                    "绝",
                    "病符",
                    "晦气",
                    "劫煞"
                ],
                "palace":"兄弟",
                "main":[
                    "天相得",
                    "地空",
                    "地劫"
                ]
            }
        ],
        "sx":"羊"
	}
}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-1647": {
      "url": "http://www.showapi.com.cn/mcp/1647/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。