预订酒店 API

API ID 15367

全球酒店数据:目的地搜索、按日期和住客人数搜索酒店并使用筛选条件和排序方式、包含可预订客房及价格的酒店详情,以及住客评价

API 文档

端点

请求
返回与文本查询匹配的目的地:城市、地区、区、地标、机场和单体酒店,每个目的地均包含其目的地 ID 和类型、副标题(地区、国家)、国家代码、坐标、酒店数量以及缩略图。目的地 ID 和类型是 /hotels/search 端点所需的「dest_id」和「dest_type」值
Endpoint ID: 41122
GET https://zylalabs.com/api/15367/booking+hotels+api/41122/search+destinations
输入参数

搜索目的地 — 端点功能

对象 描述
query 必需 Destination text to search for (e.g. "Paris", "Manhattan", "Heathrow").
limit 可选 Optional number of destinations to return, from 1 to 20 (defaults to 10).

剩余免费测试请求:3 / 3。


输入参数

query
limit
API 示例响应
JSON
{
    "query": "Paris",
    "locations": [
        {
            "dest_id": "-1456928",
            "dest_type": "city",
            "dest_subtype": null,
            "name": "Paris",
            "label": "Ile de France, France",
            "label_components": [
                {
                    "type": "city",
                    "name": "Paris"
                },
                {
                    "type": "region",
                    "name": "Ile de France"
                },
                {
                    "type": "country",
                    "name": "France"
                }
            ],
            "country_code": "fr",
            "latitude": 48.85668182373047,
            "longitude": 2.3514764308929443,
            "hotel_count": 27083,
            "image_url": "https://r-xx.bstatic.com/xdata/images/city/square150/977239.jpg?k=c2409c69613bc168e54e0c4930e1436a0f378d7fe40d9c94f4a03595e0f423a8&o="
        },
        {
            "dest_id": "2281",
            "dest_type": "district",
            "dest_subtype": null,
            "name": "Paris City Center",
            "label": "Paris, Ile de France, France",
            "label_components": [
                {
                    "type": "district",
                    "name": "Paris City Center"
                },
                {
                    "type": "city",
                    "name": "Paris"
                },
                {
                    "type": "region",
                    "name": "Ile de France"
                },
                {
                    "type": "country",
                    "name": "France"
                }
            ],
            "country_code": "fr",
            "latitude": 48.858070373535156,
            "longitude": 2.330132007598877,
            "hotel_count": 5577,
            "image_url": "https://r-xx.bstatic.com/xdata/images/district/square150/56855.jpg?k=3fde2490119c56a4ea9c4e3b6c64eb0bc0c47936f2378a82bb1cdbc3a88b9326&o="
        },
        {
            "dest_id": "8",
            "dest_type": "airport",
            "dest_subtype": null,
            "name": "Paris - Charles de Gaulle Airport",
            "label": "Paris, Ile de France, France",
            "label_components": [
                {
                    "type": "airport",
                    "name": "Paris - Charles de Gaulle Airport"
                },
                {
                    "type": "city",
                    "name": "Paris"
                },
                {
                    "type": "region",
                    "name": "Ile de France"
                },
                {
                    "type": "country",
                    "name": "France"
                }
            ],
            "country_code": "fr",
            "latitude": 49.00709915161133,
            "longitude": 2.5684399604797363,
            "hotel_count": 34,
            "image_url": "https://q-xx.bstatic.com/static/img/plane-100.jpg"
        },
        {
            "dest_id": "1569",
            "dest_type": "region",
            "dest_subtype": "free_region",
            "name": "Disneyland Paris",
            "label": "France",
            "label_components": [
                {
                    "type": "region",
                    "name": "Disneyland Paris"
                },
                {
                    "type": "country",
                    "name": "France"
                }
            ],
            "country_code": "fr",
            "latitude": 48.8632698059082,
            "longitude": 2.7537295818328857,
            "hotel_count": 2908,
            "image_url": "https://q-xx.bstatic.com/xdata/images/region/square60/66318.jpg?k=138e5713fa41057ef7c2281eb9b5fc9180e49cd48163fdf49c9f125b44e6e2e1&o="
        },
        {
            "dest_id": "938",
            "dest_type": "landmark",
            "dest_subtype": null,
            "name": "Paris-Gare-de-Lyon",
            "label": "Paris, Ile de France, France",
            "label_components": [
                {
                    "type": "landmark",
                    "name": "Paris-Gare-de-Lyon"
                },
                {
                    "type": "city",
                    "name": "Paris"
                },
                {
                    "type": "region",
                    "name": "Ile de France"
                },
                {
                    "type": "country",
                    "name": "France"
                }
            ],
            "country_code": "fr",
            "latitude": 48.84479522705078,
            "longitude": 2.373927116394043,
            "hotel_count": 71,
            "image_url": "https://r-xx.bstatic.com/xdata/images/landmark/square60/280789.jpg?k=9e1b92b67d97fc9e90055d3d2158f24bd4eb8ec378d6d0b6f79687ff6fd71d57&o="
        }
    ]
}
搜索目的地 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15367/booking+hotels+api/41122/search+destinations?query=Paris&limit=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回目的地内或某个地点周边可供入住的酒店,包括每家酒店的 ID、名称、住宿类型、城市、国家、坐标、星级、住客评分和评价数量、入住期间的最低总价、货币、免费取消和含早餐标记、Genius 折扣以及一张照片。响应还包含匹配结果总数、排序选项以及适用于该搜索的筛选选项(含其 ID 和数量),这些选项可用于「sort」和「filters」参数
Endpoint ID: 41123
GET https://zylalabs.com/api/15367/booking+hotels+api/41123/search+hotels
输入参数

