MobSDK
  • 轻松实现社会化功能
  • 快速拥有手机短信验证功能
  • 实现Web与App的无缝链接
  • 快速集成推送服务
  • 解决用户快速增长与变现
  • 用数据驱动产品
  • 最完美手游录像方案
  • 实现即时聊天功能
  • Discuz论坛移动化解决方案
  • 更方便的集成第三方支付
  • 快速搭建您的商城系统
  • 零成本搭建APP用户系统
  • 一步生成您的新闻APP
  • 为开发者提供各种数据

菜谱查询 永久免费 支持HTTPS

提供菜谱的查询。

包括三种方式的查询:菜谱标签的查询;根据标签进行菜谱查询;根据菜谱ID进行菜谱查询。

API

  • 菜谱分类标签查询
  • 按标签查询菜谱接口
  • 菜谱查询接口

错误码参照

  • 菜谱分类标签查询
  • 按标签查询菜谱接口
  • 菜谱查询接口

价格套餐

  • 菜谱分类标签查询
  • 按标签查询菜谱接口
  • 菜谱查询接口

菜谱分类标签查询

接口地址:http://apicloud.mob.com/v1/cook/category/query

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/v1/cook/category/query?key=appkey

备注说明:查询菜谱的所有分类。

请求参数:

name type N D value
key string 用户申请的appkey

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明
result string 返回结果集
ctgId string 分类ID
name string 分类描述
parentId string 上层分类ID

JSON返回示例:

                            {
    "msg": "success",
    "result": {
        "categoryInfo": {
            "ctgId": "0010001001",
            "name": "全部菜谱"
        },
        "childs": [
            {
                "categoryInfo": {
                    "ctgId": "0010001002",
                    "name": "按菜品选择菜谱",
                    "parentId": "0010001001"
                },
                "childs": [
                    {
                        "categoryInfo": {
                            "ctgId": "0010001007",
                            "name": "荤菜",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001008",
                            "name": "素菜",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001009",
                            "name": "汤粥",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001010",
                            "name": "西点",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001011",
                            "name": "主食",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001012",
                            "name": "饮品",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001013",
                            "name": "便当",
                            "parentId": "0010001002"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001014",
                            "name": "小吃",
                            "parentId": "0010001002"
                        }
                    }
                ]
            },
            {
                "categoryInfo": {
                    "ctgId": "0010001003",
                    "name": "按工艺选择菜谱",
                    "parentId": "0010001001"
                },
                "childs": [
                    {
                        "categoryInfo": {
                            "ctgId": "0010001015",
                            "name": "红烧",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001016",
                            "name": "炒",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001017",
                            "name": "煎",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001018",
                            "name": "炸",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001019",
                            "name": "焖",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001020",
                            "name": "炖",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001021",
                            "name": "蒸",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001022",
                            "name": "烩",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001023",
                            "name": "熏",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001024",
                            "name": "腌",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001025",
                            "name": "煮",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001026",
                            "name": "炝",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001027",
                            "name": "卤",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001028",
                            "name": "拌",
                            "parentId": "0010001003"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001029",
                            "name": "烤",
                            "parentId": "0010001003"
                        }
                    }
                ]
            },
            {
                "categoryInfo": {
                    "ctgId": "0010001004",
                    "name": "按菜系选择菜谱",
                    "parentId": "0010001001"
                },
                "childs": [
                    {
                        "categoryInfo": {
                            "ctgId": "0010001030",
                            "name": "鲁菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001031",
                            "name": "川菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001032",
                            "name": "粤菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001033",
                            "name": "闽菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001034",
                            "name": "浙菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001035",
                            "name": "湘菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001036",
                            "name": "上海菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001037",
                            "name": "徽菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001038",
                            "name": "京菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001039",
                            "name": "东北菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001040",
                            "name": "西北菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001041",
                            "name": "客家菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001042",
                            "name": "台湾美食",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001043",
                            "name": "泰国菜",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001044",
                            "name": "日本料理",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001045",
                            "name": "韩国料理",
                            "parentId": "0010001004"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001046",
                            "name": "西餐",
                            "parentId": "0010001004"
                        }
                    }
                ]
            },
            {
                "categoryInfo": {
                    "ctgId": "0010001005",
                    "name": "按人群选择菜谱",
                    "parentId": "0010001001"
                },
                "childs": [
                    {
                        "categoryInfo": {
                            "ctgId": "0010001047",
                            "name": "孕妇食谱",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001048",
                            "name": "婴幼食谱",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001049",
                            "name": "儿童食谱",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001050",
                            "name": "懒人食谱",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001051",
                            "name": "宵夜",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001052",
                            "name": "素食",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001053",
                            "name": "产妇食谱",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001054",
                            "name": "二人世界",
                            "parentId": "0010001005"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001055",
                            "name": "下午茶",
                            "parentId": "0010001005"
                        }
                    }
                ]
            },
            {
                "categoryInfo": {
                    "ctgId": "0010001006",
                    "name": "按功能选择菜谱",
                    "parentId": "0010001001"
                },
                "childs": [
                    {
                        "categoryInfo": {
                            "ctgId": "0010001056",
                            "name": "减肥",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001057",
                            "name": "便秘",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001058",
                            "name": "养胃",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001059",
                            "name": "滋阴",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001060",
                            "name": "补阳",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001061",
                            "name": "月经不调",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001062",
                            "name": "美容",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001063",
                            "name": "养生",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001064",
                            "name": "贫血",
                            "parentId": "0010001006"
                        }
                    },
                    {
                        "categoryInfo": {
                            "ctgId": "0010001065",
                            "name": "润肺",
                            "parentId": "0010001006"
                        }
                    }
                ]
            }
        ]
    },
    "retCode": "200"
}
                        

错误代码:

name type N D value
20101 查询不到相关数据

价格套餐:

name type N D value
免费套餐 免费 无限次

按标签查询菜谱接口

接口地址:http://apicloud.mob.com/v1/cook/menu/search

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/v1/cook/menu/search?key=appkey&cid=0010001007&page=1&size=20

备注说明:根据标签ID/菜谱名称查询菜谱详情。

请求参数:

name type N D value
key string 用户申请的appkey
cid string 标签ID(末级分类标签) 0010001007
name string 菜谱名称 红烧肉
page int 起始页(默认1) 1
size int 返回数据条数(默认20) 20

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明