菜谱大全

菜谱大全

接口类型:生活常用
接口状态:正常
描述:万种菜谱,包含主料、辅料,制作流程。可按分类、关键词检索。
  • 1、菜谱搜索
  • 接口地址:https://api.jisuapi.com/recipe/search

    返回格式:JSON

    请求方式:GET POST

    请求示例:https://api.jisuapi.com/recipe/search?keyword=白菜&num=10&appkey=yourappkey

    请求参数:

    参数名称 类型 必填 说明
    keyword string 关键词
    num int 获取数量
    start int 起始条数,默认0

    返回参数:

    参数名称 类型 说明
    num int 菜谱数量
    id int 菜谱ID
    classid int 分类ID
    name string 菜谱名称
    peoplenum string 用餐人数
    preparetime string 烹饪时间
    cookingtime string 烹饪时间
    content string 菜谱说明
    pic string 菜谱图片
    tag string 标签
    material string 材料
    mname string 材料名称
    type int 材料类型 0辅料 1主料
    amount string 数量
    process string 步骤
    pcontent string 步骤内容

    JSON返回实例:

  • 2、菜谱分类
  • 接口地址:https://api.jisuapi.com/recipe/class

    返回格式:JSON

    请求方式:GET

    请求示例:https://api.jisuapi.com/recipe/class?appkey=yourappkey

    请求参数:

    参数名称 类型 必填 说明

    返回参数:

    参数名称 类型 说明
    classid int 分类ID
    name string 菜谱名称
    parentid int 上级ID

    JSON返回实例:

  • 3、按分类检索
  • 接口地址:https://api.jisuapi.com/recipe/byclass

    返回格式:JSON

    请求方式:GET POST

    请求示例:https://api.jisuapi.com/recipe/byclass?classid=2&start=0&num=10&appkey=yourappkey

    请求参数:

    参数名称 类型 必填 说明
    classid int 分类ID
    start int 起始条数,默认0
    num int 获取数量

    返回参数:

    参数名称 类型 说明
    num int 菜谱数量
    id int 菜谱ID
    classid int 分类ID
    name string 菜谱名称
    peoplenum string 用餐人数
    preparetime string 烹饪时间
    cookingtime string 烹饪时间
    content string 菜谱说明
    pic string 菜谱图片
    tag string 标签
    material string 材料
    mname string 材料名称
    type int 材料类型 0辅料 1主料
    amount string 数量
    process string 步骤
    pcontent string 步骤内容

    JSON返回实例:

  • 4、根据ID查询详情
  • 接口地址:https://api.jisuapi.com/recipe/detail

    返回格式:JSON

    请求方式:GET POST

    请求示例:https://api.jisuapi.com/recipe/detail?id=5&appkey=yourappkey

    请求参数:

    参数名称 类型 必填 说明
    id int 菜谱ID

    返回参数:

    参数名称 类型 说明
    id int 菜谱ID
    classid int 分类ID
    name string 菜谱名称
    peoplenum string 用餐人数
    preparetime string 烹饪时间
    cookingtime string 烹饪时间
    content string 菜谱说明
    pic string 菜谱图片
    tag string 标签
    material string 材料
    mname string 材料名称
    type int 材料类型 0辅料 1主料
    amount string 数量
    process string 步骤
    pcontent string 步骤内容

    JSON返回实例: