全球酒店详情查看API接口-基于极核数据
此接口可以根據城市名稱查詢全球酒店信息
1.根據城市查酒店
- 接口地址:http://api.data-ranking.com/booking/search
- 支持格式:JSON
- 請求方式:GET
- 請求示例:http://api.data-ranking.com/booking/search?appkey=APPKEY&city=廣州&p=67
- 請求參數:
| 名稱 | 類型 | 必填 | 說明 |
| key | String | 是 | 應用APPKEY |
| city | String | 是 | 城市名稱 |
| p | String | 否 | 頁數,默認返回第一頁 |
- 返回參數:
| 名稱 | 類型 | 說明 |
| count | Int | 酒店數量 |
| total_page | Int | 翻頁總數,每頁返回15條 |
| hotels | Array | 酒店信息列表 |
| photo | String | 酒店圖片 |
| hotel_name | String | 酒店名稱 |
| detail_code | String | 酒店詳情碼 |
| star | String | 酒店星級 |
| address | String | 酒店地址 |
| desc | String | 酒店描述 |
- 返回示例:
| ? | { ??? "status": 1, ??? "msg": "api調用成功", ??? "data": { ??????? "count": "1221", ??????? "total_page": "67", ??????? "hotels": [ ??????????? { ??????????????? "photo": "http://r-cc.bstatic.com/images/hotel/square200/608/60887228.jpg", ??????????????? "hotel_name": "星河灣半島酒店(原廣州星河灣?海怡半島酒店)", ??????????????? "detail_code": "c9O3tMj39oYqpSFL6 gTlLKRR0tfbPusVdd8IvV 0ffR8klCUyFw8UPhOaKOxL0XluEJA5d67ht7UuiJXU/oEYdlWxFXVvHL08mPGbS8Re yUsRgYHjG5p9xOqFJq5fAwmMTn0YWVwJC0nfVRk3CMf8 r3btWB8DvsMtjBr/sZi8SKD9ZwaxcdokMPpjVj8OnFN32DiNYAieYdeJT1KK36RsbtmmYDvyugtRHR0TipuynaiJP44Ktd2y/tCRazq1XUEEk0khru6rszakiev1PE2LLGCYivrxm4j3sGrQhCci4R0/J8Ag2H0QUBxVZbz4sPlTVfHVM8Yjzxon9vuIiMh6NufCs4HPxS/MKA3TxgRk GkHjTED 8yfKxuFb1oZEywfXUlsgNEjAnMMgrD1/QV73qKKeC85O/mGisEIhBYX14WUIKyS50RItnWdS3W7rgr/n4nyUV py0Zi8EEE0u9bR8z9AfIkE91MCmwMm5ZzCo2lxp2idBiCIb9Fryi8", ??????????????? "star": "", ??????????????? "address": "番禺區,廣州", ??????????????? "desc": "星河灣半島酒店享有珠江的景致,毗鄰沙滘島的番禺大橋,提供精品住宿、網絡連接、2個餐飲場所和2個游泳池。..." ??????????? }, ??????????? { ??????????????? "photo": "http://r-cc.bstatic.com/images/hotel/square200/168/16805922.jpg", ??????????????? "hotel_name": "廣州正佳金殿公寓", ??????????????? "detail_code": "xYiF96wtOrZcYpM8EoYDk7CVkQD3puCJZI8QnyxTegelzbWaQmiSeki8zwto R04UIFk3MAavn8vECRd3nHtBWDhMXFF14qF9J2TNbBPFlEzYtM96H6J64McSISdb41WC1O2JYVukYe5GVsPRYiuZmSPyi8AnDlmylHq/BvdJTngKtggYZeQlCK8W2zVmflyWEOGHJO8p5mjxPl34UVmK 9 zljQqPSN Z6s2IA7exSjV7mkGmDCmu9ytvz406QCJ3TTSlodEgnt461/X4/iHFWiGQJBF0dXNLEw0B9rNVuwKaEM8/lu6CIgpkud2d06te8Kurxjom7FW3T7H9Iv9rkHG1fnaCarBTVTrZHa30umhJJ8VJ0cPkgn ZXDQ4DJuDTEC5Lf79i4kLD8BTDCVz2s8gYXcIrQx8ye9wftEWRTfbD74YHisFpFcO65DLulRmUpkHWWd5AjCwsyHc25QSP3QPpxuK8s3 1yOX6 BXk3C0P6ye4AN3Dvl7gOLU2I", ??????????????? "star": "這家住宿參與了我們的首選住宿項目。首選住宿以優惠的房價提供卓越的服務及極高的性價比。住宿需滿足特定資質條件,并綜合曾入住客人的反饋方有資格參加。", ??????????????? "address": "天河區,廣州【廣州中央商務區】", ??????????????? "desc": "廣州正佳萬豪金殿公寓位于正佳廣場的第25層至41層,距離天河城購物中心和體育西路地鐵站有5分鐘步行路程。..." ??????????? }, ??????????? { ??????????????? "photo": "http://r-cc.bstatic.com/images/hotel/square200/115/11562059.jpg", ??????????????? "hotel_name": "星驛國際公寓(廣州昌崗店)", ??????????????? "detail_code": "aaHc4 1sXev1Buy3i3FHE3E5ykHtxmGbIwpbjaw2bL/SRz9afYsJggcR1cXM1YK9azqizD5MQA3BFYk6Z4hAsh7EZyc2FN8gbuF7srLtSa3PlEsZpGf8pP g509fnaRCZAWaNxXoqKRfBpKe4IlSkqMuI7v7oQtfv5F9gO3R2NL/XSBfmWrvm692cDwu80A8vpcDiBqNhsLMtSVyZM0j9NgnBoLMchhEkIXUtYHnj5oXrEvbe/YCgx6VOadD4Li0kbPbFKJJZg1M38C7/XwTfG9h4TU2QLK1QkEz90v4BsfgT42uUW5UceG6jsrtOfBbr V dI59D0l3gFHE7uSO7kZ/Z6kTKGXmuFlBERRbUNiREowAQh8si0D0Mg8IGTG8qY BTwQ52hnwYIDlzL2get7TJOmmokE7Q9MyZuiLF7YEqcD rrzgSrGbS/YlTShAQ/SqPHfQZV5/b/5qmjykQQ==", ??????????????? "star": "這家住宿參與了我們的首選住宿項目。首選住宿以優惠的房價提供卓越的服務及極高的性價比。住宿需滿足特定資質條件,并綜合曾入住客人的反饋方有資格參加。", ??????????????? "address": "海珠區,廣州–靠近地鐵站", ??????????????? "desc": "廣州星驛國際酒店公寓距離琶洲展館有10分鐘車程。昌崗地鐵站的出口F(2和8號線)就在酒店的負二層。酒店設有帶小廚房的寬敞客房、免費無線網絡連接和內部免費停車場。..." ??????????? }, ??????????? ...... ??????? ] ??? } } |
?
?
2.酒店詳情查看
- 接口地址:http://api.data-ranking.com/booking/detail
- 支持格式:JSON
- 請求方式:POST
- 請求示例:http://api.data-ranking.com/booking/detail
請求參數:
| 名稱 | 類型 | 必填 | 說明 |
| key | String | 是 | 應用APPKEY |
| code | String | 是 | 酒店詳情碼 |
返回參數:
| 名稱 | 類型 | 說明 |
| hotel_name | String | 酒店名稱 |
| hotel_address | String | 酒店地址 |
| hotel_star | String | 酒店星級 |
| hotel_score | String | 酒店綜合評分 |
| hotel_pictures | Array | 酒店圖片展示 |
| hotel_description | String | 酒店描述 |
| room_type | Array | 房間類型 |
| facility | Array | 便利設施 |
| checkin | String | 簽到時間 |
| checkout | String | 退房時間 |
返回示例:
| ? | { ??? "status": 1, ??? "msg": "api調用成功", ??? "data": { ??????? "hotel_name": "廣州圣豐索菲特大酒店", ??????? "hotel_address": "廣州, 天河區, 廣州大道中988號", ??????? "hotel_star": "此評級是根據該住宿的房價、設施和服務綜合評定而出,僅供參考。", ??????? "hotel_score": "8.3", ??????? "hotel_pictures": [ ??????????? "http://q-cc.bstatic.com/images/hotel/max400/787/78723403.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820006.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116633.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116634.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/238/23821112.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116629.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116628.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/441/44117712.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/441/44116624.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116579.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/391/3910592.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116631.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116626.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/441/44116632.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44117680.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/126/12698096.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/126/12698103.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/126/12698009.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/441/44116622.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/238/23820906.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/126/12697989.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820258.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820011.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/441/44116623.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/441/44117679.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820564.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820162.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820712.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/238/23820864.jpg", ??????? ????"http://q-cc.bstatic.com/images/hotel/max400/238/23820803.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820981.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23821123.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/126/12698556.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23820925.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/238/23820936.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23821212.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/238/23821226.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23821434.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/126/12697894.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23821502.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/238/23821142.jpg", ??????????? "http://q-cc.bstatic.com/images/hotel/max400/704/70443688.jpg", ??????????? "http://r-cc.bstatic.com/images/hotel/max400/704/70443691.jpg" ??????? ], ??????? "hotel_description": " 地處廣州中心位置 – 在地圖上查看住宿周邊 廣州精選推薦之一 廣州圣豐索菲特大酒店高高聳立在天河商業區,提供帶40英寸平板電視和iPod基座的高雅客房。酒店的五星級設施包括一個獲獎的spa和一個24小時健身中心,并提供覆蓋各處的免費WiFi。 廣州圣豐索菲特大酒店距離城市的標志性建筑中信廣場不到1公里,距離廣州火車東站有5分鐘的車程,距離廣州白云機場有45分鐘的車程。 獨具風格的客房擁有寬敞的布局,配有音響系統和舒適的扶手椅。客房內的高檔設施包括免費寬帶網絡連接和一間帶花灑淋浴設施的寬敞浴室。 客人可以在圣豐索菲特大酒店配有水下音樂管道的室內游泳池內悠閑地游泳,也可以泡在熱水浴池內放松身心。為了方便客人,工作人員可提供旅行和禮賓服務。 客人可以在2 ON 988餐廳享用豐盛的國際自助餐,同時觀賞5個開放式廚房的表演。Le Grill餐廳供應上等的牛排,Le Chinois餐廳供應中國特色菜肴。 \r\n 旅友們喜愛天河區的理由:美食 、高級美食 和商務出行 。 ", ??????? "room_type": [ ??????????? { ??????????????? "room_type": "高級大床房", ??????????????? "room_description": "寬敞的巴黎風格客房俯瞰著風景秀麗的天河天際。所有客房都配有40英寸的平面電視、DVD播放機、ipod基座和筆記本電腦大小的保險箱。浴室設有花灑和嵌入鏡中的電視。", ??????????????? "room_person": "標準入住: 2" ?? ?????????}, ??????????? { ??????????????? "room_type": "高級雙床房", ??????????????? "room_description": "寬敞的巴黎風格客房俯瞰著風景秀麗的天河天際。所有客房都配有40英寸的平面電視、DVD播放機、ipod基座和筆記本電腦大小的保險箱。浴室設有花灑和嵌入鏡中的電視。", ??????????????? "room_person": "標準入住: 2" ??????????? }, ??????????? { ? ??????????????"room_type": "豪華大床房", ??????????????? "room_description": "可供2位客人入住的寬敞客房。", ??????????????? "room_person": "標準入住: 2" ??????????? }, ??????????? { ??????????????? "room_type": "索菲特會所豪華客房", ??????????????? "room_description": "享有行政樓層優待,包括私人登記入住/退房服務以及俱樂部的使用。 客人可使用Millesime俱樂部: - 免費早餐 - 下午茶 - 晚間品酒 - 每天使用一小時會議室。", ??????????????? "room_person": "最多成人人數: 2最多兒童人數: 1 (12歲以下)" ??????????? }, ??????????? { ??????????????? "room_type": "索菲特高級會所大床房", ??????????????? "room_description": "享有行政樓層優待,包括私人登記入住/退房服務以及俱樂部的使用。 客人可使用Millesime俱樂部: - 免費早餐 - 下午茶 - 晚間品酒 - 每天使用一小時會議室。", ??????????????? "room_person": "最多成人人數: 2最多兒童人數: 1 (12歲以下)" ??????????? }, ??????????? { ??????????????? "room_type": "華麗套房 - 可使用行政酒廊", ??????????????? "room_description": "寬敞的套房設有獨立的起居室,享有包括私人登記入住及退房和俱樂部使用的行政樓層優惠。 客人可以享受Club Millesime: - 免費早餐 - 下午茶 - 晚間品酒 - 每天使用一小時會議室。", ??????????????? "room_person": "最多成人人數: 2最多兒童人數: 1 (12歲以下)" ??????????? }, ??????????? { ??????????????? "room_type": "索菲特套房 - 可使用行政酒廊", ??????????????? "room_description": "設有獨立的客廳和行政樓層優惠,包括私人登記入住及退房和俱樂部的使用。 客人可以享受Club Millesime: - 免費早餐 - 下午茶 - 晚間品酒 - 每天使用一小時會議室。", ??????????????? "room_person": "最多成人人數: 2最多兒童人數: 1 (12歲以下)" ??????????? } ??????? ], ??????? "facility": { ??????????? "寵物": [ ??????????????? "不允許攜帶寵物入住。" ? ??????????], ??????????? "活動設施": [ ??????????????? "室內游泳池(全年開放)", ??????????????? "熱水浴池/按摩浴缸", ??????????????? "乒乓球", ??????????????? "按摩", ??????????????? "Spa及健康中心", ??????????????? "游戲室", ??????????????? "健身中心" ??????????? ], ??????????? "餐飲服務": [ ??????????????? "小吃吧", ??????????????? "自助餐廳", ??????????????? "在客房內享用早餐", ??????????????? "酒吧" ??????????? ], ??????????? "網絡": [ ??????????????? "免費! 住宿方于各處提供WiFi(免費)。" ??????????? ], ??????????? "停車場": [ ??????????????? "免費! 無需預訂:住宿場所可提供私人停車設施(免費)。" ??????????? ], ??????????? "前臺服務": [ ??????????????? "辦理私人登記入住/退房手續", ??????????????? "禮賓服務", ??????????????? "自動提款機(酒店內部)", ??????????????? "行李寄存", ??????????????? "票務服務", ??????????????? "旅游咨詢臺", ??????????????? "外幣兌換", ??????????????? "快速辦理入住/退房手續", ??????????????? "24小時前臺" ??????????? ], ??????????? "清潔服務": [ ??????????????? "每日清潔服務", ??????????????? "熨衣服務", ??????????????? "干洗", ??????????????? "洗衣" ??????????? ], ??????????? "商務設施": [ ??????????????? "傳真/復印", ??????????????? "商務中心", ?????????????? ?"會議/宴會設施" ??????????? ], ??????????? "綜合設施": [ ??????????????? "機場班車(額外收費)", ??????????????? "吸煙區", ??????????????? "空調", ??????????????? "租車服務", ??????????????? "保險箱", ??????????????? "電梯", ??????????????? "家庭間", ??????????????? "理發/美容中心", ??????????????? "適合殘疾人士的設施", ??????????????? "禁煙客房", ??????????????? "報紙", ??????????????? "客房服務" ??????????? ], ??????????? "使用的語言": [ ??????????????? "中文", ??????????????? "俄語", ??????????????? "荷蘭語", ??????????????? "法語", ??????????????? "英語" ??????????? ] ??????? }, ??????? "checkin": " 從14:00時 ", ??????? "chenkout": " 12:00時之前 " ??? } } |
?
?
轉載于:https://www.cnblogs.com/Drogon-data/p/5911665.html
總結
以上是生活随笔為你收集整理的全球酒店详情查看API接口-基于极核数据的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux系统编程40:多线程之基于环形
- 下一篇: .windbg-k*实例分析(查看调用栈