{
  "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": {
    "/119-42": {
      "x-pointCode": 42,
      "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": {
                            "list": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "day": {
                                    "type": "number",
                                    "description": "日"
                                  },
                                  "title": {
                                    "type": "string",
                                    "description": "历史事件"
                                  },
                                  "year": {
                                    "type": "string",
                                    "description": "年"
                                  },
                                  "month": {
                                    "type": "number",
                                    "description": "月"
                                  },
                                  "content": {
                                    "type": "string",
                                    "description": "历史事件详细内容。需要请求参数needContent=1才有该字段返回。"
                                  },
                                  "img": {
                                    "type": "string",
                                    "description": "历史时间图片链接，没有图片时返回空字符串"
                                  }
                                }
                              },
                              "description": "历史事件列表"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "0表示调用成，-1表示调用失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "119_42_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "description": "日期，不写的话默认为当前天"
                  },
                  "needContent": {
                    "type": "string",
                    "description": "是否返回历史事件的详细内容，1表示需要，0表示不需要"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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/119?tab=book"
  },
  "x-apiCode": "119",
  "x-is-own": false,
  "x-is-op": true
}