# Generated by ShowAPI OpenAPI generator
# source: market/1647
# generated-at: 2026-06-26T01:56:44.539Z
openapi: 3.0.3
info:
  title: 紫微斗数
  description: 根据出生时间定紫薇斗数命盘，供命理研究，不得用于开展算命等封建迷信活动。基于传统中国命理学的服务，它能够根据用户的出生日期和时间生成紫微斗数命盘。这款API的设计理念是为命理研究者、文化爱好者和个人用户提供一个科学、客观的学习和研究工具，严格禁止用于开展算命等封建迷信活动。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1647-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 45
    x-connect-timeout: 10
    post:
      summary: 排盘
      description: 提供求卦者阳历出生时间（精确到时）和性别，排出命盘。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: number
                            description: 0表示成功，其他表示失败
                          remark:
                            type: string
                            description: 错误信息
                          result:
                            type: array
                            items:
                              type: object
                              properties:
                                wx:
                                  type: string
                                  description: 五行
                                mg:
                                  type: string
                                  description: 命宫宫位
                                mz:
                                  type: string
                                  description: 命主
                                yy:
                                  type: string
                                  description: 阴阳
                                sz:
                                  type: string
                                  description: 身主
                                sg:
                                  type: string
                                  description: 身宫
                                sx:
                                  type: string
                                  description: 生肖
                                pan:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      main:
                                        type: string
                                        description: 主星
                                      assist:
                                        type: string
                                        description: 辅星
                                      twelve:
                                        type: string
                                        description: 十二星
                                      bLimit:
                                        type: string
                                        description: 大限
                                      sLimit:
                                        type: string
                                        description: 小限
                                      palace:
                                        type: string
                                        description: 宫名
                                      branch:
                                        type: string
                                        description: 干支
                                  description: 十二宫详细信息
                            description: 排盘结果，排盘失败无此值
                        description: 业务返回体
      operationId: 1647_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                time:
                  type: string
                  description: 阳历时间  格式按yyyy-MM-dd HH
                gender:
                  type: string
                  description: 求卦者性别：f为女，m为男
              required:
                - time
                - gender
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/1647?tab=book
x-apiCode: "1647"
x-is-own: true
x-is-op: true
