{
  "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": {
    "/1164-4": {
      "x-pointCode": 4,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "菜谱查询-关键词",
        "description": "查询菜谱的具体信息,包括菜名\\菜谱操作步骤\\配料和相关图片",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "cpName": {
                              "type": "string",
                              "description": "菜谱名称"
                            },
                            "id": {
                              "type": "string",
                              "description": "菜谱标识"
                            },
                            "largeImg": {
                              "type": "string",
                              "description": "大图url（已无）"
                            },
                            "smallImg": {
                              "type": "string",
                              "description": "小图url（已无）"
                            },
                            "tip": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "type_v1": {
                              "type": "string",
                              "description": "一级分类"
                            },
                            "type_v2": {
                              "type": "string",
                              "description": "二级分类"
                            },
                            "type_v3": {
                              "type": "string",
                              "description": "三级分类"
                            },
                            "type": {
                              "type": "string",
                              "description": "分类信息"
                            },
                            "yl": {
                              "type": "string",
                              "description": "原料/配方"
                            },
                            "steps": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "type": "string",
                                  "description": "步骤内容"
                                },
                                "imgUrl": {
                                  "type": "string",
                                  "description": "步骤图片（已无）"
                                },
                                "orderNum": {
                                  "type": "string",
                                  "description": "步骤序列号"
                                }
                              },
                              "description": "操作步骤"
                            },
                            "flag": {
                              "type": "string",
                              "description": "业务是否调用成功"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1164_4_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "cpName": {
                    "type": "string",
                    "description": "菜谱名称"
                  },
                  "maxResults": {
                    "type": "string",
                    "description": "每页返回的最大结果集,取值在1-50之间"
                  },
                  "page": {
                    "type": "string",
                    "description": "请求页数"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/1164-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 20,
      "x-connect-timeout": 20,
      "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": "string",
                              "description": "查询成功,其他值为失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1164_2_POST",
        "parameters": []
      }
    },
    "/1164-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "菜谱查询",
        "description": "查询菜谱的具体信息,包括菜名\\菜谱操作步骤\\配料和相关图片",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "cpName": {
                              "type": "string",
                              "description": "菜谱名称"
                            },
                            "id": {
                              "type": "string",
                              "description": "菜谱标识"
                            },
                            "largeImg": {
                              "type": "string",
                              "description": "大图url（已无）"
                            },
                            "smallImg": {
                              "type": "string",
                              "description": "小图url（已无）"
                            },
                            "tip": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "type_v1": {
                              "type": "string",
                              "description": "一级分类"
                            },
                            "type_v2": {
                              "type": "string",
                              "description": "二级分类"
                            },
                            "type_v3": {
                              "type": "string",
                              "description": "三级分类"
                            },
                            "type": {
                              "type": "string",
                              "description": "分类信息"
                            },
                            "yl": {
                              "type": "string",
                              "description": "原料/配方"
                            },
                            "steps": {
                              "type": "object",
                              "properties": {
                                "content": {
                                  "type": "string",
                                  "description": "步骤内容"
                                },
                                "imgUrl": {
                                  "type": "string",
                                  "description": "步骤图片（已无）"
                                },
                                "orderNum": {
                                  "type": "string",
                                  "description": "步骤序列号"
                                }
                              },
                              "description": "操作步骤"
                            },
                            "flag": {
                              "type": "string",
                              "description": "业务是否调用成功"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1164_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "description": "菜谱的分类（查询时请使用分类中的一级或二级分类）"
                  },
                  "id": {
                    "type": "string",
                    "description": "菜谱标识"
                  },
                  "cpName": {
                    "type": "string",
                    "description": "菜谱名称"
                  },
                  "maxResults": {
                    "type": "string",
                    "description": "每页返回的最大结果集,取值在1-50之间"
                  },
                  "page": {
                    "type": "string",
                    "description": "请求页数"
                  }
                },
                "required": [
                  "type"
                ]
              }
            }
          }
        }
      }
    }
  },
  "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/1164?tab=book"
  },
  "x-apiCode": "1164",
  "x-is-own": false,
  "x-is-op": true
}