文档中心 > API类目 > 欢行开发平台API

qimen.alibaba.happytrip.hotel.list.data.get (酒店静态数据列表获取)

获取供应商酒店静态信息列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
city_key String 必须 1 城市code或者城市id
city_name String 可选 北京 城市名称
page_no Number 可选 1 页码
page_size Number 可选 20 每页条目数量
checkin String 可选 2018-11-11 入住日期
checkout String 可选 2018-11-12 离店日期
search_key String 可选 abcd 上一页的offset标识

响应参数

名称 类型 示例值 描述
errno String 1 错误码,0为通知成功,非0为通知失败
data Data 返回实体
  • hotel_list
  • HotelInfo []
  • 酒店列表
  • └ region
  • String
  • 东城区
  • 行政区名称
  • └ city_name
  • String
  • 北京
  • 城市名称
  • └ phone
  • String
  • 010-1122334
  • 电话
  • └ region_id
  • String
  • 22
  • 行政区id
  • └ lng
  • String
  • 120.22223344
  • 高德经度
  • └ name
  • String
  • 丽晶大宾馆
  • 酒店名称
  • └ city_code
  • String
  • 11223
  • 城市id
  • └ area
  • Number
  • 23334
  • 平米数
  • └ hotel_desc
  • String
  • 丽晶大酒店对面的丽晶大宾馆
  • 中文酒店说明
  • └ lat
  • String
  • 31.22333444
  • 高德纬度
  • └ renovation_year
  • String
  • 2018
  • 最近装修年份
  • └ construction_year
  • String
  • 2017
  • 开业年份
  • └ business_district_name
  • String
  • 望京
  • 商圈
  • └ comments_count
  • Number
  • 200
  • 评论数
  • └ hotel_key
  • String
  • 1122334
  • 酒店id
  • └ fax
  • String
  • 010-1122233
  • 传真
  • └ business_district_id
  • String
  • 1
  • 商圈id
  • └ star
  • Number
  • 3
  • 星级
  • └ credit_cards
  • String []
  • 支持信用卡名称列表
  • └ avg_rating
  • Number
  • 4.5
  • 平均评分
  • └ floor
  • Number
  • 10
  • 楼层数
  • └ address
  • String
  • 马路对面
  • 地址
  • └ email
  • String
  • leeizhang@liyun.com
  • 邮箱
  • └ postal_code
  • String
  • 068450
  • 邮编
  • distance_desc
  • DistanceInfo []
  • 距离信息详情列表
  • └ type
  • String
  • city
  • 不限于如下,city("城市中心"), trainStation("最近的车站"), airport("最近的机场"), highway("最近的高速公路"),
  • └ numerical
  • String
  • 1000
  • 单位米
  • └ desc
  • String
  • 距离城市中心100米
  • type和numerical可空,详细距离说明使用desc
  • └ type_name
  • String
  • 上海
  • type为city,type_name为城市名称
  • └ hotel_desc_en
  • String
  • _the ritz hotel across from the regent hotel
  • 酒店英文说明
  • └ front_img
  • String
  • http://img.com/112233.png
  • 头图url
  • └ agreement
  • Boolean
  • true
  • 是否协议酒店
  • └ search_key
  • String
  • aabbcc
  • 上一页offset标识
errmsg String success 错误信息描述

请求示例

{"city_key":"1","city_name":"北京","checkin":"2018-11-11","search_key":"abcd","page_no":1,"checkout":"2018-11-12","page_size":20}

响应示例

{
    "errno":"1",
    "data":{
        "hotel_list":[
            {
                    "region":"东城区",
                    "city_name":"北京",
                    "phone":"010-1122334",
                    "region_id":"22",
                    "lng":"120.22223344",
                    "name":"丽晶大宾馆",
                    "city_code":"11223",
                    "area":23334,
                    "hotel_desc":"丽晶大酒店对面的丽晶大宾馆",
                    "lat":"31.22333444",
                    "renovation_year":"2018",
                    "construction_year":"2017",
                    "business_district_name":"望京",
                    "comments_count":200,
                    "hotel_key":"1122334",
                    "fax":"010-1122233",
                    "business_district_id":"1",
                    "star":3,
                    "avg_rating":4.5,
                    "floor":10,
                    "address":"马路对面",
                    "email":"leeizhang@liyun.com",
                    "postal_code":"068450",
                    "distance_desc":[
                        {
                                "type":"city",
                                "numerical":"1000",
                                "desc":"距离城市中心100米",
                                "type_name":"上海"
                        }
                    ],
                    "hotel_desc_en":"_the ritz hotel across from the regent hotel",
                    "front_img":"http:\/\/img.com\/112233.png",
                    "agreement":true
            }
        ],
        "search_key":"aabbcc"
    },
    "errmsg":"success"
}

验签示例


                                

错误码解释

错误码 错误描述 解决方案

API工具

FAQ

返回
顶部