API文档 >>  获取支持在线预订搜索的最新分类列表

  • API名称: 获取支持在线预订搜索的最新分类列表 Metadata/get_categories_with_online_reservations
  • 描述:获取支持在线预订搜索的最新分类列表
  • 数据格式:JSON/XML
  • 方法:HTTP GET
  • 等级:普通
  • 是否需要用户授权:
  • 请求URL:http://api.dianping.com/v1/metadata/get_categories_with_online_reservations

请求参数

  • 必选参数

    名称 类型 说明
    appkey string App Key,应用的唯一标识
    sign string 请求签名,生成方式见《API请求签名生成文档》
  • 可选参数

    名称 类型 说明
    format string 返回数据格式,可选值为json或xml,如不传入,默认值为json

返回结果

  • 状态字段

    名称 类型 说明
    status string 本次API访问状态,如果成功返回"OK",并返回结果字段,如果失败返回"ERROR",并返回错误说明
  • 结果字段

    名称 类型 说明
    categories list 支持在线预订搜索的最新大分类列表
    subcategories list 支持在线预订搜索的最新大分类下属小分类列表

注意事项

API测试工具

示例请求

http://api.dianping.com/v1/metadata/get_categories_with_online_reservations?appkey=[appkey]&sign=[signature]

示例结果

{
  "status": "OK",
  "categories": [
    {
      "category_name": "美食",
      "subcategories": [
        {
          "category_name": "江浙菜",
          "subcategories": [
            "上海菜",
            "淮扬菜",
            "浙江菜",
            "杭帮菜",
            "南京菜",
            "苏帮菜",
            "宁波菜",
            "绍兴菜",
            "无锡菜",
            "舟山菜",
            "衢州菜",
            "温州菜",
            "苏北土菜"
          ]
        },
        {
          "category_name": "粤菜",
          "subcategories": [
            "潮汕菜",
            "茶餐厅",
            "客家菜",
            "湛江菜"
          ]
        },
        {
          "category_name": "川菜",
          "subcategories": [
            "自贡盐帮菜",
            "江湖菜",
            "酸菜鱼",
            "香锅",
            "川味小吃"
          ]
        },
        {
          "category_name": "湘菜",
          "subcategories": []
        },
        {
          "category_name": "北京菜",
          "subcategories": [
            "北京家常菜",
            "官府菜",
            "烤鸭"
          ]
        },
        {
          "category_name": "东北菜",
          "subcategories": []
        },
        {
          "category_name": "云贵菜",
          "subcategories": [
            "云南菜",
            "贵州菜"
          ]
        },
        {
          "category_name": "湖北菜",
          "subcategories": []
        },
        {
          "category_name": "江西菜",
          "subcategories": []
        },
        {
          "category_name": "山西菜",
          "subcategories": []
        },
        {
          "category_name": "蒙古菜",
          "subcategories": []
        },
        {
          "category_name": "徽菜",
          "subcategories": []
        },
        {
          "category_name": "闽菜",
          "subcategories": []
        },
        {
          "category_name": "鲁菜",
          "subcategories": []
        },
        {
          "category_name": "豫菜",
          "subcategories": []
        },
        {
          "category_name": "贵州菜",
          "subcategories": []
        },
        {
          "category_name": "广西菜",
          "subcategories": []
        },
        {
          "category_name": "台湾菜",
          "subcategories": []
        },
        {
          "category_name": "冀菜",
          "subcategories": []
        },
        {
          "category_name": "陕西菜",
          "subcategories": []
        },
        {
          "category_name": "天津菜",
          "subcategories": []
        },
        {
          "category_name": "青海菜",
          "subcategories": []
        },
        {
          "category_name": "西北菜",
          "subcategories": []
        },
        {
          "category_name": "西藏菜",
          "subcategories": []
        },
        {
          "category_name": "新疆菜",
          "subcategories": []
        },
        {
          "category_name": "东南亚菜",
          "subcategories": [
            "泰国菜",
            "越南菜",
            "印度菜",
            "新加坡菜"
          ]
        },
        {
          "category_name": "西餐",
          "subcategories": [
            "法国菜",
            "意大利菜",
            "西班牙菜",
            "俄罗斯菜",
            "中东菜",
            "西式正餐",
            "西式简餐",
            "巴西烧烤",
            "无国界料理",
            "牛排",
            "比萨"
          ]
        },
        {
          "category_name": "日本",
          "subcategories": []
        },
        {
          "category_name": "韩国",
          "subcategories": []
        },
        {
          "category_name": "火锅",
          "subcategories": []
        },
        {
          "category_name": "清真菜",
          "subcategories": []
        },
        {
          "category_name": "小吃快餐",
          "subcategories": []
        },
        {
          "category_name": "农家菜",
          "subcategories": []
        },
        {
          "category_name": "创意菜",
          "subcategories": []
        },
        {
          "category_name": "海鲜",
          "subcategories": []
        },
        {
          "category_name": "素菜",
          "subcategories": []
        },
        {
          "category_name": "烧烤",
          "subcategories": []
        },
        {
          "category_name": "自助餐",
          "subcategories": []
        },
        {
          "category_name": "面包甜点",
          "subcategories": []
        },
        {
          "category_name": "酒吧",
          "subcategories": []
        }
      ]
    }
  ]
}