{
  "openapi": "3.0.3",
  "info": {
    "title": "星座运势",
    "description": "本数据包含十二星座的每日运势，明日运势，每周运势，当年运势以及星座配对。具体包括缘份星座、吉利颜色、幸运数字、爱情提醒、运势简评、爱情运势、工作运势、财富运势、健康运势、情欲分析等。广泛应用于星座社区、爱情匹配和心灵治愈等场景。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/872-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "星座配对",
        "description": "可以根据您和另一半的星座测试出你们未来的发展趋势和发展方向，数据反馈结果仅供参考。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "proportion": {
                              "type": "string",
                              "description": "星座配对比重"
                            },
                            "affection": {
                              "type": "string",
                              "description": "亲情配对指数"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "grxz1": {
                              "type": "string",
                              "description": "星座"
                            },
                            "grxz2": {
                              "type": "string",
                              "description": "星座"
                            },
                            "suggest": {
                              "type": "string",
                              "description": "恋爱建议"
                            },
                            "gender1": {
                              "type": "string",
                              "description": "性别"
                            },
                            "match_case": {
                              "type": "string",
                              "description": "配对示例"
                            },
                            "gender2": {
                              "type": "string",
                              "description": "性别"
                            },
                            "star1": {
                              "type": "string",
                              "description": "星座"
                            },
                            "info": {
                              "type": "string",
                              "description": "其它建议"
                            },
                            "love": {
                              "type": "string",
                              "description": "爱情配对指数"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "married": {
                              "type": "string",
                              "description": "婚姻配对指数"
                            },
                            "star2": {
                              "type": "string",
                              "description": "星座"
                            },
                            "forever": {
                              "type": "string",
                              "description": "天长地久指数"
                            },
                            "predestination": {
                              "type": "string",
                              "description": "缘分解析"
                            },
                            "lqxy": {
                              "type": "string",
                              "description": "两情相悦指数"
                            },
                            "friendship": {
                              "type": "string",
                              "description": "友情配对指数"
                            },
                            "match": {
                              "type": "string",
                              "description": "综合配对指数"
                            },
                            "attention": {
                              "type": "string",
                              "description": "注意事项"
                            },
                            "review": {
                              "type": "string",
                              "description": "星座速配点评"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "872_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "star1": {
                    "type": "string",
                    "description": "十二星座，其值分别为：baiyang、jinniu、shuangzi、juxie、shizi、chunv、tiancheng、tianxie、sheshou、mojie、shuiping、shuangyu"
                  },
                  "gender1": {
                    "type": "string",
                    "description": "1、男 0、女"
                  },
                  "star2": {
                    "type": "string",
                    "description": "十二星座，其值分别为：baiyang、jinniu、shuangzi、juxie、shizi、chunv、tiancheng、tianxie、sheshou、mojie、shuiping、shuangyu"
                  },
                  "gender2": {
                    "type": "string",
                    "description": "1、男 0、女"
                  }
                },
                "required": [
                  "star1",
                  "gender1",
                  "star2",
                  "gender2"
                ]
              }
            }
          }
        }
      }
    },
    "/872-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "星座运势查询",
        "description": "十二星座为：白羊座、金牛座、双子座、巨蟹座、狮子座、处女座、天秤座、天蝎座、射手座、摩羯座、水瓶座、双鱼座。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "summary_star": {
                                    "type": "string",
                                    "description": "综合指数，最高5分"
                                  },
                                  "love_star": {
                                    "type": "number",
                                    "description": "爱情指数，最高5分"
                                  },
                                  "money_star": {
                                    "type": "number",
                                    "description": "财富指数，最高5分"
                                  },
                                  "work_star": {
                                    "type": "number",
                                    "description": "工作指数，最高5分"
                                  },
                                  "grxz": {
                                    "type": "string",
                                    "description": "贵人星座"
                                  },
                                  "lucky_num": {
                                    "type": "string",
                                    "description": "幸运数字"
                                  },
                                  "lucky_time": {
                                    "type": "string",
                                    "description": "吉时"
                                  },
                                  "lucky_direction": {
                                    "type": "string",
                                    "description": "吉利方位"
                                  },
                                  "day_notice": {
                                    "type": "string",
                                    "description": "今日提醒"
                                  },
                                  "general_txt": {
                                    "type": "string",
                                    "description": "运势简评"
                                  },
                                  "love_txt": {
                                    "type": "string",
                                    "description": "爱情运势"
                                  },
                                  "work_txt": {
                                    "type": "string",
                                    "description": "工作运势"
                                  },
                                  "money_txt": {
                                    "type": "string",
                                    "description": "财富运势"
                                  },
                                  "time": {
                                    "type": "string",
                                    "description": "时间"
                                  },
                                  "lucky_color": {
                                    "type": "string",
                                    "description": "吉色"
                                  }
                                }
                              },
                              "description": "本日运势数据对象"
                            },
                            "tomorrow": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "summary_star": {
                                    "type": "number",
                                    "description": "综合指数，最高5分"
                                  },
                                  "love_star": {
                                    "type": "number",
                                    "description": "爱情指数，最高5分"
                                  },
                                  "money_star": {
                                    "type": "number",
                                    "description": "财富指数，最高5分"
                                  },
                                  "work_star": {
                                    "type": "number",
                                    "description": "工作指数，最高5分"
                                  },
                                  "grxz": {
                                    "type": "string",
                                    "description": "贵人星座"
                                  },
                                  "lucky_num": {
                                    "type": "string",
                                    "description": "幸运数字"
                                  },
                                  "lucky_time": {
                                    "type": "string",
                                    "description": "吉时"
                                  },
                                  "lucky_direction": {
                                    "type": "string",
                                    "description": "吉利方位"
                                  },
                                  "day_notice": {
                                    "type": "string",
                                    "description": "今日提醒"
                                  },
                                  "general_txt": {
                                    "type": "string",
                                    "description": "运势简评"
                                  },
                                  "love_txt": {
                                    "type": "string",
                                    "description": "爱情运势"
                                  },
                                  "work_txt": {
                                    "type": "string",
                                    "description": "工作运势"
                                  },
                                  "money_txt": {
                                    "type": "string",
                                    "description": "财富运势"
                                  },
                                  "time": {
                                    "type": "string",
                                    "description": "时间"
                                  },
                                  "lucky_color": {
                                    "type": "string",
                                    "description": "吉色"
                                  }
                                }
                              },
                              "description": "明日运势数据对象"
                            },
                            "week": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "summary_star": {
                                    "type": "number",
                                    "description": "综合指数，最高5分"
                                  },
                                  "love_star": {
                                    "type": "number",
                                    "description": "爱情指数，最高5分"
                                  },
                                  "money_star": {
                                    "type": "number",
                                    "description": "财富指数，最高5分"
                                  },
                                  "work_star": {
                                    "type": "number",
                                    "description": "工作指数，最高5分"
                                  },
                                  "grxz": {
                                    "type": "string",
                                    "description": "贵人星座"
                                  },
                                  "xrxz": {
                                    "type": "string",
                                    "description": "小人星座"
                                  },
                                  "lucky_color": {
                                    "type": "string",
                                    "description": "吉利颜色"
                                  },
                                  "lucky_num": {
                                    "type": "string",
                                    "description": "幸运数字"
                                  },
                                  "lucky_day": {
                                    "type": "string",
                                    "description": "幸运日期"
                                  },
                                  "lucky_direction": {
                                    "type": "string",
                                    "description": "吉利方位"
                                  },
                                  "week_notice": {
                                    "type": "string",
                                    "description": "本周提醒"
                                  },
                                  "general_txt": {
                                    "type": "string",
                                    "description": "运势简评"
                                  },
                                  "love_txt": {
                                    "type": "string",
                                    "description": "爱情运势"
                                  },
                                  "work_txt": {
                                    "type": "string",
                                    "description": "工作运势"
                                  },
                                  "money_txt": {
                                    "type": "string",
                                    "description": "财富运势"
                                  },
                                  "health_txt": {
                                    "type": "string",
                                    "description": "健康运势"
                                  },
                                  "time": {
                                    "type": "string",
                                    "description": "时间"
                                  }
                                }
                              },
                              "description": "本周运势数据对象"
                            },
                            "month": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "summary_star": {
                                    "type": "number",
                                    "description": "综合指数，最高5分"
                                  },
                                  "love_star": {
                                    "type": "number",
                                    "description": "爱情指数，最高5分"
                                  },
                                  "work_star": {
                                    "type": "number",
                                    "description": "工作指数，最高5分"
                                  },
                                  "money_star": {
                                    "type": "number",
                                    "description": "财富指数，最高5分"
                                  },
                                  "yfxz": {
                                    "type": "string",
                                    "description": "缘份星座"
                                  },
                                  "grxz": {
                                    "type": "string",
                                    "description": "贵人星座"
                                  },
                                  "xrxz": {
                                    "type": "string",
                                    "description": "小人星座"
                                  },
                                  "lucky_direction": {
                                    "type": "string",
                                    "description": "吉利方位"
                                  },
                                  "month_advantage": {
                                    "type": "string",
                                    "description": "本月优势"
                                  },
                                  "month_weakness": {
                                    "type": "string",
                                    "description": "本月弱势"
                                  },
                                  "general_txt": {
                                    "type": "string",
                                    "description": "运势简评"
                                  },
                                  "love_txt": {
                                    "type": "string",
                                    "description": "爱情运势"
                                  },
                                  "work_txt": {
                                    "type": "string",
                                    "description": "工作学业"
                                  },
                                  "money_txt": {
                                    "type": "string",
                                    "description": "财富运势"
                                  },
                                  "time": {
                                    "type": "string",
                                    "description": "时间"
                                  }
                                }
                              },
                              "description": "本月运势数据对象"
                            },
                            "year": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "general_index": {
                                    "type": "string",
                                    "description": "综合指数，最高100分"
                                  },
                                  "love_index": {
                                    "type": "string",
                                    "description": "爱情指数，最高100分"
                                  },
                                  "money_index": {
                                    "type": "string",
                                    "description": "财富指数，最高100分"
                                  },
                                  "work_index": {
                                    "type": "string",
                                    "description": "工作指数，最高100分"
                                  },
                                  "oneword": {
                                    "type": "string",
                                    "description": "一句话简评"
                                  },
                                  "general_txt": {
                                    "type": "string",
                                    "description": "运势概述"
                                  },
                                  "love_txt": {
                                    "type": "string",
                                    "description": "爱情运势"
                                  },
                                  "work_txt": {
                                    "type": "string",
                                    "description": "工作运势"
                                  },
                                  "money_txt": {
                                    "type": "string",
                                    "description": "财富运势"
                                  },
                                  "health_txt": {
                                    "type": "string",
                                    "description": "健康运势"
                                  },
                                  "time": {
                                    "type": "string",
                                    "description": "时间"
                                  }
                                }
                              },
                              "description": "本年运势数据对象"
                            },
                            "star": {
                              "type": "string",
                              "description": "查询的星座名称"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "0为成功，其他失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "872_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "star": {
                    "type": "string",
                    "description": "十二星座，其值分别为\nbaiyang、jinniu、shuangzi、juxie、shizi、chunv、tiancheng、tianxie、sheshou、mojie、shuiping、shuangyu"
                  },
                  "date": {
                    "type": "string",
                    "description": "日期（MMdd） 用于自动转换到需要查询的星座 没有star参数时以date为准"
                  },
                  "needTomorrow": {
                    "type": "string",
                    "description": "是否需要明天的数据，1为需要，其他不需要"
                  },
                  "needWeek": {
                    "type": "string",
                    "description": "是否需要本周运势的数据，1为需要，其他不需要"
                  },
                  "needMonth": {
                    "type": "string",
                    "description": "是否需要本月运势的数据，1为需要，其他不需要"
                  },
                  "needYear": {
                    "type": "string",
                    "description": "是否需要本年运势的数据，1为需要，其他不需要"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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/872?tab=book"
  },
  "x-apiCode": "872",
  "x-is-own": false,
  "x-is-op": true
}