搜索酒店 — 端点功能

对象 描述
dest_id 可选 Destination id from the /locations/search endpoint (e.g. "-1456928"). Provide this with "dest_type", or provide "latitude" and "longitude" instead.
dest_type 可选 Destination type that goes with "dest_id": one of "city", "region", "district", "landmark", "airport", "hotel". The /locations/search endpoint returns the type for each destination.
latitude 可选 Latitude of a point to search around (used with "longitude" instead of "dest_id").
longitude 可选 Longitude of a point to search around (used with "latitude").
radius 可选 Optional search radius in kilometres (1 to 100) when searching around a point.
arrival_date 必需 Check-in date in YYYY-MM-DD format.
departure_date 必需 Check-out date in YYYY-MM-DD format (after arrival_date).
adults 可选 Number of adult guests, from 1 to 30 (defaults to 2).
rooms 可选 Number of rooms, from 1 to 30 (defaults to 1).
children_ages 可选 Optional comma-separated ages of children, each 0 to 17 (e.g. "4,9").
sort 可选 Optional sort order: one of "popularity", "price", "bayesian_review_score", "class_descending", "class_ascending", "distance". The response lists the sort options valid for the search.
filters 可选 Optional comma-separated filter option ids from the search response (e.g. "class::5,mealplan::breakfast_included").
currency 可选 Optional 3-letter ISO currency code for the prices (e.g. "EUR").
language 可选 Optional language code such as "en-us", "fr" or "de" (defaults to "en-us").
rows 可选 Number of hotels per page, from 1 to 100 (defaults to 25).
offset 可选 Result offset for pagination, from 0 to 1000 (defaults to 0).

剩余免费测试请求:3 / 3。


输入参数

dest_id
dest_type
latitude
longitude
radius
arrival_date
departure_date
adults
rooms
children_ages
sort
filters
currency
language
rows
offset
API 示例响应
JSON
{
    "total_count": 125,
    "unfiltered_count": 13134,
    "offset": 0,
    "currency": "EUR",
    "hotels": [
        {
            "hotel_id": 13438608,
            "name": "PARIS AUTHENTIC HOUSE Métro 7 Pierre et Marie Curie",
            "accommodation_type": "Vacation Homes",
            "city": "Ivry-sur-Seine",
            "country_code": "fr",
            "latitude": 48.8185126863657,
            "longitude": 2.37064486187903,
            "class": 5,
            "class_is_estimated": false,
            "review_score": null,
            "review_score_word": null,
            "review_count": null,
            "price": 555,
            "currency": "EUR",
            "is_free_cancellable": false,
            "breakfast_included": false,
            "genius_discount_percentage": 0,
            "is_sold_out": false,
            "photo_url": "https://cf.bstatic.com/xdata/images/hotel/square60/938738617.jpg?k=c8d47218706ed27d2240667d98e93ae8e7df279e2b5c071fd1fabf220f7bd2dc&o="
        },
        {
            "hotel_id": 240281,
            "name": "Hotel Square",
            "accommodation_type": "Hotels",
            "city": "Paris",
            "country_code": "fr",
            "latitude": 48.8515060192913,
            "longitude": 2.27786600589752,
            "class": 5,
            "class_is_estimated": false,
            "review_score": 8,
            "review_score_word": "Very Good",
            "review_count": 584,
            "price": 815.4,
            "currency": "EUR",
            "is_free_cancellable": false,
            "breakfast_included": false,
            "genius_discount_percentage": 0,
            "is_sold_out": false,
            "photo_url": "https://cf.bstatic.com/xdata/images/hotel/square60/170894966.jpg?k=305067b1cabc887ab48d483999a80616f9eabce258fa71c1c7e8c95a01307613&o="
        },
        {
            "hotel_id": 15932026,
            "name": "Spacieux appartement à Paris – 10 voyageurs",
            "accommodation_type": "Apartments",
            "city": "Paris",
            "country_code": "fr",
            "latitude": 48.8182247,
            "longitude": 2.3629462,
            "class": 5,
            "class_is_estimated": false,
            "review_score": 5,
            "review_score_word": "Fair",
            "review_count": 1,
            "price": 826.4314,
            "currency": "EUR",
            "is_free_cancellable": false,
            "breakfast_included": false,
            "genius_discount_percentage": 0,
            "is_sold_out": false,
            "photo_url": "https://cf.bstatic.com/xdata/images/hotel/square60/886992218.jpg?k=6dd4a132db7321cc5e644f278988fa17fca4769aedd9f0885488d1e59834fbf1&o="
        },
        {
            "hotel_id": 180556,
            "name": "Maison Albar - Le Diamond",
            "accommodation_type": "Hotels",
            "city": "Paris",
            "country_code": "fr",
            "latitude": 48.8752611643926,
            "longitude": 2.32339516282082,
            "class": 5,
            "class_is_estimated": false,
            "review_score": 8.4,
            "review_score_word": "Very Good",
            "review_count": 928,
            "price": 868.5,
            "currency": "EUR",
            "is_free_cancellable": false,
            "breakfast_included": false,
            "genius_discount_percentage": 0,
            "is_sold_out": false,
            "photo_url": "https://cf.bstatic.com/xdata/images/hotel/square60/703024916.jpg?k=74312f9f94e9a029382d832f3df1a69ad78b5bd408673d756f726c8d5838f424&o="
        },
        {
            "hotel_id": 9328241,
            "name": "PARIS AUTHENTIC HOUSE Entier 1920's House, For Groups, Métro Line 7 station Pierre et Marie Curie, Porte d'Ivry",
            "accommodation_type": "Vacation Homes",
            "city": "Ivry-sur-Seine",
            "country_code": "fr",
            "latitude": 48.8184929902766,
            "longitude": 2.37044629302016,
            "class": 5,
            "class_is_estimated": false,
            "review_score": 7.9,
            "review_score_word": "Good",
            "review_count": 74,
            "price": 940.9555,
            "currency": "EUR",
            "is_free_cancellable": false,
            "breakfast_included": false,
            "genius_discount_percentage": 0,
            "is_sold_out": false,
            "photo_url": "https://cf.bstatic.com/xdata/images/hotel/square60/938737344.jpg?k=aa723a7b1155b5ce1760110c6d693de2c7c2a58dfb5d39768a04862b08e249ba&o="
        }
    ],
    "sort_options": [
        {
            "value": "distance",
            "label": "Distance From Downtown"
        },
        {
            "value": "popularity",
            "label": "Popularity"
        },
        {
            "value": "class_descending",
            "label": "Stars (5 to 0)"
        },
        {
            "value": "class_ascending",
            "label": "Stars (0 to 5)"
        },
        {
            "value": "bayesian_review_score",
            "label": "Guest Review Score"
        },
        {
            "value": "price",
            "label": "Price (low to high)"
        }
    ],
    "filters": [
        {
            "id": "previous",
            "title": "Your Previous Filters",
            "options": [
                {
                    "id": "class::5",
                    "name": "5 stars",
                    "count": 125
                }
            ]
        },
        {
            "id": "popular",
            "title": "Popular Filters",
            "options": [
                {
                    "id": "property_type::204",
                    "name": "Hotels",
                    "count": 117
                },
                {
                    "id": "free_cancellation::1",
                    "name": "Free cancellation",
                    "count": 120
                },
                {
                    "id": "reviewscorebuckets::80",
                    "name": "Very Good: 8+",
                    "count": 116
                },
                {
                    "id": "mealplan::breakfast_included",
                    "name": "Breakfast included",
                    "count": 98
                },
                {
                    "id": "facility::2",
                    "name": "Parking",
                    "count": 83
                },
                {
                    "id": "property_type::201",
                    "name": "Apartments",
                    "count": 11
                },
                {
                    "id": "facility::4",
                    "name": "Pet friendly",
                    "count": 99
                },
                {
                    "id": "room_facility::38",
                    "name": "Private bathroom",
                    "count": 119
                }
            ]
        },
        {
            "id": "free_cancellation",
            "title": "Free cancellation",
            "options": [
                {
                    "id": "free_cancellation::1",
                    "name": "Free cancellation",
                    "count": 120
                }
            ]
        },
        {
            "id": "reviewscorebuckets",
            "title": "Review Score",
            "options": [
                {
                    "id": "reviewscorebuckets::50",
                    "name": "Fair: 5+",
                    "count": 125
                },
                {
                    "id": "reviewscorebuckets::60",
                    "name": "Pleasant: 6+",
                    "count": 124
                },
                {
                    "id": "reviewscorebuckets::70",
                    "name": "Good: 7+",
                    "count": 123
                },
                {
                    "id": "reviewscorebuckets::80",
                    "name": "Very Good: 8+",
                    "count": 116
                },
                {
                    "id": "reviewscorebuckets::90",
                    "name": "Wonderful: 9+",
                    "count": 56
                }
            ]
        }
    ]
}
搜索酒店 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15367/booking+hotels+api/41123/search+hotels?dest_id=-1456928&dest_type=city&latitude=48.8566&longitude=2.3522&radius=5&arrival_date=2026-12-10&departure_date=2026-12-12&adults=2&rooms=1&children_ages=4,9&sort=price&filters=class::5¤cy=EUR&language=en-us&rows=25&offset=Optional' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回酒店信息,包括名称、地址、坐标、时区、描述、所讲语言、距市中心的距离以及入住期间可预订的客房。每间客房包含名称、价格、最多入住人数、卧室和浴室数量、面积、床型配置、餐饮方案、可退款标记和取消期限、Genius 折扣以及客房照片
Endpoint ID: 41124
GET https://zylalabs.com/api/15367/booking+hotels+api/41124/hotel+details+and+rooms
输入参数

