admin管理员组

文章数量:1559087

携程酒店查询api

1) 请求地址

https://hotels.ctrip/domestic/tool/ajaxhotellist.aspx

2) 调用方式:http post

3) 接口描述:

  • 接口描述详情

4) 请求参数:

post参数:

字段名称字段说明类型必填备注
__viewstategenerator stringy-
cityname stringy-
starttime stringy-
deptime stringy-
cityid stringy-
citypy stringy-
citycode stringy-
citylat stringy-
citylng stringy-
positionarea stringy-
positionid stringy-
hotelposition stringy-
keyword stringy-
hotelid stringy-
htlpageview stringy-
hoteltype stringy-
haspkghotel stringy-
requesttravelmoney stringy-
isusergiftcard stringy-
usefg stringy-
hotelequipment stringy-
pricerange stringy-
hotelbrandid stringy-
promotion stringy-
prepay stringy-
iscanreserve stringy-
orderby stringy-
ordertype stringy-
k1 stringy-
k2 stringy-
corppaytype stringy-
viewtype stringy-
checkin stringy-
checkout stringy-
dealsale stringy-
ulogin stringy-
hidtestlat stringy-
allhotelids stringy-

5) 请求返回结果:

{
    "totalmsg": "0 家酒店",
    "hotelamount": 0,
    "sortheader": "",
    "notice": "
 
很抱歉,暂时无法找到符合您要求的酒店。
", "hotellist": "", "attachdistance": "", "paging": "
", "hotelids": "", "landmarks": [], "tuan": { "mandatory": "f", "url": "star=&city=0&startdate=0001-01-01&enddate=0001-01-01&zone=&location=0&pageindex=0" }, "hotelmapstreetjson": {}, "hotelpositionjson": [], "birecord": { "htl_search_result_hotellist": "" }, "hotelmaidiandata": { "key": "hotel_inland_list_basic_online", "value": { "key": "val" } }, "needlogin": "t", "needverify": "t" }

6) 请求返回结果参数说明:

字段名称字段说明类型必填备注
totalmsg stringy-
hotelamount stringy-
sortheader stringy-
notice stringy-
hotellist stringy-
attachdistance stringy-
paging stringy-
hotelids stringy-
landmarks stringy-
tuan stringy-
mandatory stringy-
url stringy-
hotelmapstreetjson stringy-
hotelpositionjson stringy-
birecord stringy-
htl_search_result_hotellist stringy-
hotelmaidiandata stringy-
key stringy-
value stringy-
needlogin stringy-
needverify stringy-

本文标签: