六派数据-菜谱大全
  • ID

    56

  • 收藏

    12

  • 使用

    1

菜谱大全

万种菜谱,包含主料、辅料,制作流程。可按分类、关键词检索。
套餐
100次 10000次 10000次 20000次 50000次
价格

立即申请 收藏数据 首次申请赠送100次免费调用
  • 菜谱检索
  • 菜谱分类
  • 按分类检索
  • 根据ID查询详情

基本信息

  • 接口地址: http://open.6api.net/recipe/search
  • 支持格式: JSON,JSONP
  • 请求方法: GET POST
  • 请求示例: http://open.6api.net/recipe/search?appkey=yourappsecret

请求参数 API在线测试

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

返回参数

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

请求代码 查看代码

  • PHP
  • JAVA
  • Python
require_once("curl.func.php");

$method = "POST";
$url = "http://open.6api.net/recipe/search";
$headers = NULL;
$params = array(  
    "appkey" => "yourappsecret",
    "keyword" => "参数1",
    "num" => "参数2",
    "start" => "0"
);
$result = api_curl($method, $url, $headers, $params);
if ($result) {
    $body = json_decode($result["body"], TRUE);
    $status_code = $body["status"];
    if ($status_code == "200") { 
        var_dump($body["result"]);
    }else
        var_dump($body); 
}else  
    echo "发送请求失败";

JSON返回示例

{
    "status": 200,
    "msg": "OK",
    "result": {
        "total": 50,
        "num": 1,
        "list": [
            {
                "id": 1583,
                "classid": 6,
                "name": "酸菜鱼",
                "peoplenum": "3-4人",
                "preparetime": "10-20分钟",
                "cookingtime": "30分钟-1小时",
                "content": "鱼片鲜嫩爽滑,汤酸香鲜美,微辣不腻,虽为四川民间家常菜,但流传甚广,深受吃货的喜爱。",
                "pic": "https://open.liupai.net/data/caipu/120717_53843.jpg",
                "tag": "中秋节,健脑益智,健脾开胃,儿童,元宵节,孕妇,宴请,家常菜,延缓衰老,快手菜,春节,热菜,煮,美容,美白,老年人,聚会,酸辣",
                "material": [
                    {
                        "mname": "白醋",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "料酒",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "水淀粉",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "胡椒粉",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "鸡蛋清",
                        "type": 0,
                        "amount": "1个"
                    },
                    {
                        "mname": "花椒",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "红泡椒",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "干辣椒",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "黄泡椒",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "葱白",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "盐",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "姜",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "蒜子",
                        "type": 0,
                        "amount": "适量"
                    },
                    {
                        "mname": "鱼酸菜",
                        "type": 1,
                        "amount": "200g"
                    },
                    {
                        "mname": "草鱼",
                        "type": 1,
                        "amount": "1条"
                    }
                ],
                "process": [
                    {
                        "pcontent": "蒜子切粒,姜切片 , 葱白切段 , 泡椒去蒂切节,干辣椒切节,鱼酸菜切碎。",
                        "pic": "https://open.liupai.net/data/caipu/process_095136_24436.jpg"
                    },
                    {
                        "pcontent": "草鱼切断头, 沿着脊椎骨 片下两侧鱼肉 ,再片下鱼肚大刺  。鱼骨、鱼头砍成块 ,鱼肉斜刀切片 。",
                        "pic": "https://open.liupai.net/data/caipu/process_095136_32679.jpg"
                    },
                    {
                        "pcontent": "准备鱼片, 放少许盐 ,撒入胡椒粉 , 淋入一个鸡蛋清、料酒, 抓1分钟至有粘性后 ,再淋入适量水淀粉, 抓匀 ,腌制10分钟。",
                        "pic": "https://open.liupai.net/data/caipu/process_095136_86718.jpg"
                    },
                    {
                        "pcontent": "锅入油, 放入姜、部分葱、蒜子、泡椒爆香。放入鱼酸菜 ,翻炒片刻, 倒入小半锅清水 ,煮开 。再倒入鱼头、鱼骨, 盖上锅盖,  煮10分钟, 捞出。",
                        "pic": "https://open.liupai.net/data/caipu/process_095137_96790.jpg"
                    },
                    {
                        "pcontent": "将鱼头、鱼骨和鱼酸菜 垫底留汤,淋入料酒 ,撒入胡椒粉 ,放少许盐 ,淋入白醋 ,下入鱼片, 煮至变色 ,连汤盛入碗中 ,再放上剩余的葱 。",
                        "pic": "https://open.liupai.net/data/caipu/process_095137_94694.jpg"
                    },
                    {
                        "pcontent": "另起锅,锅入油 ,放入干辣椒、花椒炸香,淋在鱼上即可享用!",
                        "pic": "https://open.liupai.net/data/caipu/process_095137_51616.jpg"
                    }
                ]
            }
        ]
    }
}

    数据信息

  • 今日调用: 23,966  次
  • 客服电话: 010-8639-9970
  • 客服邮箱: kf@ksmsoft.net
  • 售前客服:
  • 售后技术:

菜谱大全问答专区

问答专区

相关资讯

其他推荐