酒店详情和客房 — 端点功能

对象 描述
hotel_id 必需 Hotel id (e.g. "51086"). Use the /hotels/search endpoint to list valid values.
arrival_date 必需 Check-in date in YYYY-MM-DD format.
departure_date 必需 Check-out date in YYYY-MM-DD format (after arrival_date).
adults 可选 Number of adult guests, from 1 to 30 (defaults to 2).
rooms 可选 Number of rooms, from 1 to 30 (defaults to 1).
children_ages 可选 Optional comma-separated ages of children, each 0 to 17 (e.g. "4,9").
currency 可选 Optional 3-letter ISO currency code for the prices (e.g. "EUR").
language 可选 Optional language code such as "en-us", "fr" or "de" (defaults to "en-us").

剩余免费测试请求:3 / 3。


输入参数

hotel_id
arrival_date
departure_date
adults
rooms
children_ages
currency
language
API 示例响应
JSON
{
    "hotel_id": 51086,
    "name": "Mercure Tour Eiffel Grenelle",
    "address": "64, Boulevard de Grenelle, 15th arr., 75015 Paris, France",
    "latitude": 48.8505123550271,
    "longitude": 2.2926490008831,
    "timezone": "Europe/Paris",
    "currency": "EUR",
    "arrival_date": "2026-12-10",
    "departure_date": "2026-12-12",
    "is_preferred": false,
    "description": null,
    "languages_spoken": [
        "pt-pt",
        "fr",
        "es",
        "en-gb"
    ],
    "distance_to_city_center_km": 4.35841748964659,
    "rooms": [
        {
            "room_id": 5108611,
            "block_id": "5108611_376297396_2_2_0",
            "name": "Privilege Double Room",
            "price": "465.78",
            "max_occupancy": "2",
            "number_of_bedrooms": 0,
            "number_of_bathrooms": 0,
            "room_surface_m2": 16,
            "refundable": true,
            "refundable_until": "2026-12-09 23:59:59 +0100",
            "breakfast_included": false,
            "all_inclusive": false,
            "half_board": false,
            "full_board": false,
            "deposit_required": false,
            "genius_discount_percentage": 0,
            "bed_configurations": [
                {
                    "name": "Queen bed(s)",
                    "count": 1,
                    "description": "151–180 cm wide"
                }
            ],
            "photos": [
                "https://cf.bstatic.com/xdata/images/hotel/max500/873195229.jpg?k=70e76b9b5675041c2cc72d77905efcaccad93091b11873e75fec61da010d8fb3&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/61944790.jpg?k=232d24da4f95121a0057215e2449859d98e1172d4d322dd6822d7d48288706d5&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/61945335.jpg?k=a394dd0699fe555b1e6accd5434db554edb48d952ffbfc429845a42d634d3e03&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/873195237.jpg?k=d4d5352b9dac506b8edb8f8c9a7b4c3392af002c6a4791dfdf69a8c480316bad&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/519868539.jpg?k=0724445f3b317be00d6990002f4c9cea12d8b12f6add46b8c460fed89485fe0e&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/765672444.jpg?k=6ecf1297181fd0afce7234629dc3e48c361c097f375ba3ddf3daa83cabe48a4c&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/61944664.jpg?k=abd4af7997f480af85246caf4005aed32ad336aebab166ad592aadc7188840f9&o=",
                "https://cf.bstatic.com/xdata/images/hotel/max500/519869380.jpg?k=bac59e37fa067181fcaefc413e17495ffd9f54ac98bc7895a8e6214ad0a01fb7&o="
            ]
        }
    ]
}
酒店详情和客房 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15367/booking+hotels+api/41124/hotel+details+and+rooms?hotel_id=51086&arrival_date=2026-12-10&departure_date=2026-12-12&adults=2&rooms=1&children_ages=4,9¤cy=EUR&language=en-us' --header 'Authorization: Bearer YOUR_API_KEY' 


    
请求
返回酒店精选住客点评,每条点评包含点评编号、标题、内容、满分为 10 分的评分、作者、旅行目的、入住状态、语言和日期,以及好评数量
Endpoint ID: 41125
GET https://zylalabs.com/api/15367/booking+hotels+api/41125/hotel+reviews
输入参数

酒店点评 — 端点功能

对象 描述
hotel_id 必需 Hotel id (e.g. "51086"). Use the /hotels/search endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

hotel_id
API 示例响应
JSON
{
    "hotel_id": 51086,
    "favorable_review_count": 757,
    "reviews": [
        {
            "review_id": 5338749358,
            "title": "Exceptional",
            "text": "Parking underground is good and enough for everyone.",
            "score": 10,
            "author": {
                "countrycode": "th",
                "avatar": "https://lh4.googleusercontent.com/-lBMft6lKXPw/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rcjctc0ulgZWdevNHCYr6FzX-425A/photo.jpg64",
                "type": "solo_traveller",
                "name": "Iammai"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2026-09-07 03:22:21"
        },
        {
            "review_id": 5337251165,
            "title": "Exceptional",
            "text": "That the personal is very kind and that will help you if you are in need of extreme escenarios",
            "score": 10,
            "author": {
                "avatar": "https://lh3.googleusercontent.com/a/ACg8ocJvYikGQqcWQ08CnzX4Z871dAMH3kYl_S0OailpDhzhzon3RQt5=s96-c64",
                "name": "Andrea",
                "type": "young_couple",
                "countrycode": "mx"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "xu",
            "date": "2026-09-03 13:36:22"
        },
        {
            "review_id": 5299458722,
            "title": "It was the perfect place to stay and I loved my time there! I was so sad to leave but I’ll definitely be back",
            "text": "The place is perfectly located and the staff is so so friendly! My mom is gluten free and they made sure to cater for her with breads and pastries! The staff were so friendly and I would stay there again!",
            "score": 10,
            "author": {
                "countrycode": "za",
                "avatar": "https://lh3.googleusercontent.com/a/AEdFTp4TKeFe3kUiLCKib7Ag_jXPgl3-Q8nXJa__Kicm=s96-c64",
                "type": "young_couple",
                "name": "Yogita"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2026-06-14 20:43:11"
        },
        {
            "review_id": 5272978644,
            "title": "Exceptional",
            "text": "Having been to Paris several times I highly recommend this hotel.  Staff is friendly and knowledgeable.  Rooms are clean.",
            "score": 10,
            "author": {
                "name": "Lynette",
                "type": "family_with_young_children",
                "countrycode": "us"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "xu",
            "date": "2026-04-01 13:53:07"
        },
        {
            "review_id": 5256578746,
            "title": "Exceptional",
            "text": "very close to Eifel tower. Excellent cooperation with the staff",
            "score": 10,
            "author": {
                "countrycode": "cy",
                "name": "Panagiotis",
                "type": "group"
            },
            "travel_purpose": "business",
            "stay_status": "non_stayed_cancelled_by_guest",
            "language": "xu",
            "date": "2026-02-02 21:03:27"
        },
        {
            "review_id": 5250685152,
            "title": "Passion for Paris❤️",
            "text": "Perfect position. Right in the middle if all the sights we wanted to see.  Also close to shopping malls.",
            "score": 10,
            "author": {
                "type": "young_couple",
                "name": "Maria",
                "countrycode": "au"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2026-01-12 20:19:32"
        },
        {
            "review_id": 5231964097,
            "title": "Exceptional",
            "text": "Prime location to eiffel tower and metro station.\nWe came by car and parking was easily accessible. Rooms were comfy.",
            "score": 10,
            "author": {
                "type": "family_with_young_children",
                "name": "Veer",
                "countrycode": "lu"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2025-11-11 15:42:31"
        },
        {
            "review_id": 5224311665,
            "title": "Perfect place to stay in Paris",
            "text": "Loved how. Comfortable the room was, loved the view of the Eiffel tower.\nStaff were amazing and friendly.\nExcellent location to everything, with train station just outside the door.",
            "score": 10,
            "author": {
                "countrycode": "au",
                "avatar": "https://lh5.googleusercontent.com/-HrMItEKCFTI/AAAAAAAAAAI/AAAAAAAAAAA/AGDgw-ilCE3XQMSwu65QdfhVv5rbHEtszQ/s96-c/photo.jpg64",
                "type": "solo_traveller",
                "name": "Pauline"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2025-10-19 19:06:54"
        },
        {
            "review_id": 5216855261,
            "title": "Otherwise really enjoyed our stay. Will be back!",
            "text": "View of Eiffel tower was amazing. Close to everything",
            "score": 10,
            "author": {
                "type": "young_couple",
                "name": "Waina",
                "countrycode": "au"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2025-09-29 05:47:44"
        },
        {
            "review_id": 5192380811,
            "title": "Friendly staff and great location",
            "text": "Great location and views of the Effiel tower from the room. Staff were friendly and helpful",
            "score": 10,
            "author": {
                "name": "Jason",
                "type": "young_couple",
                "countrycode": "gb"
            },
            "travel_purpose": "leisure",
            "stay_status": "stayed",
            "language": "en",
            "date": "2025-08-07 09:04:09"
        }
    ]
}
酒店点评 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/15367/booking+hotels+api/41125/hotel+reviews?hotel_id=51086' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 预订酒店 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

全球酒店数据:搜索目的地,按日期和入住人数搜索酒店并使用筛选条件和排序方式,查看包含可预订客房和价格的酒店详情以及住客评价

预订酒店 API FAQs

使用 Search destinations 并输入“Paris”等文本查询。响应会返回匹配的城市、地区、区、地标、机场和酒店。在 Search hotels 中,将每个结果的 `dest_id` 和 `dest_type` 分别用作 `dest_id` 和 `dest_type` 的值

每个地点都包括名称、目的地类型、副标题或标签、国家代码、纬度、经度、酒店数量和缩略图 URL。`label_components` 可提供结构化的城市、地区和国家名称。

搜索酒店会返回分页数据,例如 `total_count`、`unfiltered_count`、`offset` 和 `currency`,后面接着是一个 `hotels` 数组。每家酒店都可以包含其 ID、名称、住宿类型、位置、等级、评论数据、可用性标记和照片 URL

酒店搜索可根据目的地或地理位置、入住日期和客人信息进行定制。使用返回的筛选器 ID 和排序选项设置 `filters` 和 `sort` 参数。响应会指出哪些选项适用于该搜索。

该端点返回酒店地址、坐标、时区、描述、使用的语言以及到市中心的距离。它还会列出可预订的客房,包括入住人数、床型和空间详情、膳食计划、取消状态和截止时间、折扣以及客房照片

每个房间由 `room_id` 和 `block_id` 标识。`max_occupancy`、`number_of_bedrooms`、`number_of_bathrooms` 和 `room_surface_m2` 等字段用于描述房间。`refundable` 表示是否允许取消,而 `refundable_until` 则在有相关信息时给出适用的截止时间。

酒店评论包括评论 ID、标题、正文、10 分制评分、作者详情、旅行目的、入住状态、语言和日期。回复还提供 `favorable_review_count`,用于汇总好评数量

将可空字段视为不可用,而不要假定它们有值。例如,酒店可能没有 `review_score` 或 `review_count`,评论也可能未提供头像。显示或处理结果前,请检查 `total_count`、酒店可用性标志和数组内容

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API